SPECS: libbtctl.spec - added apidocs bcond and subpackage - release 2
megabajt
megabajt at pld-linux.org
Sat May 19 18:07:32 CEST 2007
Author: megabajt Date: Sat May 19 16:07:32 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- added apidocs bcond and subpackage
- release 2
---- Files affected:
SPECS:
libbtctl.spec (1.30 -> 1.31)
---- Diffs:
================================================================
Index: SPECS/libbtctl.spec
diff -u SPECS/libbtctl.spec:1.30 SPECS/libbtctl.spec:1.31
--- SPECS/libbtctl.spec:1.30 Tue Feb 13 07:46:50 2007
+++ SPECS/libbtctl.spec Sat May 19 18:07:26 2007
@@ -4,13 +4,14 @@
# - mono bindings (build crashes on ppc)
#
# Conditional build:
+%bcond_without apidocs # disable gtk-doc
%bcond_without static_libs # don't build static library
#
Summary: Bluetooth GObject based library
Summary(pl.UTF-8): Biblioteka do programowania urządzeń Bluetooth
Name: libbtctl
Version: 0.8.2
-Release: 1
+Release: 2
License: GPL
Group: Libraries
Source0: http://ftp.gnome.org/pub/GNOME/sources/libbtctl/0.8/%{name}-%{version}.tar.bz2
@@ -20,7 +21,7 @@
BuildRequires: automake
BuildRequires: bluez-libs-devel >= 2.25
BuildRequires: glib2-devel >= 1:2.12.4
-BuildRequires: gtk-doc >= 1.7
+%{?with_apidocs:BuildRequires: gtk-doc >= 1.7}
BuildRequires: intltool >= 0.35.0
BuildRequires: libtool
BuildRequires: openobex-devel >= 1.2
@@ -76,6 +77,18 @@
%description -n python-btctl -l pl.UTF-8
Wiązania dla języka Python biblioteki libbtctl.
+%package apidocs
+Summary: libbtctl API documentation
+Summary(pl.UTF-8): Dokumentacja API libbtctl
+Group: Documentation
+Requires: gtk-doc-common
+
+%description apidocs
+libbtctl API documentation.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API libbtctl.
+
%prep
%setup -q
@@ -87,7 +100,7 @@
%{__automake}
%configure \
--disable-mono \
- --enable-gtk-doc \
+ --%{?with_apidocs:en}%{!?with_apidocs:dis}able-gtk-doc \
--with-html-path=%{_gtkdocdir} \
%{!?with_static_libs:--disable-static}
%{__make} \
@@ -103,6 +116,8 @@
rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.{la,a}
+%{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}}
+
%find_lang %{name}
%clean
@@ -122,7 +137,6 @@
%{_libdir}/lib*.la
%{_includedir}/%{name}
%{_pkgconfigdir}/*.pc
-%{_gtkdocdir}/*
%if %{with static_libs}
%files static
@@ -134,12 +148,22 @@
%defattr(644,root,root,755)
%attr(755,root,root) %{py_sitedir}/*.so
+%if %{with apidocs}
+%files apidocs
+%defattr(644,root,root,755)
+%{_gtkdocdir}/libbtctl
+%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.31 2007/05/19 16:07:26 megabajt
+- added apidocs bcond and subpackage
+- release 2
+
Revision 1.30 2007/02/13 06:46:50 glen
- tabs in preamble
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/libbtctl.spec?r1=1.30&r2=1.31&f=u
More information about the pld-cvs-commit
mailing list