From: Marcin Krol Date: Tue, 3 Feb 2015 07:22:46 +0000 (+0000) Subject: - apidocs bcond X-Git-Url: https://git.tld-linux.org/?a=commitdiff_plain;h=ea6cdc0237b719593b211002692de7c8da35399d;p=packages%2Fudev.git - apidocs bcond --- diff --git a/udev.spec b/udev.spec index 2674b35..2250cdc 100644 --- a/udev.spec +++ b/udev.spec @@ -3,12 +3,13 @@ # # Conditional build: %bcond_without selinux # without SELinux support +%bcond_with apidocs # with API docs 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 @@ -37,7 +38,7 @@ BuildRequires: glib2-devel >= 1:2.22.0 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} @@ -186,7 +187,9 @@ Dokumentacja API libgudev. %patch1 -p1 %build +%if %{with apidocs} %{__gtkdocize} +%endif %{__libtoolize} %{__aclocal} -I m4 %{__autoconf} @@ -196,12 +199,12 @@ Dokumentacja API libgudev. --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 \ @@ -387,9 +390,11 @@ fi %{_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) @@ -404,6 +409,8 @@ fi %{_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