michael@317: ## michael@317: ## python-dateutil.spec -- OpenPKG RPM Package Specification michael@317: ## Copyright (c) 2011 Michael Schloh von Bennewitz michael@317: ## michael@317: ## Permission to use, copy, modify, and distribute this software for michael@317: ## any purpose with or without fee is hereby granted, provided that michael@317: ## the above copyright notice and this permission notice appear in all michael@317: ## copies. michael@317: ## michael@317: ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED michael@317: ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF michael@317: ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. michael@317: ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR michael@317: ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, michael@317: ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT michael@317: ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF michael@317: ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND michael@317: ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, michael@317: ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT michael@317: ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF michael@317: ## SUCH DAMAGE. michael@317: ## michael@317: michael@317: # package version michael@317: %define V_python 2.3 michael@317: %define V_dateutil 1.5 michael@317: michael@317: # package information michael@317: Name: python-dateutil michael@317: Summary: Python World Timezone Definitions michael@317: URL: http://niemeyer.net/python-dateutil/ michael@317: Vendor: Gustavo Niemeyer michael@317: Packager: Michael Schloh von Bennewitz michael@387: Distribution: Europalab Networks Production michael@317: Class: EVAL michael@317: Group: Language michael@317: License: MIT michael@317: Version: %{V_dateutil} michael@317: Release: 20110300 michael@317: michael@317: # list of sources michael@317: Source0: http://niemeyer.net/download/python-dateutil/python-dateutil-%{version}.tar.gz michael@317: michael@317: # build information michael@317: Prefix: %{l_prefix} michael@317: BuildRoot: %{l_buildroot} michael@317: BuildPreReq: OpenPKG, openpkg >= 20060823 michael@317: PreReq: OpenPKG, openpkg >= 20060823 michael@317: BuildPreReq: python >= %{V_python}, python-setup michael@317: PreReq: python >= %{V_python} michael@317: AutoReq: no michael@317: AutoReqProv: no michael@317: michael@317: %description michael@317: The Python dateutil module provides powerful extensions to michael@317: the standard Python datetime module. michael@317: michael@317: %track michael@317: prog python-dateutil = { michael@317: version = %{version} michael@317: url = http://niemeyer.net/download/python-dateutil michael@317: regex = python-dateutil-(__VER__)\.tar\.gz michael@317: } michael@317: michael@317: %prep michael@317: %setup -q -n python-dateutil-%{version} michael@317: michael@317: %build michael@317: %{l_prefix}/bin/python setup.py build michael@317: michael@317: %install michael@317: rm -rf $RPM_BUILD_ROOT michael@317: %{l_prefix}/bin/python setup.py install \ michael@317: --skip-build \ michael@317: --root=$RPM_BUILD_ROOT \ michael@317: --prefix=%{l_prefix} michael@317: %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} michael@317: michael@317: %files -f files michael@317: michael@317: %clean michael@317: rm -rf $RPM_BUILD_ROOT michael@317: