]> git.pld-linux.org Git - packages/ruby-omnibus.git/commitdiff
build with rubygems provides auto/th/ruby-omnibus-1.0.4-2
authorElan Ruusamäe <glen@delfi.ee>
Mon, 24 Jun 2013 12:20:15 +0000 (15:20 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Mon, 24 Jun 2013 12:20:15 +0000 (15:20 +0300)
ruby-omnibus.spec

index 9bfe636f93457ae013f60b151bebc5664aec89d7..03b6ba4348b0a1fe19a483929f878fb2c1e24f90 100644 (file)
@@ -6,7 +6,7 @@
 Summary:       Omnibus helps you build self-installing, full-stack software builds
 Name:          ruby-%{pkgname}
 Version:       1.0.4
-Release:       1
+Release:       2
 License:       Apache v2.0
 Group:         Development/Languages
 Source0:       http://rubygems.org/downloads/%{pkgname}-%{version}.gem
@@ -15,7 +15,7 @@ Patch0:               makeself-path.patch
 Patch1:                omnibus-pld.patch
 URL:           https://github.com/opscode/omnibus-ruby
 BuildRequires: rpm-rubyprov
-BuildRequires: rpmbuild(macros) >= 1.656
+BuildRequires: rpmbuild(macros) >= 1.665
 BuildRequires: sed >= 4.0
 %if %{with tests}
 BuildRequires: ruby-rspec
@@ -37,21 +37,27 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %description
 Omnibus helps you build self-installing, full-stack software builds.
 
+
 %prep
 %setup -q -n %{pkgname}-%{version}
 %{__sed} -i -e '1 s,#!.*ruby,#!%{__ruby},' bin/*
 %patch0 -p1
 %patch1 -p1
-
 # move these to libdir, so they don't clobber system bin dir
 chmod a-x bin/makeself*
 mv bin/makeself* lib/%{pkgname}
 
+%build
+# write .gemspec
+%__gem_helper spec
+
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{_bindir}}
+install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{ruby_specdir},%{_bindir}}
 cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
 cp -a bin/* $RPM_BUILD_ROOT%{_bindir}
+cp -p %{pkgname}-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -61,3 +67,4 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/omnibus
 %{ruby_vendorlibdir}/%{pkgname}.rb
 %{ruby_vendorlibdir}/%{pkgname}
+%{ruby_specdir}/%{pkgname}-%{version}.gemspec
This page took 0.144919 seconds and 4 git commands to generate.