Sat, 27 Oct 2012 17:19:03 +0200
Update version adjusting patch logic accordingly, correctly create
installation hierarchy, and introduce apache-php::with_xmlwriter
dependency required by rather important XML sitemap logic.
1 ##
2 ## python-pytz.spec -- OpenPKG RPM Package Specification
3 ## Copyright (c) 2011 Michael Schloh von Bennewitz <michael@schloh.com>
4 ##
5 ## Permission to use, copy, modify, and distribute this software for
6 ## any purpose with or without fee is hereby granted, provided that
7 ## the above copyright notice and this permission notice appear in all
8 ## copies.
9 ##
10 ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
11 ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
12 ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
13 ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
14 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
15 ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
16 ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
17 ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
18 ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
21 ## SUCH DAMAGE.
22 ##
24 # package version
25 %define V_python 2.3
26 %define V_pytz 2011d
28 # package information
29 Name: python-pytz
30 Summary: Python World Timezone Definitions
31 URL: http://pytz.sourceforge.net/
32 Vendor: Stuart Bishop
33 Packager: Michael Schloh von Bennewitz
34 Distribution: Europalab Networks Production
35 Class: EVAL
36 Group: Language
37 License: MIT
38 Version: %{V_pytz}
39 Release: 20110300
41 # list of sources
42 Source0: http://pypi.python.org/packages/source/p/pytz/pytz-%{version}.tar.bz2
44 # build information
45 Prefix: %{l_prefix}
46 BuildRoot: %{l_buildroot}
47 BuildPreReq: OpenPKG, openpkg >= 20060823, python >= %{V_python}
48 PreReq: OpenPKG, openpkg >= 20060823, python >= %{V_python}
49 AutoReq: no
50 AutoReqProv: no
52 %description
53 Pytz brings the Olson tz database into Python. This library allows
54 accurate and cross platform timezone calculations using Python 2.3
55 or higher. It also solves the issue of ambiguous times at the end
56 of daylight savings, as specified in the Python Library Reference
57 section datetime.tzinfo.
59 %track
60 prog python-pytz = {
61 version = %{version}
62 url = http://pypi.python.org/packages/source/p/pytz
63 regex = /pytz-(__VER__)\.tar\.bz2
64 }
66 %prep
67 %setup -q -n pytz-%{version}
69 %build
70 %{l_prefix}/bin/python setup.py build
72 %install
73 rm -rf $RPM_BUILD_ROOT
74 %{l_prefix}/bin/python setup.py install \
75 --skip-build \
76 --root=$RPM_BUILD_ROOT \
77 --prefix=%{l_prefix}
78 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
80 %files -f files
82 %clean
83 rm -rf $RPM_BUILD_ROOT