python-dateutil/python-dateutil.spec

Tue, 28 Aug 2012 18:28:35 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 28 Aug 2012 18:28:35 +0200
changeset 526
7ddfdb42afce
parent 317
855a9d44e7aa
permissions
-rw-r--r--

Write a explicit dependency to pkgconfig file for getaddrinfo(3). The SVR4
dependencies libsocket and libnsl are needed by libgio and libglib at least,
and allow dependent software like gmime to build unmodified.

michael@317 1 ##
michael@317 2 ## python-dateutil.spec -- OpenPKG RPM Package Specification
michael@317 3 ## Copyright (c) 2011 Michael Schloh von Bennewitz <michael@schloh.com>
michael@317 4 ##
michael@317 5 ## Permission to use, copy, modify, and distribute this software for
michael@317 6 ## any purpose with or without fee is hereby granted, provided that
michael@317 7 ## the above copyright notice and this permission notice appear in all
michael@317 8 ## copies.
michael@317 9 ##
michael@317 10 ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
michael@317 11 ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
michael@317 12 ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
michael@317 13 ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
michael@317 14 ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
michael@317 15 ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
michael@317 16 ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
michael@317 17 ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
michael@317 18 ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
michael@317 19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
michael@317 20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
michael@317 21 ## SUCH DAMAGE.
michael@317 22 ##
michael@317 23
michael@317 24 # package version
michael@317 25 %define V_python 2.3
michael@317 26 %define V_dateutil 1.5
michael@317 27
michael@317 28 # package information
michael@317 29 Name: python-dateutil
michael@317 30 Summary: Python World Timezone Definitions
michael@317 31 URL: http://niemeyer.net/python-dateutil/
michael@317 32 Vendor: Gustavo Niemeyer
michael@317 33 Packager: Michael Schloh von Bennewitz
michael@387 34 Distribution: Europalab Networks Production
michael@317 35 Class: EVAL
michael@317 36 Group: Language
michael@317 37 License: MIT
michael@317 38 Version: %{V_dateutil}
michael@317 39 Release: 20110300
michael@317 40
michael@317 41 # list of sources
michael@317 42 Source0: http://niemeyer.net/download/python-dateutil/python-dateutil-%{version}.tar.gz
michael@317 43
michael@317 44 # build information
michael@317 45 Prefix: %{l_prefix}
michael@317 46 BuildRoot: %{l_buildroot}
michael@317 47 BuildPreReq: OpenPKG, openpkg >= 20060823
michael@317 48 PreReq: OpenPKG, openpkg >= 20060823
michael@317 49 BuildPreReq: python >= %{V_python}, python-setup
michael@317 50 PreReq: python >= %{V_python}
michael@317 51 AutoReq: no
michael@317 52 AutoReqProv: no
michael@317 53
michael@317 54 %description
michael@317 55 The Python dateutil module provides powerful extensions to
michael@317 56 the standard Python datetime module.
michael@317 57
michael@317 58 %track
michael@317 59 prog python-dateutil = {
michael@317 60 version = %{version}
michael@317 61 url = http://niemeyer.net/download/python-dateutil
michael@317 62 regex = python-dateutil-(__VER__)\.tar\.gz
michael@317 63 }
michael@317 64
michael@317 65 %prep
michael@317 66 %setup -q -n python-dateutil-%{version}
michael@317 67
michael@317 68 %build
michael@317 69 %{l_prefix}/bin/python setup.py build
michael@317 70
michael@317 71 %install
michael@317 72 rm -rf $RPM_BUILD_ROOT
michael@317 73 %{l_prefix}/bin/python setup.py install \
michael@317 74 --skip-build \
michael@317 75 --root=$RPM_BUILD_ROOT \
michael@317 76 --prefix=%{l_prefix}
michael@317 77 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
michael@317 78
michael@317 79 %files -f files
michael@317 80
michael@317 81 %clean
michael@317 82 rm -rf $RPM_BUILD_ROOT
michael@317 83

mercurial