|
|
|
@ -4,8 +4,8 @@
|
|
|
|
|
|
|
|
|
|
Name: rubygem-%{gemname}
|
|
|
|
|
Summary: Common API for connecting web frameworks, web servers and layers of software
|
|
|
|
|
Version: 0.4.0
|
|
|
|
|
Release: 3%{?dist}
|
|
|
|
|
Version: 0.9.1
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Group: Development/Languages
|
|
|
|
|
License: MIT
|
|
|
|
|
URL: http://rubyforge.org/projects/%{gemname}/
|
|
|
|
@ -32,10 +32,27 @@ mkdir -p %{buildroot}%{gemdir}
|
|
|
|
|
gem install --local --install-dir %{buildroot}/%{gemdir} \
|
|
|
|
|
--force %{SOURCE0}
|
|
|
|
|
|
|
|
|
|
chmod 755 %{buildroot}/%{geminstdir}/test/cgi/test.fcgi
|
|
|
|
|
chmod 755 %{buildroot}/%{geminstdir}/test/cgi/test.ru
|
|
|
|
|
chmod 755 %{buildroot}/%{geminstdir}/test/cgi/test
|
|
|
|
|
chmod 755 %{buildroot}/%{geminstdir}/bin/rackup
|
|
|
|
|
# Remove backup files
|
|
|
|
|
find %{buildroot}/%{geminstdir} -type f -name "*~" -delete
|
|
|
|
|
|
|
|
|
|
# Delete zero-length files
|
|
|
|
|
find %{buildroot}/%{geminstdir} -type f -size 0c -exec rm -rvf {} \;
|
|
|
|
|
|
|
|
|
|
# Fix anything executable that does not have a shebang
|
|
|
|
|
for file in `find %{buildroot}/%{geminstdir} -type f -perm /a+x`; do
|
|
|
|
|
[ -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 644 $file
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
# Find files with a shebang that do not have executable permissions
|
|
|
|
|
for file in `find %{buildroot}/%{geminstdir} -type f ! -perm /a+x -name "*.rb"`; do
|
|
|
|
|
[ ! -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 755 $file
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
# Find files that have non-standard-executable-perm
|
|
|
|
|
find %{buildroot}/%{geminstdir} -type f -perm /g+wx -exec chmod -v g-w {} \;
|
|
|
|
|
|
|
|
|
|
# Find files that are not readable
|
|
|
|
|
find %{buildroot}/%{geminstdir} -type f ! -perm /go+r -exec chmod -v go+r {} \;
|
|
|
|
|
|
|
|
|
|
# Move %{gemdir}/bin/rackup to %{_bindir}
|
|
|
|
|
mkdir -p %{buildroot}/%{_bindir}
|
|
|
|
@ -66,6 +83,9 @@ rm -rf %{buildroot}
|
|
|
|
|
%{gemdir}/specifications/%{gemname}-%{version}.gemspec
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Mar 16 2009 Jeroen van Meeuwen <j.van.meeuwen@ogd.nl> - 0.9.1-1
|
|
|
|
|
- New upstream version
|
|
|
|
|
|
|
|
|
|
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|