diff -r 153998c81c45 -r 855a9d44e7aa python-pytz/python-pytz.spec --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/python-pytz/python-pytz.spec Wed Mar 23 20:44:16 2011 +0100 @@ -0,0 +1,84 @@ +## +## python-pytz.spec -- OpenPKG RPM Package Specification +## Copyright (c) 2011 Michael Schloh von Bennewitz +## +## Permission to use, copy, modify, and distribute this software for +## any purpose with or without fee is hereby granted, provided that +## the above copyright notice and this permission notice appear in all +## copies. +## +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +## SUCH DAMAGE. +## + +# package version +%define V_python 2.3 +%define V_pytz 2011d + +# package information +Name: python-pytz +Summary: Python World Timezone Definitions +URL: http://pytz.sourceforge.net/ +Vendor: Stuart Bishop +Packager: Michael Schloh von Bennewitz +Distribution: Michael Schloh von Bennewitz +Class: EVAL +Group: Language +License: MIT +Version: %{V_pytz} +Release: 20110300 + +# list of sources +Source0: http://pypi.python.org/packages/source/p/pytz/pytz-%{version}.tar.bz2 + +# build information +Prefix: %{l_prefix} +BuildRoot: %{l_buildroot} +BuildPreReq: OpenPKG, openpkg >= 20060823, python >= %{V_python} +PreReq: OpenPKG, openpkg >= 20060823, python >= %{V_python} +AutoReq: no +AutoReqProv: no + +%description + Pytz brings the Olson tz database into Python. This library allows + accurate and cross platform timezone calculations using Python 2.3 + or higher. It also solves the issue of ambiguous times at the end + of daylight savings, as specified in the Python Library Reference + section datetime.tzinfo. + +%track + prog python-pytz = { + version = %{version} + url = http://pypi.python.org/packages/source/p/pytz + regex = /pytz-(__VER__)\.tar\.bz2 + } + +%prep + %setup -q -n pytz-%{version} + +%build + %{l_prefix}/bin/python setup.py build + +%install + rm -rf $RPM_BUILD_ROOT + %{l_prefix}/bin/python setup.py install \ + --skip-build \ + --root=$RPM_BUILD_ROOT \ + --prefix=%{l_prefix} + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} + +%files -f files + +%clean + rm -rf $RPM_BUILD_ROOT +