Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:raulgs
rubygem-parseexcel
parseexcel.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File parseexcel.spec of Package rubygem-parseexcel
%define ruby_sitelib %(ruby -rrbconfig -e "puts Config::CONFIG['sitelibdir']") %define gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null) %define gemname parseexcel %define geminstdir %{gemdir}/gems/%{gemname}-%{version} Summary: Spreadsheet::ParseExcel - Get information from an Excel file. Name: rubygem-%{gemname} Version: 0.5.2 Release: 1 Group: Development/Languages License: LGPL URL: http://download.ywesee.com/parseexcel Source0: http://gems.rubyforge.org/gems/%{gemname}-%{version}.gem BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Requires: rubygems BuildRequires: rubygems BuildArch: noarch %description Spreadsheet::ParseExcel allows you to get information out of a simple Excel file This Package is an - as of today incomplete - translation of Kawai Takanoris Perl-Module. %prep %install rm -rf %{buildroot} mkdir -p %{buildroot}%{gemdir} gem install --local --install-dir %{buildroot}%{gemdir} \ -V \ --force %{SOURCE0} for file in `find %{buildroot}/%{geminstdir}/ -type f -perm /a+x`; do sed -i -e '1s|%{_bindir}/env ruby|%{_bindir}/ruby|' $file chmod 755 $file done find %{buildroot}/%{geminstdir} -type f -name "*~" -delete #find %{buildroot}/%{geminstdir} -type f -size 0c -exec rm -rvf {} \; for file in `find %{buildroot}/%{geminstdir} -type f -perm /a+x`; do [ -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 644 $file done # For sure... find %{buildroot} -name \*.gem | xargs chmod 0644 # 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 {} \; %clean rm -rf %{buildroot} %files %defattr(-, root, root, -) %dir %{geminstdir} %{geminstdir}/lib/parseexcel.rb %{geminstdir}/lib/parseexcel/format.rb %{geminstdir}/lib/parseexcel/olestorage.rb %{geminstdir}/lib/parseexcel/parseexcel.rb %{geminstdir}/lib/parseexcel/parser.rb %{geminstdir}/lib/parseexcel/workbook.rb %{geminstdir}/lib/parseexcel/worksheet.rb %{geminstdir}/test/suite.rb %{geminstdir}/test/test_format.rb %{geminstdir}/test/test_olestorage.rb %{geminstdir}/test/test_parser.rb %{geminstdir}/test/test_workbook.rb %{geminstdir}/test/test_worksheet.rb %{geminstdir}/test/data/annotation.xls %{geminstdir}/test/data/bar.xls %{geminstdir}/test/data/comment.5.0.xls %{geminstdir}/test/data/comment.xls %{geminstdir}/test/data/dates.xls %{geminstdir}/test/data/float.5.0.xls %{geminstdir}/test/data/float.xls %{geminstdir}/test/data/foo.xls %{geminstdir}/test/data/image.xls %{geminstdir}/test/data/nil.xls %{geminstdir}/test/data/umlaut.5.0.xls %{geminstdir}/test/data/umlaut.biff8.xls %{geminstdir}/test/data/uncompressed.str.xls %{gemdir}/doc %{geminstdir}/README %{geminstdir}/COPYING %{geminstdir}/usage-en.txt %{gemdir}/cache/%{gemname}-%{version}.gem %{gemdir}/specifications/%{gemname}-%{version}.gemspec
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor