packages: libafdt/libafdt.spec (NEW) - new
glen
glen at pld-linux.org
Sun May 16 15:22:34 CEST 2010
Author: glen Date: Sun May 16 13:22:33 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- new
---- Files affected:
packages/libafdt:
libafdt.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/libafdt/libafdt.spec
diff -u /dev/null packages/libafdt/libafdt.spec:1.1
--- /dev/null Sun May 16 15:22:34 2010
+++ packages/libafdt/libafdt.spec Sun May 16 15:22:28 2010
@@ -0,0 +1,118 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without apidocs # do not build and package API docs
+%bcond_without static_libs # don't build static libraries
+%bcond_without tests # skip tests
+
+Summary: LIBrary for Asynchronous File Descriptor Transfer
+Name: libafdt
+Version: 0.1.0
+Release: 1
+License: BSD
+Group: Libraries
+Source0: http://downloads.sourceforge.net/project/libafdt/%{name}-%{version}.tar.gz
+# Source0-md5: 8051b4e88c5804ce34e221cb62c5e672
+URL: http://libafdt.sourceforge.net/
+BuildRequires: libevent >= 1.4.5
+%{?with_tests:BuildRequires: python}
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+libafdt is a library for "a"synchronous "f"ile "d"escriptor
+"t"ransfers. It provides a simple interface that allows libevent-based
+programs to set up a Unix domain socket to accept connections and
+transfer file descriptors to clients, or to be a client and request a
+file descriptor from a libafdt server. Low-level and synchronous
+interfaces are also provided for programs that do not use libevent.
+
+%package devel
+Summary: Header files for libafdt library
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libafdt
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+Header files for libafdt library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki libafdt.
+
+%package static
+Summary: Static libafdt library
+Summary(pl.UTF-8): Statyczna biblioteka libafdt
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static libafdt library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka libafdt.
+
+%package apidocs
+Summary: libafdt API documentation
+Summary(pl.UTF-8): Dokumentacja API biblioteki libafdt
+Group: Documentation
+
+%description apidocs
+API and internal documentation for libafdt library.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API biblioteki libafdt.
+
+%prep
+%setup -q
+
+%build
+%configure \
+ --enable-shared \
+ %{!?with_static_libs:--disable-static}
+
+%{__make}
+
+%{?with_tests:%{__make} check}
+
+%{?with_apidocs:doxygen}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc README
+%attr(755,root,root) %{_libdir}/libafdt.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libafdt.so.0
+
+%files devel
+%defattr(644,root,root,755)
+%{_libdir}/libafdt.so
+%{_libdir}/libafdt.la
+%{_includedir}/afdt.h
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libafdt.a
+
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
+%doc doxygen-out/html/*
+%endif
+
+%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/05/16 13:22:28 glen
+- new
================================================================
More information about the pld-cvs-commit
mailing list