[packages/ruby-listen: 1/3] new, version 0.4.7

glen glen at pld-linux.org
Sun May 4 09:40:46 CEST 2014


commit 12d31bac8cb5cb39c0a8cafd7d1f605584706b4f
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun May 4 10:26:02 2014 +0300

    new, version 0.4.7
    
    based on fedora rubygem-listen package
    e098497ae990ceb9fe828c502528fae3c037c2ce

 deps.patch       | 28 ++++++++++++++++++++++++++++
 ruby-listen.spec | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 81 insertions(+)
---
diff --git a/ruby-listen.spec b/ruby-listen.spec
new file mode 100644
index 0000000..2312dfc
--- /dev/null
+++ b/ruby-listen.spec
@@ -0,0 +1,53 @@
+#
+# Conditional build:
+%bcond_with	tests		# build without tests
+
+%define	pkgname	listen
+Summary:	Listen to file modifications
+Name:		ruby-%{pkgname}
+Version:	0.4.7
+Release:	0.1
+License:	MIT
+Group:		Development/Languages
+Source0:	http://rubygems.org/downloads/%{pkgname}-%{version}.gem
+# Source0-md5:	068e217a5d4e28690370c4f8eaa2b73e
+# git clone https://github.com/guard/listen.git && cd listen
+# git checkout v0.4.7
+# tar czvf listen-0.4.7-specs.tar.gz spec/
+Source1:	listen-%{version}-specs.tar.gz
+Patch0:		deps.patch
+URL:		https://github.com/guard/listen
+BuildRequires:	rpm-rubyprov
+BuildRequires:	rpmbuild(macros) >= 1.656
+%if %{with tests}
+BuildRequires:	ruby-bundler
+BuildRequires:	ruby-rspec
+%endif
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The Listen gem listens to file modifications and notifies you about
+the changes. Works everywhere!
+
+%prep
+%setup -q -n %{pkgname}-%{version} -a1
+
+%build
+%if %{with tests}
+rspec spec
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{ruby_vendorlibdir}
+cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md CHANGELOG.md
+%{ruby_vendorlibdir}/%{pkgname}.rb
+%{ruby_vendorlibdir}/%{pkgname}
diff --git a/deps.patch b/deps.patch
new file mode 100644
index 0000000..1c30864
--- /dev/null
+++ b/deps.patch
@@ -0,0 +1,28 @@
+Remove the hardcoded dependencies.
+they are platform specific and not needed.
+
+https://github.com/guard/listen/pull/54
+
+--- a/specifications/listen-0.4.7.gemspec
++++ b/specifications/listen-0.4.7.gemspec
+@@ -19,20 +19,11 @@
+     s.specification_version = 3
+ 
+     if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
+-      s.add_runtime_dependency(%q<rb-fsevent>, ["~> 0.9.1"])
+-      s.add_runtime_dependency(%q<rb-inotify>, ["~> 0.8.8"])
+-      s.add_runtime_dependency(%q<rb-fchange>, ["~> 0.0.5"])
+       s.add_development_dependency(%q<bundler>, [">= 0"])
+     else
+-      s.add_dependency(%q<rb-fsevent>, ["~> 0.9.1"])
+-      s.add_dependency(%q<rb-inotify>, ["~> 0.8.8"])
+-      s.add_dependency(%q<rb-fchange>, ["~> 0.0.5"])
+       s.add_dependency(%q<bundler>, [">= 0"])
+     end
+   else
+-    s.add_dependency(%q<rb-fsevent>, ["~> 0.9.1"])
+-    s.add_dependency(%q<rb-inotify>, ["~> 0.8.8"])
+-    s.add_dependency(%q<rb-fchange>, ["~> 0.0.5"])
+     s.add_dependency(%q<bundler>, [">= 0"])
+   end
+ end
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ruby-listen.git/commitdiff/c3397968bd45f1990adcfd17fd5a6a840738b2ed



More information about the pld-cvs-commit mailing list