python-pytz/python-pytz.spec

Wed, 13 Feb 2013 21:38:42 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 13 Feb 2013 21:38:42 +0100
changeset 759
f2dfc2de2a7d
parent 317
855a9d44e7aa
permissions
-rw-r--r--

Update package version to upstream vendor new release.

     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

mercurial