diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..66f2fed --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +SOURCES/listen-3.1.5.gem +SOURCES/rubygem-listen-3.1.5-tests.tgz diff --git a/.rh-ror50-rubygem-listen.metadata b/.rh-ror50-rubygem-listen.metadata new file mode 100644 index 0000000..0892c94 --- /dev/null +++ b/.rh-ror50-rubygem-listen.metadata @@ -0,0 +1,2 @@ +2d7009cc609271ada6f2844528b9d2255c9d8e9e SOURCES/listen-3.1.5.gem +0f9a375a1e67bddb755745a867835da361cb03dd SOURCES/rubygem-listen-3.1.5-tests.tgz 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-listen.spec b/SPECS/rubygem-listen.spec new file mode 100644 index 0000000..272f799 --- /dev/null +++ b/SPECS/rubygem-listen.spec @@ -0,0 +1,148 @@ +%{?scl:%scl_package rubygem-%{gem_name}} +%{!?scl:%global pkg_name %{name}} + +# Generated from listen-0.4.7.gem by gem2rpm -*- rpm-spec -*- +%global gem_name listen + +Name: %{?scl_prefix}rubygem-%{gem_name} +Version: 3.1.5 +Release: 1%{?dist} +Summary: Listen to file modifications +Group: Development/Languages +License: MIT +URL: https://github.com/guard/listen +Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem +# git clone https://github.com/guard/listen.git && cd listen +# git checkout v3.1.5 && tar czvf rubygem-listen-3.1.5-tests.tgz spec +Source1: rubygem-listen-%{version}-tests.tgz + +Requires: %{?scl_prefix_ruby}ruby(release) +Requires: %{?scl_prefix_ruby}ruby(rubygems) +Requires: %{?scl_prefix}rubygem(rb-inotify) +BuildRequires: %{?scl_prefix_ruby}ruby(release) +BuildRequires: %{?scl_prefix_ruby}ruby(rubygems) +BuildRequires: %{?scl_prefix_ruby}ruby +BuildRequires: %{?scl_prefix_ruby}rubygems-devel +BuildRequires: %{?scl_prefix}rubygem(rb-inotify) +BuildRequires: %{?scl_prefix}rubygem(thor) +BuildRequires: %{?scl_prefix}rubygem(rspec) +BuildArch: noarch +Provides: %{?scl_prefix}rubygem(%{gem_name}) = %{version} + +# Explicitly require runtime subpackage, as long as older scl-utils do not generate it +%{?scl:Requires: %{?scl_prefix}runtime} + +%description +The Listen gem listens to file modifications and notifies you about the +changes. Works everywhere! + +%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 +%setup -n %{pkg_name}-%{version} -q -c -T +%{?scl:scl enable %{scl} - << \EOF} +%gem_install -n %{SOURCE0} +%{?scl:EOF} + +# Remove the hardcoded dependencies. We don't have them in Fedora +# (except rb-inotify), they are platform specifis and not needed. +# https://github.com/guard/listen/pull/54 +sed -i '/^.*.*$/ s/^/#/' .%{gem_spec} +sed -i '/def self.usable?$/a return false' .%{gem_libdir}/listen/adapter/darwin.rb + +# Remove ruby_dep dependency. We don't need to warn about Ruby versions. +sed -i '/^.*.*$/ s/^/#/' .%{gem_spec} +sed -i '/ruby_dep/ s/^/#/' .%{gem_libdir}/listen.rb +sed -i '/RubyDep/ s/^/#/' .%{gem_libdir}/listen.rb + +%build + +%install +mkdir -p %{buildroot}%{gem_dir} +cp -a .%{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 +pushd .%{gem_instdir} +# Move the tests into place +tar xzvf %{SOURCE1} + +# We removed dependencies from other platforms so let's remove +# tests as well +mv spec/lib/listen/adapter/darwin_spec.rb{,.disabled} + +%{?scl:scl enable %{scl} - << \EOF} +rspec -rspec_helper spec +%{?scl:EOF} +popd + +%files +# There is no %%license macro on RHEL6. +# https://bugzilla.redhat.com/show_bug.cgi?id=1386246 +%{!?_licensedir:%global license %%doc} + +%dir %{gem_instdir} +%{_bindir}/listen +%license %{gem_instdir}/LICENSE.txt +%{gem_instdir}/bin +%{gem_libdir} +%exclude %{gem_cache} +%{gem_spec} + +%files doc +%doc %{gem_docdir} +%doc %{gem_instdir}/CHANGELOG.md +%doc %{gem_instdir}/CONTRIBUTING.md +%doc %{gem_instdir}/README.md + +%changelog +* Fri Jul 29 2016 Vít Ondruch - 3.1.5-1 +- Update to Listen 3.1.5. + +* Wed Apr 20 2016 Jun Aruga - 3.0.6-1 +- Update to 3.0.6. +- Fix test suite for Ruby 2.3 compatibility (rhbz#1308046). + +* Thu Feb 04 2016 Fedora Release Engineering - 3.0.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Tue Aug 18 2015 Josef Stribny - 3.0.3-1 +- Update to 3.0.3 + +* Thu Jun 18 2015 Fedora Release Engineering - 2.7.11-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Tue Oct 07 2014 Josef Stribny - 2.7.11-1 +- Update to listen 2.7.11 + +* Mon Sep 01 2014 Josef Stribny - 2.7.9-1 +- Update to listen 2.7.9. + +* Sun Jun 08 2014 Fedora Release Engineering - 0.4.7-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sun Aug 04 2013 Fedora Release Engineering - 0.4.7-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu Mar 07 2013 Vít Ondruch - 0.4.7-3 +- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0 + +* Thu Feb 14 2013 Fedora Release Engineering - 0.4.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Tue Jul 24 2012 Vít Ondruch - 0.4.7-1 +- Initial package