packages: ruby-test-unit/ruby-test-unit.spec (NEW) - initial

zbyniu zbyniu at pld-linux.org
Tue Jan 18 13:07:26 CET 2011


Author: zbyniu                       Date: Tue Jan 18 12:07:26 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- initial

---- Files affected:
packages/ruby-test-unit:
   ruby-test-unit.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/ruby-test-unit/ruby-test-unit.spec
diff -u /dev/null packages/ruby-test-unit/ruby-test-unit.spec:1.1
--- /dev/null	Tue Jan 18 13:07:26 2011
+++ packages/ruby-test-unit/ruby-test-unit.spec	Tue Jan 18 13:07:20 2011
@@ -0,0 +1,98 @@
+# $Revision$, $Date$
+# TODO
+# - any policy what to package in %{ruby_ridir}?
+#
+%define pkgname test-unit
+Summary:	-
+Name:		ruby-%{pkgname}
+Version:	2.1.2
+Release:	0.1
+License:	Ruby License
+Source0:	http://rubygems.org/downloads/%{pkgname}-%{version}.gem
+# Source0-md5:	fbe74832c21be380098569a99f75858d
+Group:		Development/Languages
+URL:		http://rubyforge.org/projects/test-unit/
+BuildRequires:	rpmbuild(macros) >= 1.484
+BuildRequires:	ruby >= 1:1.8.6
+BuildRequires:	ruby-modules
+%{?ruby_mod_ver_requires_eq}
+#BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+# nothing to be placed there. we're not noarch only because of ruby packaging
+%define		_enable_debug_packages	0
+
+%description
+...
+
+%package rdoc
+Summary:	HTML documentation for %{pkgname}
+Summary(pl.UTF-8):	Dokumentacja w formacie HTML dla %{pkgname}
+Group:		Documentation
+Requires:	ruby >= 1:1.8.7-4
+
+%description rdoc
+HTML documentation for %{pkgname}.
+
+%description rdoc -l pl.UTF-8
+Dokumentacja w formacie HTML dla %{pkgname}.
+
+%package ri
+Summary:	ri documentation for %{pkgname}
+Summary(pl.UTF-8):	Dokumentacja w formacie ri dla %{pkgname}
+Group:		Documentation
+Requires:	ruby
+
+%description ri
+ri documentation for %{pkgname}.
+
+%description ri -l pl.UTF-8
+Dokumentacji w formacie ri dla %{pkgname}.
+
+%prep
+%setup -q -c
+# gem install
+%{__tar} xf %{SOURCE0} -O data.tar.gz | %{__tar} xz
+find -newer README.txt -o -print | xargs touch --reference %{SOURCE0}
+
+# cleanup backups after patching
+find '(' -name '*~' -o -name '*.orig' ')' -print0 | xargs -0 -r -l512 rm -f
+
+%build
+rdoc --ri --op ri lib
+rdoc --op rdoc lib
+# rm -r ri/NOT_THIS_MODULE_RELATED_DIRS
+rm ri/created.rid
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{ruby_rubylibdir},%{ruby_ridir},%{ruby_rdocdir}}
+cp -a lib/* $RPM_BUILD_ROOT%{ruby_rubylibdir}
+cp -a ri/* $RPM_BUILD_ROOT%{ruby_ridir}
+cp -a rdoc $RPM_BUILD_ROOT%{ruby_rdocdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc History.txt README.txt
+%{ruby_rubylibdir}/test
+
+%files rdoc
+%defattr(644,root,root,755)
+%{ruby_rdocdir}/%{name}-%{version}
+
+%files ri
+%defattr(644,root,root,755)
+%{ruby_ridir}/Test
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2011/01/18 12:07:20  zbyniu
+- initial
+
================================================================


More information about the pld-cvs-commit mailing list