[packages/fpm-cookery] ignore svn externals by default

glen glen at pld-linux.org
Fri Aug 21 13:43:54 CEST 2015


commit b58b3c1dd0c2a7b9fa1bb8c1514cf5053c2532ff
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Fri Aug 21 14:43:44 2015 +0300

    ignore svn externals by default

 fpm-cookery.spec           |  4 +++-
 svn-ignore-externals.patch | 11 +++++++++++
 2 files changed, 14 insertions(+), 1 deletion(-)
---
diff --git a/fpm-cookery.spec b/fpm-cookery.spec
index 282e972..c9afcb7 100644
--- a/fpm-cookery.spec
+++ b/fpm-cookery.spec
@@ -5,11 +5,12 @@
 Summary:	A tool for building software packages with fpm
 Name:		fpm-cookery
 Version:	0.29.0
-Release:	0.1
+Release:	0.2
 License:	BSD
 Group:		Development/Languages
 Source0:	http://rubygems.org/downloads/%{name}-%{version}.gem
 # Source0-md5:	bd210d6acb6a0519f8d940200917eefe
+Patch0:		svn-ignore-externals.patch
 URL:		https://github.com/bernd/fpm-cookery
 BuildRequires:	rpm-rubyprov
 BuildRequires:	rpmbuild(macros) >= 1.656
@@ -37,6 +38,7 @@ A tool for building software packages with fpm.
 
 %prep
 %setup -q
+%patch0 -p1
 %{__sed} -i -e '1 s,#!.*ruby,#!%{__ruby},' bin/*
 
 %build
diff --git a/svn-ignore-externals.patch b/svn-ignore-externals.patch
new file mode 100644
index 0000000..c22f7a5
--- /dev/null
+++ b/svn-ignore-externals.patch
@@ -0,0 +1,11 @@
+--- ./lib/fpm/cookery/source_handler/svn.rb~	2015-08-19 12:40:42.000000000 +0300
++++ ./lib/fpm/cookery/source_handler/svn.rb	2015-08-19 15:33:21.999812179 +0300
+@@ -26,7 +26,7 @@
+         private
+         def svn(url, path)
+           revision = options[:revision] || 'HEAD'
+-          safesystem('svn', 'export', '--force', '-q', '-r', revision, url, path)
++          safesystem('svn', 'export', '--force', '--ignore-externals', '-q', '-r', revision, url, path)
+         end
+ 
+         def extracted_source
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/fpm-cookery.git/commitdiff/b58b3c1dd0c2a7b9fa1bb8c1514cf5053c2532ff



More information about the pld-cvs-commit mailing list