# Generated from audited-activerecord-3.0.0.gem by gem2rpm -*- rpm-spec -*- %global gem_name audited-activerecord %global rubyabi 1.9.1 Summary: Log all changes to your ActiveRecord models Name: rubygem-%{gem_name} Version: 3.0.0 Release: 1%{?dist} Group: Development/Languages # The license information is missing in the .gem file ATM. # https://github.com/collectiveidea/audited/pull/127 License: MIT URL: https://github.com/collectiveidea/audited Source0: http://rubygems.org/gems/%{gem_name}-%{version}.gem # Hopefully the tests will be included in the gem in the future. # https://github.com/collectiveidea/audited/pull/125 # # git clone https://github.com/collectiveidea/audited.git && cd audited && git checkout 224786f # tar czvf audited-activerecord-3.0.0-tests.tgz spec/audited/adapters/active_record \ # spec/rails_app spec/support/active_record spec/*.rb test Source1: %{gem_name}-%{version}-tests.tgz Requires: ruby(abi) = %{rubyabi} Requires: ruby(rubygems) Requires: rubygem(audited) = 3.0.0 Requires: rubygem(activerecord) => 3.0 Requires: rubygem(activerecord) < 4 BuildRequires: ruby(abi) = %{rubyabi} BuildRequires: rubygems-devel BuildRequires: ruby BuildRequires: rubygem(audited) = 3.0.0 BuildRequires: rubygem(minitest) BuildRequires: rubygem(rails) => 3.0 BuildRequires: rubygem(rails) < 4 BuildRequires: rubygem(rspec-rails) BuildRequires: rubygem(sqlite3) BuildArch: noarch Provides: rubygem(%{gem_name}) = %{version} %description Log all changes to your ActiveRecord models %package doc Summary: Documentation for %{name} Group: Documentation Requires: %{name} = %{version}-%{release} BuildArch: noarch %description doc Documentation for %{name} %prep %setup -q -c -T mkdir -p .%{gem_dir} gem install --local --install-dir .%{gem_dir} \ --force %{SOURCE0} %build %install mkdir -p %{buildroot}%{gem_dir} cp -pa .%{gem_dir}/* \ %{buildroot}%{gem_dir}/ %check tar xzvf %{SOURCE1} -C .%{gem_instdir} pushd .%{gem_instdir} rspec spec # This is ugly. It should be probably reported to upstream ;) RUBYOPT='-Ilib -rrails/all -raudited-activerecord' testrb test/*_test.rb popd %files %dir %{gem_instdir} %{gem_libdir} %exclude %{gem_cache} %{gem_spec} %files doc %doc %{gem_docdir} %changelog * Wed Nov 28 2012 Vít Ondruch - 3.0.0-1 - Initial package