[packages/travis] install assets/init
glen
glen at pld-linux.org
Sun Dec 11 15:57:08 CET 2016
commit e2e5f1f51b152589d9e340a5bdd7b2d4e377d6fa
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Tue Sep 6 21:20:17 2016 +0300
install assets/init
helper files for `travis init` to detect project language
assets.patch | 11 +++++++++++
travis.spec | 9 ++++++---
2 files changed, 17 insertions(+), 3 deletions(-)
---
diff --git a/travis.spec b/travis.spec
index f54daad..8f5b795 100644
--- a/travis.spec
+++ b/travis.spec
@@ -5,11 +5,12 @@
Summary: Travis CI client
Name: travis
Version: 1.8.2
-Release: 1
+Release: 1.1
License: MIT
Group: Development/Building
Source0: http://rubygems.org/downloads/%{name}-%{version}.gem
# Source0-md5: f488280a4a10f0d036daaed64dfc3bd9
+Patch0: assets.patch
URL: https://github.com/travis-ci/travis.rb
BuildRequires: rpm-rubyprov
BuildRequires: rpmbuild(macros) >= 1.656
@@ -53,8 +54,9 @@ Requires: ruby-pusher-client >= 0.4
Ruby client library for Travis CI.
%prep
-%setup -q -n %{pkgname}-%{version}
+%setup -q
%{__sed} -i -e '1 s,#!.*ruby,#!%{__ruby},' bin/*
+%patch0 -p1
%build
# write .gemspec
@@ -62,8 +64,9 @@ Ruby client library for Travis CI.
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_specdir},%{_bindir}}
+install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir}/%{name}/assets,%{ruby_specdir},%{_bindir}}
cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
+cp -a assets/init $RPM_BUILD_ROOT%{ruby_vendorlibdir}/%{name}/assets
cp -a bin/* $RPM_BUILD_ROOT%{_bindir}
cp -p %{name}-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir}
diff --git a/assets.patch b/assets.patch
new file mode 100644
index 0000000..cf0a312
--- /dev/null
+++ b/assets.patch
@@ -0,0 +1,11 @@
+--- travis-1.8.2/lib/travis/tools/assets.rb~ 2016-09-06 21:17:51.000000000 +0300
++++ travis-1.8.2/lib/travis/tools/assets.rb 2016-09-06 21:19:05.675645262 +0300
+@@ -1,7 +1,7 @@
+ module Travis
+ module Tools
+ module Assets
+- BASE = File.expand_path('../../../../assets', __FILE__)
++ BASE = File.expand_path('../assets', __FILE__)
+ extend self
+
+ def asset_path(file)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/travis.git/commitdiff/f658774696a910a88b82bb3a33d3364f3ce53dc1
More information about the pld-cvs-commit
mailing list