3 %bcond_without apidocs # do not build and package API docs
4 %bcond_without static_libs # don't build static libraries
5 %bcond_without tests # skip tests
7 Summary: LIBrary for Asynchronous File Descriptor Transfer
13 Source0: http://downloads.sourceforge.net/project/libafdt/%{name}-%{version}.tar.gz
14 # Source0-md5: 8051b4e88c5804ce34e221cb62c5e672
15 URL: http://libafdt.sourceforge.net/
16 %{?with_apidocs:BuildRequires: doxygen}
17 BuildRequires: libevent-devel >= 1.4.5
18 %{?with_tests:BuildRequires: python}
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 libafdt is a library for "a"synchronous "f"ile "d"escriptor
23 "t"ransfers. It provides a simple interface that allows libevent-based
24 programs to set up a Unix domain socket to accept connections and
25 transfer file descriptors to clients, or to be a client and request a
26 file descriptor from a libafdt server. Low-level and synchronous
27 interfaces are also provided for programs that do not use libevent.
30 Summary: Header files for libafdt library
31 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libafdt
32 Group: Development/Libraries
33 Requires: %{name} = %{version}-%{release}
36 Header files for libafdt library.
38 %description devel -l pl.UTF-8
39 Pliki nagłówkowe biblioteki libafdt.
42 Summary: Static libafdt library
43 Summary(pl.UTF-8): Statyczna biblioteka libafdt
44 Group: Development/Libraries
45 Requires: %{name}-devel = %{version}-%{release}
48 Static libafdt library.
50 %description static -l pl.UTF-8
51 Statyczna biblioteka libafdt.
54 Summary: libafdt API documentation
55 Summary(pl.UTF-8): Dokumentacja API biblioteki libafdt
59 API and internal documentation for libafdt library.
61 %description apidocs -l pl.UTF-8
62 Dokumentacja API biblioteki libafdt.
70 %{!?with_static_libs:--disable-static}
74 %{?with_tests:%{__make} check}
76 %{?with_apidocs:doxygen}
79 rm -rf $RPM_BUILD_ROOT
81 DESTDIR=$RPM_BUILD_ROOT
84 rm -rf $RPM_BUILD_ROOT
86 %post -p /sbin/ldconfig
87 %postun -p /sbin/ldconfig
90 %defattr(644,root,root,755)
92 %attr(755,root,root) %{_libdir}/libafdt.so.*.*.*
93 %attr(755,root,root) %ghost %{_libdir}/libafdt.so.0
96 %defattr(644,root,root,755)
102 %defattr(644,root,root,755)
107 %defattr(644,root,root,755)
108 %doc doxygen-out/html/*