SPECS: ruby-epeg.spec (NEW) - added
aredridel
aredridel at pld-linux.org
Fri Sep 9 11:03:47 CEST 2005
Author: aredridel Date: Fri Sep 9 09:03:47 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- added
---- Files affected:
SPECS:
ruby-epeg.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/ruby-epeg.spec
diff -u /dev/null SPECS/ruby-epeg.spec:1.1
--- /dev/null Fri Sep 9 11:03:47 2005
+++ SPECS/ruby-epeg.spec Fri Sep 9 11:03:41 2005
@@ -0,0 +1,60 @@
+# $Revision$, $Date$
+%define ruby_rubylibdir %(ruby -r rbconfig -e 'print Config::CONFIG["rubylibdir"]')
+%define ruby_archdir %(ruby -r rbconfig -e 'print Config::CONFIG["archdir"]')
+%define ruby_ridir %(ruby -r rbconfig -e 'include Config; print File.join(CONFIG["datadir"], "ri", CONFIG["ruby_version"], "system")')
+%define ruby_version %(ruby -r rbconfig -e 'print Config::CONFIG["ruby_version"]')
+Summary: Epeg JPEG scaler for Ruby
+Name: ruby-epeg
+Version: 0.0.0
+Release: 1
+License: Ruby License
+Group: Development/Languages
+Source0: http://theinternetco.net/projects/ruby/%{name}-%{version}.tar.gz
+# Source0-md5: 5971a59cbdd048c13c50dd330abf1712
+URL: http://theinternetco.net/projects/ruby/ruby-epeg
+BuildRequires: epeg-devel
+BuildRequires: ruby
+BuildRequires: ruby-devel
+Requires: ruby
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+ruby-epeg is an extension to use the fast E17 epeg JPEG scaler.
+
+%prep
+%setup -q
+
+%build
+ruby extconf.rb
+%{__make}
+rdoc --op rdoc *.c
+rdoc --ri --op ri *.c
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{ruby_archdir},%{ruby_ridir}}
+
+%{__make} install \
+ archdir=$RPM_BUILD_ROOT%{ruby_archdir} \
+ sitearchdir=$RPM_BUILD_ROOT%{ruby_archdir}
+
+cp -a ri/ri/* $RPM_BUILD_ROOT%{ruby_ridir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc rdoc
+%{ruby_archdir}/*
+%{ruby_ridir}/Epeg
+
+%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 2005/09/09 09:03:41 aredridel
+- added
+
================================================================
More information about the pld-cvs-commit
mailing list