|
Josef Stribny |
c6b2cf6 |
# Generated from acts_as_list-0.4.0.gem by gem2rpm -*- rpm-spec -*-
|
|
Josef Stribny |
c6b2cf6 |
%global gem_name acts_as_list
|
|
Josef Stribny |
c6b2cf6 |
|
|
Josef Stribny |
c6b2cf6 |
Name: rubygem-%{gem_name}
|
|
|
7789c6e |
Version: 0.9.5
|
|
|
7789c6e |
Release: 1%{?dist}
|
|
Josef Stribny |
c6b2cf6 |
Summary: A gem allowing a active_record model to act_as_list
|
|
Josef Stribny |
c6b2cf6 |
License: MIT
|
|
Josef Stribny |
c6b2cf6 |
URL: http://github.com/swanandp/acts_as_list
|
|
Josef Stribny |
c6b2cf6 |
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
|
|
|
26e6dea |
BuildRequires: ruby(release)
|
|
|
7789c6e |
BuildRequires: rubygems-devel
|
|
|
26e6dea |
BuildRequires: ruby >= 1.9.2
|
|
Josef Stribny |
c6b2cf6 |
BuildRequires: rubygem(activerecord)
|
|
|
7789c6e |
BuildRequires: rubygem(mocha)
|
|
Josef Stribny |
c6b2cf6 |
BuildRequires: rubygem(sqlite3)
|
|
|
7789c6e |
BuildRequires: rubygem(timecop)
|
|
Josef Stribny |
c6b2cf6 |
BuildArch: noarch
|
|
Josef Stribny |
c6b2cf6 |
|
|
Josef Stribny |
c6b2cf6 |
%description
|
|
Josef Stribny |
c6b2cf6 |
This "acts_as" extension provides the capabilities for sorting and reordering
|
|
Josef Stribny |
c6b2cf6 |
a number of objects in a list. The class that has this specified needs to have
|
|
Josef Stribny |
c6b2cf6 |
a "position" column defined as an integer on the mapped database table.
|
|
Josef Stribny |
c6b2cf6 |
|
|
Josef Stribny |
c6b2cf6 |
|
|
Josef Stribny |
c6b2cf6 |
%package doc
|
|
Josef Stribny |
c6b2cf6 |
Summary: Documentation for %{name}
|
|
Josef Stribny |
c6b2cf6 |
Requires: %{name} = %{version}-%{release}
|
|
Josef Stribny |
c6b2cf6 |
BuildArch: noarch
|
|
Josef Stribny |
c6b2cf6 |
|
|
Josef Stribny |
c6b2cf6 |
%description doc
|
|
Josef Stribny |
c6b2cf6 |
Documentation for %{name}.
|
|
Josef Stribny |
c6b2cf6 |
|
|
Josef Stribny |
c6b2cf6 |
%prep
|
|
Josef Stribny |
c6b2cf6 |
gem unpack %{SOURCE0}
|
|
Josef Stribny |
c6b2cf6 |
|
|
Josef Stribny |
c6b2cf6 |
%setup -q -D -T -n %{gem_name}-%{version}
|
|
Josef Stribny |
c6b2cf6 |
|
|
Josef Stribny |
c6b2cf6 |
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
|
|
Josef Stribny |
c6b2cf6 |
|
|
Josef Stribny |
c6b2cf6 |
%build
|
|
Josef Stribny |
c6b2cf6 |
# Create the gem as gem install only works on a gem file
|
|
Josef Stribny |
c6b2cf6 |
gem build %{gem_name}.gemspec
|
|
Josef Stribny |
c6b2cf6 |
|
|
Josef Stribny |
c6b2cf6 |
# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
|
|
Josef Stribny |
c6b2cf6 |
# by default, so that we can move it into the buildroot in %%install
|
|
Josef Stribny |
c6b2cf6 |
%gem_install
|
|
Josef Stribny |
c6b2cf6 |
|
|
Josef Stribny |
c6b2cf6 |
%install
|
|
Josef Stribny |
c6b2cf6 |
mkdir -p %{buildroot}%{gem_dir}
|
|
Josef Stribny |
c6b2cf6 |
cp -a .%{gem_dir}/* \
|
|
Josef Stribny |
c6b2cf6 |
%{buildroot}%{gem_dir}/
|
|
Josef Stribny |
c6b2cf6 |
|
|
Josef Stribny |
c6b2cf6 |
|
|
Josef Stribny |
c6b2cf6 |
|
|
Josef Stribny |
c6b2cf6 |
|
|
Josef Stribny |
c6b2cf6 |
# Run the test suite
|
|
Josef Stribny |
c6b2cf6 |
%check
|
|
Josef Stribny |
c6b2cf6 |
pushd .%{gem_instdir}
|
|
Josef Stribny |
c6b2cf6 |
# Remove Bundler
|
|
|
7789c6e |
sed -i '/bundler/,/^end$/ s/^/#/' test/helper.rb
|
|
|
7789c6e |
|
|
|
7789c6e |
ruby -Itest -e 'Dir.glob "./test/**/test_*.rb", &method(:require)'
|
|
Josef Stribny |
c6b2cf6 |
popd
|
|
Josef Stribny |
c6b2cf6 |
|
|
Josef Stribny |
c6b2cf6 |
%files
|
|
Josef Stribny |
c6b2cf6 |
%dir %{gem_instdir}
|
|
|
7789c6e |
%exclude %{gem_instdir}/.*
|
|
|
7789c6e |
%license %{gem_instdir}/MIT-LICENSE
|
|
Josef Stribny |
c6b2cf6 |
%{gem_libdir}
|
|
Josef Stribny |
c6b2cf6 |
%exclude %{gem_cache}
|
|
Josef Stribny |
c6b2cf6 |
%{gem_spec}
|
|
Josef Stribny |
c6b2cf6 |
|
|
Josef Stribny |
c6b2cf6 |
%files doc
|
|
Josef Stribny |
c6b2cf6 |
%doc %{gem_docdir}
|
|
|
26e6dea |
%{gem_instdir}/Appraisals
|
|
|
7789c6e |
%doc %{gem_instdir}/CHANGELOG.md
|
|
Josef Stribny |
c6b2cf6 |
%{gem_instdir}/Gemfile
|
|
Josef Stribny |
c6b2cf6 |
%doc %{gem_instdir}/README.md
|
|
|
7789c6e |
%{gem_instdir}/Rakefile
|
|
Josef Stribny |
c6b2cf6 |
%{gem_instdir}/test
|
|
Josef Stribny |
c6b2cf6 |
%{gem_instdir}/init.rb
|
|
Josef Stribny |
c6b2cf6 |
%{gem_instdir}/gemfiles
|
|
Josef Stribny |
c6b2cf6 |
%{gem_instdir}/%{gem_name}.gemspec
|
|
Josef Stribny |
c6b2cf6 |
|
|
Josef Stribny |
c6b2cf6 |
%changelog
|
|
|
7789c6e |
* Tue Apr 04 2017 Vít Ondruch <vondruch@redhat.com> - 0.9.5-1
|
|
|
7789c6e |
- Update to acts_as_list 0.9.5.
|
|
|
7789c6e |
|
|
|
c44acb8 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.2-2
|
|
|
c44acb8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
c44acb8 |
|
|
|
26e6dea |
* Wed Mar 23 2016 Jun Aruga <jaruga@redhat.com> - 0.7.2-1
|
|
|
26e6dea |
- Update version to 0.7.2 to test suite for Ruby 2.3 compatibility. (rhbz#1308001)
|
|
|
26e6dea |
|
|
|
85727d1 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-3
|
|
|
85727d1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
85727d1 |
|
|
|
662370e |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-2
|
|
|
662370e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
662370e |
|
|
Josef Stribny |
c6b2cf6 |
* Thu Sep 18 2014 Josef Stribny <jstribny@redhat.com> - 0.4.0-1
|
|
Josef Stribny |
c6b2cf6 |
- Initial package
|