SPECS: ruby-tzinfo.spec (NEW) - added
aredridel
aredridel at pld-linux.org
Thu Jun 28 23:15:25 CEST 2007
Author: aredridel Date: Thu Jun 28 21:15:25 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- added
---- Files affected:
SPECS:
ruby-tzinfo.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/ruby-tzinfo.spec
diff -u /dev/null SPECS/ruby-tzinfo.spec:1.1
--- /dev/null Thu Jun 28 23:15:25 2007
+++ SPECS/ruby-tzinfo.spec Thu Jun 28 23:15:20 2007
@@ -0,0 +1,92 @@
+# $Revision$, $Date$
+Summary: DST-aware timezone library
+Name: ruby-tzinfo
+Version: 0.3.3
+Release: 2
+License: Ruby License
+Group: Development/Languages
+Source0: http://gems.rubyforge.org/gems/tzinfo-%{version}.gem
+# Source0-md5: 0b69770c1a791d4b7b0e7e4d4d083399
+Source1: setup.rb
+URL: http://tzinfo.rubyforge.org/
+BuildRequires: rpmbuild(macros) >= 1.277
+BuildRequires: ruby-devel
+%{?ruby_mod_ver_requires_eq}
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+TZInfo is a library that uses the standard tz (Olson) database to
+provide daylight savings aware transformations between times in
+different time zones. The tz database is compiled into Ruby classes
+which are packaged in the release. No external zoneinfo files are
+required at runtime.
+
+%prep
+%setup -q -c
+tar xf %{SOURCE0} -O data.tar.gz | tar xzv-
+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/* $RPM_BUILD_ROOT%{ruby_ridir}
+#rm $RPM_BUILD_ROOT%{ruby_ridir}/created.rid
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc rdoc
+%{ruby_rubylibdir}/tzinfo.rb
+%{ruby_rubylibdir}/tzinfo
+
+%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 2007/06/28 21:15:20 aredridel
+- added
+
+Revision 1.7 2005/12/31 10:36:33 twittner
+- change %%ruby_mod_ver_requires_eq to %%{?ruby_mod_ver_requires_eq} -
+ expand this macro only if defined to avoid parse error when appropriate
+ BRs is not installed yet (solution provided by glen)
+
+Revision 1.6 2005/12/29 16:59:48 twittner
+- replace R: ruby-modules with %%ruby_mod_ver_requires_eq macro
+ defined as `Requires: ruby-modules(ver) = 1.8' where `1.8' is
+ major ruby version taken from rbconfig
+- add BR: rpmbuild(macros) >= 1.277 with aforementioned macros
+
+Revision 1.5 2005/12/27 10:07:59 twittner
+- remove redundant BR: ruby-modules (BR: ruby-devel implies it)
+
+Revision 1.4 2005/12/27 09:44:49 twittner
+- (B)R: s/ruby/ruby-modules/, rel. 2 (mass commit through script)
+
+Revision 1.3 2005/11/19 13:32:04 glen
+- use system ruby macros
+- cleanups, corrections, cosmetics
+
+Revision 1.2 2005/05/12 18:08:09 qboosh
+- pl
+
+Revision 1.1 2005/05/11 22:03:47 aredridel
+- added
================================================================
More information about the pld-cvs-commit
mailing list