pcpa pushed to libircclient (epel7). "Do not regenerate documentation on epel"
notifications at fedoraproject.org
notifications at fedoraproject.org
Mon Apr 13 20:13:35 UTC 2015
>From 21255ec3992fa8d47162c42e76fa1eb73163fb08 Mon Sep 17 00:00:00 2001
From: pcpa <paulo.cesar.pereira.de.andrade at gmail.com>
Date: Mon, 13 Apr 2015 17:13:15 -0300
Subject: Do not regenerate documentation on epel
diff --git a/libircclient.spec b/libircclient.spec
index 4140993..33f9695 100644
--- a/libircclient.spec
+++ b/libircclient.spec
@@ -1,17 +1,24 @@
-%define major 1
+%global major 1
+%if 0%{?fedora}
+%global with_docs 0
+%else
+%global with_docs 0
+%endif
Name: libircclient
Summary: C library to create IRC clients
Version: 1.8
-Release: 1%{?dist}
+Release: 2%{?dist}
License: LGPLv3+
Group: Development/Libraries
URL: http://www.ulduzsoft.com/libircclient/
Source0: http://downloads.sourceforge.net/libircclient/%{name}-%{version}.tar.gz
BuildRequires: doxygen
BuildRequires: openssl-devel
+%if %{with_docs}
BuildRequires: python-sphinx
BuildRequires: rst2pdf
+%endif
# Add rfc include to main header to avoid build failures of packages using it
# example: error: 'LIBIRC_RFC_RPL_ENDOFNAMES' was not declared in this scope
Patch0: libircclient-rfc.patch
@@ -38,7 +45,9 @@ rm -rvf cocoa
%build
%configure --enable-shared --enable-threads --enable-openssl --enable-ipv6
make %{?_smp_mflags}
+%if %{with_docs}
make -C doc html
+%endif
%install
make install DESTDIR=%{buildroot}
@@ -58,12 +67,17 @@ cp -p man/%{name}.1 %{buildroot}%{_mandir}/man1
%files devel
%defattr(-,root,root,-)
+%if %{with_docs}
%doc doc/_build/html/*
+%endif
%{_libdir}/libircclient.so
%{_includedir}/libirc*.h
%{_mandir}/man1/%{name}.1*
%changelog
+* Mon Apr 13 2015 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 1.8-2
+- Do not regenerate documentation on epel
+
* Sun Apr 12 2015 pcpa <paulo.cesar.pereira.de.andrade at gmail.com> - 1.8-1
- Update to latest upstream release
- Remove patches already in upstream
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/libircclient.git/commit/?h=epel7&id=21255ec3992fa8d47162c42e76fa1eb73163fb08
More information about the scm-commits
mailing list