[packages/ruby-launchy] new, version 0.4.0
glen
glen at pld-linux.org
Tue Apr 19 07:58:19 CEST 2016
commit e24bbc8a60610176a80d46b1257c62a81baeb30c
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Tue Apr 19 08:57:48 2016 +0300
new, version 0.4.0
based on fedora package, 0ea745e
ruby-launchy.spec | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 63 insertions(+)
---
diff --git a/ruby-launchy.spec b/ruby-launchy.spec
new file mode 100644
index 0000000..8320f22
--- /dev/null
+++ b/ruby-launchy.spec
@@ -0,0 +1,63 @@
+#
+# Conditional build:
+%bcond_with tests # build without tests
+
+%define pkgname launchy
+Summary: Helper class for cross-platform launching of applications
+Name: ruby-%{pkgname}
+Version: 0.4.0
+Release: 1
+License: BSD
+Group: Development/Languages
+Source0: http://gems.rubyforge.org/gems/%{pkgname}-%{version}.gem
+# Source0-md5: 951dc54983c29dde427748ce11189d8b
+URL: http://copiousfreetime.rubyforge.org/launchy/
+BuildRequires: rpm-rubyprov
+BuildRequires: rpmbuild(macros) >= 1.665
+%if %{with tests}
+BuildRequires: rubygem(rspec)
+%endif
+Requires: rubygem(configuration) >= 0.0.5
+Requires: rubygem(rake) >= 0.8.1
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Launchy is helper class for launching cross-platform applications in a
+fire and forget manner. There are application concepts (browser, email
+client, etc) that are common across all platforms, and they may be
+launched differently on each platform. Launchy is here to make a
+common approach to launching external application from within ruby
+programs.
+
+%prep
+%setup -q -n %{pkgname}-%{version}
+
+chmod a+rx bin/*
+%{__sed} -i -e '1 s,#!.*ruby,#!%{__ruby},' bin/*
+
+%build
+# write .gemspec
+%__gem_helper spec
+
+%if %{with tests}
+rspec spec
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{ruby_vendorlibdir},%{_bindir},%{ruby_specdir}}
+cp -a lib/* $RPM_BUILD_ROOT%{ruby_vendorlibdir}
+cp -a bin/* $RPM_BUILD_ROOT%{_bindir}
+cp -p %{pkgname}-%{version}.gemspec $RPM_BUILD_ROOT%{ruby_specdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README HISTORY LICENSE
+%attr(755,root,root) %{_bindir}/launchy
+%{ruby_vendorlibdir}/%{pkgname}.rb
+%{ruby_vendorlibdir}/%{pkgname}
+%{ruby_specdir}/%{pkgname}-%{version}.gemspec
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ruby-launchy.git/commitdiff/e24bbc8a60610176a80d46b1257c62a81baeb30c
More information about the pld-cvs-commit
mailing list