SPECS: ruby-trollop.spec (NEW) - added

aredridel aredridel at pld-linux.org
Wed Apr 2 23:48:07 CEST 2008


Author: aredridel                    Date: Wed Apr  2 21:48:07 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added

---- Files affected:
SPECS:
   ruby-trollop.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/ruby-trollop.spec
diff -u /dev/null SPECS/ruby-trollop.spec:1.1
--- /dev/null	Wed Apr  2 23:48:07 2008
+++ SPECS/ruby-trollop.spec	Wed Apr  2 23:48:02 2008
@@ -0,0 +1,44 @@
+# $Revision$, $Date$
+Summary:	Yet another commandline option parsing library
+Name:		ruby-trollop
+Version:	1.7.2
+Release:	1
+License:	Ruby
+Source0:	http://rubyforge.org/frs/download.php/30853/trollop-1.7.2.tgz
+# Source0-md5:	e3a9d9801b7705eee3db105a55b23de1
+Group:		Development/Languages
+URL:	http://trollop.rubyforge.org/
+BuildRequires:	rpmbuild(macros) >= 1.277
+BuildRequires:	ruby-modules
+BuildRequires:	setup.rb
+%{?ruby_mod_ver_requires_eq}
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Trollop is YAFCLAP --- yet another fine commandline argument processing
+library for Ruby.
+
+%prep
+%setup -q -n trollop-%{version}
+install %{_datadir}/setup.rb .
+
+%build
+ruby setup.rb config --rbdir=%{ruby_rubylibdir} --sodir=%{ruby_archdir}
+ruby setup.rb setup
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{ruby_rubylibdir}
+
+ruby setup.rb install --prefix=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc *.txt
+%{ruby_rubylibdir}/*.rb
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
================================================================


More information about the pld-cvs-commit mailing list