python-dateutils/python-dateutils.spec

Sat, 24 Mar 2012 21:40:49 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 24 Mar 2012 21:40:49 +0100
changeset 414
fd611cde817f
parent 317
855a9d44e7aa
permissions
-rw-r--r--

Introduce many changes to the buildconf and source code including:
(01) clean up, update, and partially update default config files,
(02) seems that Melware is unable to perform release engineering so
update chan_capi to new daily snapshot to solve echo problems,
(03) correct Asterisk inadequate hard coded gmime version check,
(04) force postgresql pthreads linkage to solve build problem,
(05) remove buggy hard coded LibXML configure definitions,
(06) remove local architecture specification to allow GCC
internal logic to determine proper CPU type instead,
(07) remove vendor sound install target causing uncontrolled
downloads and non RPM managed file installation,
(08) solve long outstanding bug in tcptls causing Asterisk
to ignore any intermediate CA certificate signatures,
(09) back out Digium engineering team's bright idea of replacing the
very portable and pervasive POSIX rand(1) with ast_random(), and
then not even implementing it causing all references to fail in
platforms not providing the very new POSIX.1-2008 mkdtemp(3)
function only distributed by BSD and some Linux,
(10) withdraw advanced linker symbol manipulations from SVR5 builds
until either Binutils supports hybrid versioned and anonymous
linker scripts or GCC stops hard coding versioned linker scripts,
(11) correct missing library linkage, some tailored to a specific OS,
(12) remove outdated logic for the no longer distributed gmime-config(1),
(13) remove local gmime buildconf hacks now that Asterisk has corrected
their own build configuration to almost portably support gmime,
(14) solve build problems relating to undetected LibXML paths,
(15) correct erroneous out of tree include definitions,
(16) improve some variable and comment naming,
(17) simplify sound language path hierarchy creation,
and correct australian english installation logic.

michael@317 1 ##
michael@317 2 ## python-dateutils.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 information
michael@317 25 Name: python-dateutils
michael@317 26 Summary: Python DateUtils
michael@317 27 URL: http://pypi.python.org/pypi/DateUtils/
michael@317 28 Vendor: Jeremy Cantrell
michael@317 29 Packager: Michael Schloh von Bennewitz
michael@387 30 Distribution: Europalab Networks Production
michael@317 31 Class: EVAL
michael@317 32 Group: Language
michael@317 33 License: GPL
michael@317 34 Version: 0.5.1
michael@317 35 Release: 20110300
michael@317 36
michael@317 37 # list of sources
michael@317 38 Source0: http://pypi.python.org/packages/source/D/DateUtils/DateUtils-%{version}.tar.gz
michael@317 39
michael@317 40 # build information
michael@317 41 Prefix: %{l_prefix}
michael@317 42 BuildRoot: %{l_buildroot}
michael@317 43 BuildPreReq: OpenPKG, openpkg >= 20060823
michael@317 44 PreReq: OpenPKG, openpkg >= 20060823
michael@317 45 BuildPreReq: python, python-setup
michael@317 46 PreReq: python, python-dateutil, python-pytz
michael@317 47 AutoReq: no
michael@317 48 AutoReqProv: no
michael@317 49
michael@317 50 %description
michael@317 51 Python DateUtils provides various utilities for working
michael@317 52 with Python datetime objects.
michael@317 53
michael@317 54 %track
michael@317 55 prog python-dateutils = {
michael@317 56 version = %{version}
michael@317 57 url = http://pypi.python.org/packages/source/D/DateUtils
michael@317 58 regex = /DateUtils-(__VER__)\.tar\.gz
michael@317 59 }
michael@317 60
michael@317 61 %prep
michael@317 62 %setup -q -n DateUtils-%{version}
michael@317 63
michael@317 64 %build
michael@317 65 %{l_prefix}/bin/python setup.py build
michael@317 66
michael@317 67 %install
michael@317 68 rm -rf $RPM_BUILD_ROOT
michael@317 69 %{l_prefix}/bin/python setup.py install \
michael@317 70 --skip-build \
michael@317 71 --root=$RPM_BUILD_ROOT \
michael@317 72 --prefix=%{l_prefix}
michael@317 73 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
michael@317 74
michael@317 75 %files -f files
michael@317 76
michael@317 77 %clean
michael@317 78 rm -rf $RPM_BUILD_ROOT
michael@317 79

mercurial