SPECS: ruby-mime-types.spec (NEW) - added

aredridel aredridel at pld-linux.org
Sat Nov 4 20:12:05 CET 2006


Author: aredridel                    Date: Sat Nov  4 19:12:05 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added

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

---- Diffs:

================================================================
Index: SPECS/ruby-mime-types.spec
diff -u /dev/null SPECS/ruby-mime-types.spec:1.1
--- /dev/null	Sat Nov  4 20:12:05 2006
+++ SPECS/ruby-mime-types.spec	Sat Nov  4 20:11:59 2006
@@ -0,0 +1,61 @@
+# $Revision$, $Date$
+Summary:	MIME::Types for Ruby
+Name:		ruby-mime-types
+Version:	1.13.1
+Release:	1
+License:	Ruby's, Artistic or GPLv2+
+Group:		Development/Languages
+Source0:	http://raa.ruby-lang.org/cache/mime-types/mime-types-1.13.1.tar.gz
+# Source0-md5:	49fb7abf6730ebae1e32fc2d8ccc928e
+URL:		http://raa.ruby-lang.org/project/mime-types/
+BuildRequires:	rpmbuild(macros) >= 1.277
+BuildRequires:	setup.rb = 3.3.1
+#BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+MIME::Types provides the ability for detailed information about MIME entities to be determined and used programmatically.
+
+This is largely based on Perl MIME::Types 1.13. Please see the main documentation for more information.
+
+%prep
+%setup -q -n mime-types-%{version}
+cp %{_datadir}/setup.rb .
+
+%build
+ruby setup.rb config \
+	--rbdir=%{ruby_rubylibdir} \
+	--sodir=%{ruby_archdir}
+
+ruby setup.rb setup
+
+rdoc --op rdoc lib
+rdoc --ri --op ri lib
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{ruby_archdir},%{ruby_ridir}}
+
+ruby setup.rb install \
+	--prefix=$RPM_BUILD_ROOT
+
+cp -a ri/ri/* $RPM_BUILD_ROOT%{ruby_ridir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc rdoc
+%{ruby_rubylibdir}/*
+%{ruby_ridir}/*
+
+%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  2006/11/04 19:11:59  aredridel
+- added
+
================================================================


More information about the pld-cvs-commit mailing list