[curlpp/el6] Don't build examples

Veeti Paananen vpaan at fedoraproject.org
Thu Dec 5 13:14:48 UTC 2013


commit 6f530146f51c375974ff003a8720fbb3ae9325d8
Author: Veeti Paananen <veeti.paananen at rojekti.fi>
Date:   Thu Dec 5 15:14:40 2013 +0200

    Don't build examples

 curlpp-no-examples.patch |   19 +++++++++++++++++++
 curlpp.spec              |    4 ++++
 2 files changed, 23 insertions(+), 0 deletions(-)
---
diff --git a/curlpp-no-examples.patch b/curlpp-no-examples.patch
new file mode 100644
index 0000000..9dd58f7
--- /dev/null
+++ b/curlpp-no-examples.patch
@@ -0,0 +1,19 @@
+--- curlpp-0.7.3/configure.ac	2009-12-06 01:38:33.000000000 +0200
++++ fix/configure.ac	2013-12-05 15:04:11.646948434 +0200
+@@ -196,7 +196,6 @@
+ curlpp.spec \
+ curlpp.pc \
+ Makefile \
+-examples/Makefile \
+ src/Makefile \
+ src/curlpp/Makefile \
+ src/curlpp/internal/Makefile \
+--- curlpp-0.7.3/Makefile.am	2009-12-06 01:33:38.000000000 +0200
++++ fix/Makefile.am	2013-12-05 15:04:44.779680219 +0200
+@@ -1,5 +1,5 @@
+ ACLOCAL_AMFLAGS = -I m4
+-SUBDIRS = src include examples doc 
++SUBDIRS = src include doc 
+ EXTRA_DIST = curlpp.VC8.vcproj curlpp.VC8.sln CHANGES curlpp.spec README.win32 win32/*
+ 
+ pkgconfigdir = $(libdir)/pkgconfig
diff --git a/curlpp.spec b/curlpp.spec
index 652a117..cd07eea 100644
--- a/curlpp.spec
+++ b/curlpp.spec
@@ -9,6 +9,8 @@ URL: http://curlpp.org/
 Source0: http://curlpp.googlecode.com/files/curlpp-%{version}.tar.gz
 BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 
+Patch0: curlpp-no-examples.patch
+
 BuildRequires: boost-devel
 BuildRequires: curl-devel
 
@@ -31,6 +33,7 @@ developing applications that use %{name}.
 
 %prep
 %setup -q
+%patch0 -p1
 
 # Convert CRLF line endings to LF in the examples
 for file in examples/*.cpp
@@ -45,6 +48,7 @@ sed -i '28 d' include/curlpp/Types.hpp
 
 
 %build
+autoreconf
 %configure --disable-static
 make %{?_smp_mflags} CPPFLAGS="%{optflags}"
 


More information about the scm-commits mailing list