[packages/tcpflow] update url, add bcond to build without cairo

glen glen at pld-linux.org
Tue Oct 6 11:16:24 CEST 2015


commit c07aba34efd515c69f021f817e6993dbe617a53a
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Oct 6 12:16:18 2015 +0300

    update url, add bcond to build without cairo

 tcpflow.spec | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)
---
diff --git a/tcpflow.spec b/tcpflow.spec
index 85acb22..85bfac0 100644
--- a/tcpflow.spec
+++ b/tcpflow.spec
@@ -1,3 +1,7 @@
+#
+# Conditional build:
+%bcond_without	cairo		# disable Cairo even if present
+
 Summary:	TCP Flow Recorder
 Summary(pl.UTF-8):	Program zapisujący ruch TCP
 Name:		tcpflow
@@ -8,7 +12,7 @@ Group:		Applications/Networking
 Source0:	http://www.digitalcorpora.org/downloads/tcpflow/%{name}-%{version}.tar.gz
 # Source0-md5:	5978b112a899f2099e98cef6d9a0ece9
 Patch0:		0001-using-the-debian-package-of-libhttp-parser-instead-o.patch
-URL:		http://www.circlemud.org/~jelson/software/tcpflow/
+URL:		https://github.com/simsong/tcpflow
 BuildRequires:	autoconf
 BuildRequires:	automake
 BuildRequires:	boost-devel
@@ -33,9 +37,9 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 Tcpflow is program that captures data transmitted as part of TCP
-connections, and and stores the data in a way that is convenient
-for protocol analysis or debugging. Tcpflow stores all captured
-data in two files per connection.
+connections, and and stores the data in a way that is convenient for
+protocol analysis or debugging. Tcpflow stores all captured data in
+two files per connection.
 
 %description -l pl.UTF-8
 Tcpflow jest programem, który przechwytuje dane przesyłane w ramach
@@ -52,7 +56,8 @@ połączenie.
 %{__autoconf}
 %{__autoheader}
 %{__automake}
-%configure
+%configure \
+	%{!?with_cairo:--enable-cairo=false}
 %{__make}
 
 %install
@@ -67,5 +72,5 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc AUTHORS ChangeLog NEWS README TODO.txt
-%attr(755,root,root) %{_bindir}/%{name}
-%{_mandir}/man1/*.1*
+%attr(755,root,root) %{_bindir}/tcpflow
+%{_mandir}/man1/tcpflow.1*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/tcpflow.git/commitdiff/c07aba34efd515c69f021f817e6993dbe617a53a



More information about the pld-cvs-commit mailing list