[rubygem-ruby-ole] New package.

Michael Stahnke stahnma at fedoraproject.org
Mon Oct 25 19:20:05 UTC 2010


commit 35dc747c96d301bfdfba31f30d6d821bff7e278e
Author: stahnma <stahnma at websages.com>
Date:   Mon Oct 25 15:20:03 2010 -0400

    New package.

 .gitignore            |    1 +
 rubygem-ruby-ole.spec |   87 +++++++++++++++++++++++++++++++++++++++++++++++++
 sources               |    1 +
 3 files changed, 89 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..640b969 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/ruby-ole-1.2.11.1.gem
diff --git a/rubygem-ruby-ole.spec b/rubygem-ruby-ole.spec
new file mode 100644
index 0000000..25a0750
--- /dev/null
+++ b/rubygem-ruby-ole.spec
@@ -0,0 +1,87 @@
+%global gemdir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null)
+%global gemname ruby-ole
+%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
+
+Summary: Ruby OLE library
+Name: rubygem-%{gemname}
+Version: 1.2.11.1
+Release: 1%{?dist}
+Group: Development/Languages
+License: MIT
+URL: http://code.google.com/p/ruby-ole
+Source0: http://rubygems.org/gems/%{gemname}-%{version}.gem
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Requires: ruby(abi) = 1.8
+Requires: rubygems
+BuildRequires: rubygems
+BuildRequires(check): rubygem(rake)
+BuildArch: noarch
+Provides: rubygem(%{gemname}) = %{version}
+
+%description
+A library for easy read/write access to OLE compound documents for Ruby.
+
+%package doc
+Summary:           Documentation for %{name}
+Group:             Documentation
+Requires:          %{name} = %{version}-%{release}
+
+%description doc
+Documentation for %{name}.
+
+
+%prep
+
+%build
+
+%install
+rm -rf %{buildroot}
+mkdir -p %{buildroot}%{gemdir}
+gem install --local --install-dir %{buildroot}%{gemdir} \
+            --force --rdoc %{SOURCE0}
+mkdir -p %{buildroot}/%{_bindir}
+mv %{buildroot}%{gemdir}/bin/* %{buildroot}/%{_bindir}
+rmdir %{buildroot}%{gemdir}/bin
+find %{buildroot}%{geminstdir}/bin -type f | xargs chmod a+x
+
+# rpmlint cleanup
+chmod 644 %{buildroot}%{geminstdir}/lib/ole/storage/base.rb
+chmod 755 %{buildroot}%{geminstdir}/test/test_meta_data.rb 
+
+
+%clean
+rm -rf %{buildroot}
+
+%check
+cd %{buildroot}%{geminstdir}
+rake test
+
+
+%files
+%defattr(-, root, root, -)
+%{_bindir}/oletool
+%dir %{geminstdir}
+%doc %{geminstdir}/README
+%doc %{geminstdir}/COPYING
+%doc %{geminstdir}/ChangeLog
+%{geminstdir}/lib
+%{geminstdir}/bin
+%{geminstdir}/data
+%{gemdir}/cache/%{gemname}-%{version}.gem
+%{gemdir}/specifications/%{gemname}-%{version}.gemspec
+
+
+%files doc
+%defattr(-, root, root, -)
+%{geminstdir}/test
+%{geminstdir}/Rakefile
+%{gemdir}/doc/%{gemname}-%{version}
+%{geminstdir}/*.gemspec
+
+
+%changelog
+* Mon Oct 25 2010 Michael Stahnke <stahnma at fedoraproject.org> - 1.2.11.1-1
+- License changed to MIT per upstream comments
+
+* Thu Sep 16 2010 Michael Stahnke <stahnma at fedoraproject.org> - 1.2.10.1-1
+- Initial package
diff --git a/sources b/sources
index e69de29..d2e39c8 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+3494e888feff1bce71fb079110b72c01  ruby-ole-1.2.11.1.gem


More information about the scm-commits mailing list