From ae5f577c2a1ba9467cdc34bbf33fb7a12a1bf28d Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Jun 04 2015 07:28:41 +0000 Subject: import rh-ror41-rubygem-spring-1.1.3-4.el7 --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c908d2b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/spring-1.1.3.gem diff --git a/.rh-ror41-rubygem-spring.metadata b/.rh-ror41-rubygem-spring.metadata new file mode 100644 index 0000000..f3228bc --- /dev/null +++ b/.rh-ror41-rubygem-spring.metadata @@ -0,0 +1 @@ +53f7c85baa7dc3e0027b1091eded2876f840d315 SOURCES/spring-1.1.3.gem diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/rubygem-spring.spec b/SPECS/rubygem-spring.spec new file mode 100644 index 0000000..9514566 --- /dev/null +++ b/SPECS/rubygem-spring.spec @@ -0,0 +1,125 @@ +%{?scl:%scl_package rubygem-%{gem_name}} +%{!?scl:%global pkg_name %{name}} + +%global gem_name spring + +Name: %{?scl_prefix}rubygem-%{gem_name} +Version: 1.1.3 +Release: 4%{?dist} +Summary: Rails application preloader +Group: Development/Languages +License: MIT +URL: http://github.com/rails/spring +Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +Requires: %{?scl_prefix_ruby}ruby(release) +Requires: %{?scl_prefix_ruby}ruby(rubygems) +# Needed by `spring status` +%if 0%{?rhel} == 6 +Requires: /bin/ps +%else +Requires: %{?_root_bindir}%{!?_root_bindir:%{_bindir}}/ps +%endif +BuildRequires: %{?scl_prefix_ruby}ruby(release) +BuildRequires: %{?scl_prefix_ruby}rubygems-devel +BuildArch: noarch +Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version} +# OkJson is allowed to be bundled: +# https://fedorahosted.org/fpc/ticket/113 +Provides: bundled(okjson) = 43 + +%description +Spring is a Rails application preloader. It speeds up development by keeping +your application running in the background so you don't need to boot it every +time you run a test, rake task or migration. + +%package doc +Summary: Documentation for %{pkg_name} +Group: Documentation +Requires: %{?scl_prefix}%{pkg_name} = %{version}-%{release} +BuildArch: noarch + +%description doc +Documentation for %{pkg_name} + +%prep +%{?scl:scl enable %scl - << \EOF} +gem unpack %{SOURCE0} +%setup -q -D -T -n %{gem_name}-%{version} + +gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec + +%{?scl:EOF} + +%build +%{?scl:scl enable %{scl} - << \EOF} +gem build %{gem_name}.gemspec + +%gem_install +%{?scl:EOF} + +%install +mkdir -p %{buildroot}%{gem_dir} +cp -pa .%{gem_dir}/* \ + %{buildroot}%{gem_dir}/ + +mkdir -p %{buildroot}%{_bindir} +cp -pa .%{_bindir}/* \ + %{buildroot}%{_bindir}/ + +find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x + +%check +# Tests need listen ~>1.1 +# there is an old version in Fedora and latest version is 2.7.1 + +%files +%dir %{gem_instdir} +%{_bindir}/spring +%{gem_instdir}/bin +%{gem_libdir} +%exclude %{gem_cache} +%exclude %{gem_instdir}/.gitignore +%exclude %{gem_instdir}/.travis.yml +%exclude %{gem_instdir}/test/apps/.gitignore +%exclude %{gem_instdir}/%{gem_name}.gemspec +%{gem_spec} +%doc %{gem_instdir}/LICENSE.txt + +%files doc +%doc %{gem_docdir} +%doc %{gem_instdir}/README.md +%doc %{gem_instdir}/CHANGELOG.md +%doc %{gem_instdir}/CONTRIBUTING.md +%{gem_instdir}/Gemfile +%{gem_instdir}/Rakefile +%{gem_instdir}/test + +%changelog +* Tue Feb 03 2015 Vít Ondruch +- ps is located on different path in different package on RHEL6. + +* Mon Feb 02 2015 Vít Ondruch - 1.1.3-3 +- Fix ps binary path. + +* Mon Feb 02 2015 Vít Ondruch - 1.1.3-2 +- Fix requires. + +* Wed Jul 09 2014 Josef Stribny - 1.1.3-1 +- Update to 1.1.3 + +* Sun Jun 08 2014 Fedora Release Engineering - 1.1.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Thu Mar 20 2014 Josef Stribny - 1.1.2-4 +- Use macro for the ps bin path + +* Thu Mar 20 2014 Josef Stribny - 1.1.2-3 +- Fix ps require + +* Tue Mar 18 2014 Josef Stribny - 1.1.2-2 +- Add bundled okjson virtual provide +- Add ps dependency +- Exclude .gitignore from tests + +* Fri Mar 14 2014 Josef Stribny - 1.1.2-1 +- Initial package