From ed47b8663e170644f5d58ab3dc41261aa4ebba6c Mon Sep 17 00:00:00 2001 From: Miroslav Suchý Date: Aug 17 2012 12:18:31 +0000 Subject: initial import --- diff --git a/.gitignore b/.gitignore index e69de29..b693931 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/transaction-simple-1.4.0.2.gem diff --git a/rubygem-transaction-simple.spec b/rubygem-transaction-simple.spec new file mode 100644 index 0000000..a440524 --- /dev/null +++ b/rubygem-transaction-simple.spec @@ -0,0 +1,176 @@ +%global gem_name transaction-simple +%if 0%{?rhel} == 6 +%global gem_dir %(ruby -rubygems -e 'puts Gem::dir' 2>/dev/null) +%global gem_docdir %{gem_dir}/doc/%{gem_name}-%{version} +%global gem_cache %{gem_dir}/cache/%{gem_name}-%{version}.gem +%global gem_spec %{gem_dir}/specifications/%{gem_name}-%{version}.gemspec +%global gem_instdir %{gem_dir}/gems/%{gem_name}-%{version} +%endif + +Summary: Simple object transaction support for Ruby +Name: rubygem-%{gem_name} +Version: 1.4.0.2 +Release: 3%{?dist} +Group: Development/Languages +License: MIT +URL: http://trans-simple.rubyforge.org/ +Source0: http://rubygems.org/downloads/%{gem_name}-%{version}.gem +Requires: rubygems +%if 0%{?rhel} == 6 || 0%{?fedora} < 17 +Requires: ruby(abi) = 1.8 +%else +Requires: ruby(abi) = 1.9.1 +%endif +%if 0%{?fedora} +BuildRequires: rubygems-devel +%endif +BuildRequires: rubygems +BuildRequires: rubygem(minitest) +BuildArch: noarch +Provides: rubygem(%{gem_name}) = %{version} + +%description +Transaction::Simple provides a generic way to add active transaction support +to objects. The transaction methods added by this module will work with most +objects, excluding those that cannot be Marshal-ed (bindings, procedure +objects, IO instances, or singleton objects). + +%package doc +BuildArch: noarch +Requires: %{name} = %{version}-%{release} +Summary: Documentation for rubygem-%{gem_name} + +%description doc +This package contains documentation for rubygem-%{gem_name}. + +%prep +gem unpack %{SOURCE0} +%setup -q -D -T -n %{gem_name}-%{version} + +gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec +sed -i '/s.cert_chain = nil/d' %{gem_name}.gemspec + +%build +mkdir -p .%{gem_dir} + +# Create the gem as gem install only works on a gem file +gem build %{gem_name}.gemspec + +gem install -V \ + --local \ + --install-dir ./%{gem_dir} \ + --force \ + --rdoc \ + %{gem_name}-%{version}.gem + +%install +mkdir -p %{buildroot}%{gem_dir} +cp -a ./%{gem_dir}/* %{buildroot}%{gem_dir}/ +mv %{buildroot}%{gem_instdir}/{History.rdoc,Licence.rdoc,README.rdoc,Manifest.txt} ./ +rm -rf %{buildroot}%{gem_instdir}/.yardoc +rm %{buildroot}%{gem_instdir}/.gemtest +chmod a-x %{buildroot}%{gem_instdir}/test/test_broken_graph.rb + +%check +testrb -Ilib test/test_*.rb + +%files +%doc Licence.rdoc +%dir %{gem_instdir} +%{gem_instdir}/lib +%exclude %{gem_cache} +%{gem_spec} +#https://github.com/halostatue/transaction-simple/issues/4 +%exclude %{gem_instdir}/research + +%files doc +%doc History.rdoc README.rdoc Manifest.txt +%doc %{gem_docdir} +%{gem_instdir}/Rakefile +%{gem_instdir}/test + +%changelog +* Fri Aug 17 2012 Miroslav Suchý 1.4.0.2-3 +- 847457 - test script do not have shebang anymore (msuchy@redhat.com) +- 847457 - home page of transaction-simple changed (msuchy@redhat.com) +- 847457 - remove dot files consistently (msuchy@redhat.com) + +* Thu Aug 16 2012 Miroslav Suchý 1.4.0.2-2 +- fix changes after rebase (msuchy@redhat.com) +- setup.rb do not exist anymore (msuchy@redhat.com) + +* Thu Aug 16 2012 Miroslav Suchý 1.4.0.2-1 +- rebase to transaction-simple 1.4.0.2 (msuchy@redhat.com) +- 847457 - drop cert_chain completly (msuchy@redhat.com) +- 847457 - set executable bit on scripts (msuchy@redhat.com) +- 847457 - mark gem_docdir as as %%doc (msuchy@redhat.com) +- 847457 - remove CONFIGURE_ARGS (msuchy@redhat.com) +- 847457 - move some files to -doc package and exclude gem_cache + (msuchy@redhat.com) +- 847457 - gem hoe is not needed (msuchy@redhat.com) +- 847457 - use global instead of define (msuchy@redhat.com) + +* Sat Aug 11 2012 Miroslav Suchý 1.4.0-8 +- change license to MIT (msuchy@redhat.com) +- use test suite (msuchy@redhat.com) +- fix filelist (msuchy@redhat.com) +- remove yardoc (msuchy@redhat.com) +- wrap description to 80 chars (msuchy@redhat.com) +- use macros (msuchy@redhat.com) +- buildroot is not needed (msuchy@redhat.com) +- mv transaction-simple.spec rubygem-transaction-simple.spec + (msuchy@redhat.com) + +* Wed Jul 04 2012 Miroslav Suchý 1.4.0-7 +- cert_chain could not be nil (msuchy@redhat.com) + +* Wed Jul 04 2012 Miroslav Suchý 1.4.0-6 +- edit spec for Fedora 17 (msuchy@redhat.com) + +* Fri Jun 29 2012 Miroslav Suchý 1.4.0-5 +- rebuild + +* Thu Oct 27 2011 Shannon Hughes 1.4.0-4 +- fixing version to match gem (shughes@redhat.com) + +* Thu Oct 27 2011 Shannon Hughes 1.4.2-1 +- add dep for rubygem-hoe (shughes@redhat.com) + +* Thu Oct 27 2011 Shannon Hughes +- add dep for rubygem-hoe (shughes@redhat.com) + +* Wed Oct 12 2011 Shannon Hughes 1.4.0-3 +- fixing tag (shughes@redhat.com) +- fix up gem version and tags (shughes@redhat.com) + +* Wed Oct 12 2011 Shannon Hughes +- fix up gem version and tags (shughes@redhat.com) + +* Wed Oct 12 2011 Dmitri Dolguikh 1.4.1-1 +- Automatic commit of package [rubygem-transaction-simple] release [1.4.0-2]. + (dmitri@redhat.com) +- bumped up the version on transaction-simple.spec (dmitri@redhat.com) +- fixed transaction-simple spec file (dmitri@redhat.com) +- Automatic commit of package [rubygem-transaction-simple] release [1.4.0-1]. + (dmitri@redhat.com) + +* Wed Oct 12 2011 Dmitri Dolguikh +- Automatic commit of package [rubygem-transaction-simple] release [1.4.0-2]. + (dmitri@redhat.com) +- bumped up the version on transaction-simple.spec (dmitri@redhat.com) +- fixed transaction-simple spec file (dmitri@redhat.com) +- Automatic commit of package [rubygem-transaction-simple] release [1.4.0-1]. + (dmitri@redhat.com) + +* Tue Oct 11 2011 Dmitri Dolguikh 1.4.0-2 +- bumped up the version on transaction-simple.spec (dmitri@redhat.com) +- fixed transaction-simple spec file (dmitri@redhat.com) + +* Tue Oct 11 2011 Dmitri Dolguikh +- fixed transaction-simple spec file (dmitri@redhat.com) + +* Tue Oct 11 2011 Dmitri Dolguikh 1.4.0-1 +- new package built with tito + +* Tue Oct 11 2011 - 1.4.0-1 +- Initial package diff --git a/sources b/sources index e69de29..bb0b366 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +04df03e7561c45fe66ca99aaa9ddde48 transaction-simple-1.4.0.2.gem