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

aredridel aredridel at pld-linux.org
Tue Aug 30 01:11:54 CEST 2005


Author: aredridel                    Date: Mon Aug 29 23:11:54 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added

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

---- Diffs:

================================================================
Index: SPECS/ruby-PageTemplate.spec
diff -u /dev/null SPECS/ruby-PageTemplate.spec:1.1
--- /dev/null	Tue Aug 30 01:11:54 2005
+++ SPECS/ruby-PageTemplate.spec	Tue Aug 30 01:11:47 2005
@@ -0,0 +1,66 @@
+# $Revision$, $Date$
+%define	ruby_ridir	%(ruby -r rbconfig -e 'include Config; print File.join(CONFIG["datadir"], "ri", CONFIG["ruby_version"], "system")')
+%define ruby_rubylibdir %(ruby -r rbconfig -e 'print Config::CONFIG["rubylibdir"]')
+%define	ruby_archdir	%(ruby -r rbconfig -e 'print Config::CONFIG["archdir"]')
+Summary:	Ruby PageTemplate library
+Name:		ruby-PageTemplate
+Version:	2.1.2
+Release:	1
+License:	GPL
+Group:		Development/Languages
+Source0:	http://rubyforge.org/frs/download.php/5403/PageTemplate-%{version}.tar.gz
+# Source0-md5:	2295464231d1b38be94441b9d98accae
+Source1:	setup.rb
+URL:		http://coolnamehere.com/products/pagetemplate/
+BuildRequires:	ruby
+BuildRequires:	ruby-devel
+BuildRequires:	setup.rb
+Requires:	ruby
+#BuildArch: noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+PageTemplate is a Ruby package which allows you to utilize text templates for your Web projects. It is mainly intended for use in a CGI environment, but has been designed to be useful in a broad range of similar applications. It is inspired by, yet almost entirely unlike, the HTML::Template package available for Perl. It has many features in common with other templating engines:
+
+%prep
+%setup -q -n PageTemplate
+
+%build
+cp /usr/share/setup.rb .
+
+ruby setup.rb config \
+	--rbdir=%{ruby_rubylibdir} \
+	--sodir=%{ruby_archdir}
+
+ruby setup.rb setup
+
+rdoc -o rdoc lib --inline-source
+rdoc --ri lib -o ri
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{ruby_rubylibdir},%{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 README* rdoc
+%{ruby_rubylibdir}/PageTemplate.rb
+%{ruby_rubylibdir}/PageTemplate
+%{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  2005/08/29 23:11:47  aredridel
+- added
+
================================================================



More information about the pld-cvs-commit mailing list