[packages/ruby-cgikit] renamed: cgikit.spec -> ruby-cgikit.spec

glen glen at pld-linux.org
Fri Jul 18 07:27:35 CEST 2014


commit adaa10cf50cf769d5f63646993af226f50b43e8f
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Fri Jul 18 08:27:03 2014 +0300

    renamed: cgikit.spec -> ruby-cgikit.spec

 cgikit.spec => ruby-cgikit.spec | 19 ++++++++-----------
 1 file changed, 8 insertions(+), 11 deletions(-)
---
diff --git a/cgikit.spec b/ruby-cgikit.spec
similarity index 74%
rename from cgikit.spec
rename to ruby-cgikit.spec
index 9e648dd..67ee2ab 100644
--- a/cgikit.spec
+++ b/ruby-cgikit.spec
@@ -1,18 +1,17 @@
-%define ruby_rubylibdir %(ruby -r rbconfig -e 'print Config::CONFIG["rubylibdir"]')
-%define ruby_archdir %(ruby -r rbconfig -e 'print Config::CONFIG["archdir"]')
+%define pkgname cgikit
 Summary:	Ruby CGIKit Library
 Summary(pl.UTF-8):	Biblioteka Ruby CGIKit
-Name:		cgikit
+Name:		ruby-%{pkgname}
 Version:	1.0b5
-Release:	2
+Release:	2.1
 License:	GPL
 Group:		Development/Libraries
-Source0:	http://www.freepan.org/canon/s/su/SuzukiTetsuya/ruby/cgikit/%{name}-%{version}.tar.gz
+Source0:	http://www.freepan.org/canon/s/su/SuzukiTetsuya/ruby/cgikit/%{pkgname}-%{version}.tar.gz
 # Source0-md5:	268c4b807d983486ba54dded24b2c173
 BuildRequires:	rpmbuild(macros) >= 1.277
 BuildRequires:	ruby-modules
+Obsoletes:	cgikit < 1.0b5-2.1
 BuildArch:	noarch
-%{?ruby_mod_ver_requires_eq}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -22,10 +21,10 @@ Ruby CGIKit Library.
 Biblioteka Ruby CGIKit.
 
 %prep
-%setup -q
+%setup -q -n  %{pkgname}-%{version}
+mv %{pkgname}-%{version}/* .
 
 %build
-cd %{name}-%{version}
 ruby install.rb config \
 	--prefix=%{_prefix} \
 	--site-ruby=%{ruby_rubylibdir} \
@@ -34,8 +33,6 @@ ruby install.rb config \
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{ruby_rubylibdir}
-cd %{name}-%{version}
-
 ruby install.rb install --prefix=$RPM_BUILD_ROOT
 
 %clean
@@ -43,7 +40,7 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc %{name}-%{version}/README
+%doc README
 %{ruby_rubylibdir}/cgikit.rb
 %dir %{ruby_rubylibdir}/cgikit
 %dir %{ruby_rubylibdir}/cgikit/components
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ruby-cgikit.git/commitdiff/adaa10cf50cf769d5f63646993af226f50b43e8f



More information about the pld-cvs-commit mailing list