[libtevent] Add patch to ignore --disable-silent-rules Include API documentation

Stephen Gallagher sgallagh at fedoraproject.org
Thu Dec 1 21:14:57 UTC 2011


commit b67314a770695091df774d572f7ef8d2bc812fdc
Author: Stephen Gallagher <sgallagh at redhat.com>
Date:   Thu Dec 1 16:14:53 2011 -0500

    Add patch to ignore --disable-silent-rules
    Include API documentation

 ...dded-autoconf-disable-silent-rules-option.patch |   30 ++++++++++++++++++++
 libtevent.spec                                     |   18 +++++++++++-
 2 files changed, 47 insertions(+), 1 deletions(-)
---
diff --git a/0001-build-added-autoconf-disable-silent-rules-option.patch b/0001-build-added-autoconf-disable-silent-rules-option.patch
new file mode 100644
index 0000000..0fc3ad6
--- /dev/null
+++ b/0001-build-added-autoconf-disable-silent-rules-option.patch
@@ -0,0 +1,30 @@
+From 6af702bdc9ea36a1f33232a818a819afde9bc4d2 Mon Sep 17 00:00:00 2001
+From: Sumit Bose <sbose at redhat.com>
+Date: Thu, 6 Oct 2011 10:32:58 +0200
+Subject: [PATCH] build: added autoconf --disable-silent-rules option
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: Günther Deschner <gd at samba.org>
+---
+ buildtools/wafsamba/wscript |    3 +++
+ 1 files changed, 3 insertions(+), 0 deletions(-)
+
+diff --git a/buildtools/wafsamba/wscript b/buildtools/wafsamba/wscript
+index 1a7f3eb69974625e903f314c6c7b92547063e884..5c5e249758c36a64083499b9050c0c4e77c87b6d 100755
+--- a/buildtools/wafsamba/wscript
++++ b/buildtools/wafsamba/wscript
+@@ -162,6 +162,9 @@ def set_options(opt):
+     opt.add_option('--disable-dependency-tracking',
+ 		   help=SUPPRESS_HELP,
+ 		   action='store_true', dest='AUTOCONF_DISABLE_DEPENDENCY_TRACKING', default=False)
++    opt.add_option('--disable-silent-rules',
++		   help=SUPPRESS_HELP,
++		   action='store_true', dest='AUTOCONF_DISABLE_SILENT_RULES', default=False)
+ 
+     gr = opt.option_group('dist options')
+     gr.add_option('--sign-release',
+-- 
+1.7.7.3
+
diff --git a/libtevent.spec b/libtevent.spec
index c860bed..a7de97e 100644
--- a/libtevent.spec
+++ b/libtevent.spec
@@ -6,7 +6,7 @@
 
 Name: libtevent
 Version: 0.9.14
-Release: 2%{?dist}
+Release: 3%{?dist}
 Group: System Environment/Daemons
 Summary: The tevent library
 License: LGPLv3+
@@ -17,9 +17,13 @@ BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 BuildRequires: libtalloc-devel >= 2.0.7
 BuildRequires: python-devel
 BuildRequires: pytalloc-devel >= 2.0.7
+BuildRequires: doxygen
 
 Provides: bundled(libreplace)
 
+# Patches
+Patch1001: 0001-build-added-autoconf-disable-silent-rules-option.patch
+
 %description
 Tevent is an event system based on the talloc memory management library.
 Tevent has support for many event types, including timers, signals, and
@@ -48,12 +52,14 @@ Python bindings for libtevent
 
 %prep
 %setup -q -n tevent-%{version}
+%patch1001 -p1
 
 %build
 %configure --disable-rpath \
            --bundled-libraries=NONE \
            --builtin-libraries=replace
 make %{?_smp_mflags} V=1
+doxygen doxy.config
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -66,6 +72,11 @@ find $RPM_BUILD_ROOT -name "*.so*" -exec chmod -c +x {} \;
 
 rm -f $RPM_BUILD_ROOT%{_libdir}/libtevent.a
 
+# Install API docs
+rm -f doc/man/man3/todo*
+mkdir -p $RPM_BUILD_ROOT/%{_mandir}
+cp -a doc/man/* $RPM_BUILD_ROOT/%{_mandir}
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -78,6 +89,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_includedir}/tevent.h
 %{_libdir}/libtevent.so
 %{_libdir}/pkgconfig/tevent.pc
+%{_mandir}/man3/
 
 %files -n python-tevent
 %defattr(-,root,root,-)
@@ -88,6 +100,10 @@ rm -rf $RPM_BUILD_ROOT
 %postun -p /sbin/ldconfig
 
 %changelog
+* Thu Dec 01 2011 Stephen Gallagher <sgallagh at redhat.com> - 0.9.14-3
+- Add patch to ignore --disable-silent-rules
+- Include API documentation
+
 * Wed Nov 23 2011 Stephen Gallagher <sgallagh at redhat.com> - 0.9.14-2
 - Add explicit mention of the bundled libreplace
 - https://fedorahosted.org/fpc/ticket/120


More information about the scm-commits mailing list