packages: libnih/libnih.spec (NEW) - new, based on fc spec

glen glen at pld-linux.org
Mon Apr 19 23:12:11 CEST 2010


Author: glen                         Date: Mon Apr 19 21:12:11 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new, based on fc spec

---- Files affected:
packages/libnih:
   libnih.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/libnih/libnih.spec
diff -u /dev/null packages/libnih/libnih.spec:1.1
--- /dev/null	Mon Apr 19 23:12:11 2010
+++ packages/libnih/libnih.spec	Mon Apr 19 23:12:06 2010
@@ -0,0 +1,116 @@
+# $Revision$, $Date$
+# TODO
+# - check why make re-invokes configure again
+# - 1 test fails:
+#  BAD: wrong value for dbus_message_get_reply_serial (reply), expected 2 got 3
+#        at tests/test_dbus_message.c:149 (test_message_error).
+#  Abort
+#  FAIL: test_dbus_message
+#
+# Conditional build:
+%bcond_with	tests		# build without tests
+
+Summary:	Lightweight application development library
+Name:		libnih
+Version:	1.0.1
+Release:	1
+License:	GPL v2
+Group:		Libraries
+URL:		https://launchpad.net/libnih/
+Source0:	http://launchpad.net/libnih/1.0/%{version}/+download/%{name}-%{version}.tar.gz
+# Source0-md5:	3e410e32a51b4e6124547c2ced308efc
+BuildRequires:	autoconf >= 2.62
+BuildRequires:	automake >= 1:1.11
+BuildRequires:	dbus-devel >= 1.2.16
+BuildRequires:	expat-devel >= 1:2.0.0
+BuildRequires:	gettext >= 0.17
+BuildRequires:	libtool >= 2:2.2.4
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+libnih is a small library for C application development containing
+functions that, despite its name, are not implemented elsewhere in the
+standard library set.
+
+libnih is roughly equivalent to other C libraries such as glib, except
+that its focus is on a small size and intended for applications that
+sit very low in the software stack, especially outside of /usr.
+
+%package devel
+Summary:	Development files for %{name}
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+The libnih-devel package contains libraries and header files for
+developing applications that use libnih.
+
+%prep
+%setup -q
+
+%build
+%{__aclocal} -I m4
+%{__autoconf}
+%{__automake}
+%{__libtoolize}
+%configure \
+	--disable-static \
+	--disable-rpath
+
+%{__make}
+
+%if %{with tests}
+%{__make} check
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+# move to /%{_lib} for upstart
+install -d $RPM_BUILD_ROOT/%{_lib}
+mv $RPM_BUILD_ROOT%{_libdir}/libnih.so.* $RPM_BUILD_ROOT/%{_lib}
+mv $RPM_BUILD_ROOT%{_libdir}/libnih-dbus.so.* $RPM_BUILD_ROOT/%{_lib}
+ln -fs /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libnih.so.*.*) $RPM_BUILD_ROOT%{_libdir}/libnih.so
+ln -fs /%{_lib}/$(basename $RPM_BUILD_ROOT/%{_lib}/libnih-dbus.so.*.*) $RPM_BUILD_ROOT%{_libdir}/libnih-dbus.so
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc README AUTHORS ChangeLog
+%attr(755,root,root) /%{_lib}/libnih.so.*.*.*
+%attr(755,root,root) %ghost /%{_lib}/libnih.so.1
+%attr(755,root,root) /%{_lib}/libnih-dbus.so.*.*.*
+%attr(755,root,root) %ghost /%{_lib}/libnih-dbus.so.1
+
+%files devel
+%defattr(644,root,root,755)
+%doc HACKING TODO
+%attr(755,root,root) %{_bindir}/nih-dbus-tool
+%{_mandir}/man1/nih-dbus-tool.1*
+%{_libdir}/libnih.la
+%{_libdir}/libnih.so
+%{_libdir}/libnih-dbus.la
+%{_libdir}/libnih-dbus.so
+%{_includedir}/libnih.h
+%{_includedir}/libnih-dbus.h
+%{_includedir}/nih
+%{_includedir}/nih-dbus
+%{_pkgconfigdir}/libnih.pc
+%{_pkgconfigdir}/libnih-dbus.pc
+%{_aclocaldir}/libnih.m4
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2010/04/19 21:12:06  glen
+- new, based on fc spec
================================================================


More information about the pld-cvs-commit mailing list