#
# Conditional build:
%bcond_without selinux # without SELinux support
+%bcond_with apidocs # with API docs
-Summary: Device manager for the Linux 2.6 kernel series
-Summary(pl.UTF-8): Zarządca urządzeń dla Linuksa 2.6
+Summary: Device manager for the Linux kernel
+Summary(pl.UTF-8): Zarządca urządzeń dla jądra Linuksa
Name: udev
Version: 2.1.1
-Release: 0.1
+Release: 0.2
Epoch: 2
License: GPL v2+ (udev), LGPL v2.1+ (the rest)
Group: Base
BuildRequires: glibc-misc
BuildRequires: gobject-introspection-devel >= 1.31.1
BuildRequires: gperf
-BuildRequires: gtk-doc >= 1.18
+%{?with_apidocs:BuildRequires: gtk-doc >= 1.18}
BuildRequires: kmod-devel >= 14
BuildRequires: libblkid-devel >= 2.20
%{?with_selinux:BuildRequires: libselinux-devel >= 2.1.9}
%define _libexecdir %{_prefix}/lib
%description
-udev is the device manager for the Linux 2.6 kernel series. Its
-primary function is managing device nodes in /dev. It is the successor
-of devfs and hotplug.
+udev is the device manager for the Linux kernel. Its primary function
+is managing device nodes in /dev. It is the successor of devfs and
+hotplug.
%description -l pl.UTF-8
-udev jest zarządcą urządzeń dla Linuksa 2.6. Jego główną funkcją jest
-zarządzanie węzłami urządzeń w katalogu /dev. Jest następcą devfs i
-hotpluga.
+udev jest zarządcą urządzeń dla jądra Linuksa. Jego główną funkcją
+jest zarządzanie węzłami urządzeń w katalogu /dev. Jest następcą devfs
+i hotpluga.
%package core
Summary: A userspace implementation of devfs - core part of udev
%patch1 -p1
%build
+%if %{with apidocs}
%{__gtkdocize}
+%endif
%{__libtoolize}
%{__aclocal} -I m4
%{__autoconf}
--libexecdir=/lib \
--bindir=%{_sbindir} \
%{?debug:--enable-debug} \
+ %{__enable_disable gtk-doc} \
%{__enable_disable selinux} \
--disable-silent-rules \
--enable-introspection \
--enable-blkid \
--enable-gudev \
- --enable-gtk-doc \
--enable-keymap \
--enable-libkmod \
--enable-manpages \
%attr(755,root,root) %{_sbindir}/start_udev
%attr(755,root,root) %{_sbindir}/udevd
%attr(755,root,root) %{_sbindir}/udevadm
-%attr(755,root,root) /bin/udevadm
+%attr(755,root,root) %{_bindir}/udevadm
%dir %{_sysconfdir}/udev
%dir %{_sysconfdir}/udev/rules.d
%{_pkgconfigdir}/libudev.pc
%{_npkgconfigdir}/udev.pc
+%if %{with apidocs}
%files apidocs
%defattr(644,root,root,755)
%{_gtkdocdir}/libudev
+%endif
%files glib
%defattr(644,root,root,755)
%{_pkgconfigdir}/gudev-1.0.pc
%{_datadir}/gir-1.0/GUdev-1.0.gir
+%if %{with apidocs}
%files glib-apidocs
%defattr(644,root,root,755)
%{_gtkdocdir}/gudev
+%endif