|
Last change
on this file since 1306 was 1137, checked in by Yuri Dario, 8 years ago |
|
spec: python-dateutil: Release version 2.6.0-1.
|
|
File size:
1.3 KB
|
| Line | |
|---|
| 1 | # Based on http://pkgs.fedoraproject.org/cgit/rpms/tig.git/tree/tig.spec?id=5d56685605a3a91f698586130cdd619652b49add
|
|---|
| 2 |
|
|---|
| 3 | %global modname dateutil
|
|---|
| 4 |
|
|---|
| 5 | Name: python-%{modname}
|
|---|
| 6 | Version: 2.6.0
|
|---|
| 7 | Release: 1%{?dist}
|
|---|
| 8 | Summary: Powerful extensions to the standard datetime module
|
|---|
| 9 |
|
|---|
| 10 | Group: Development/Languages
|
|---|
| 11 | License: Python
|
|---|
| 12 | URL: https://github.com/dateutil/dateutil
|
|---|
| 13 | Source0: https://github.com/dateutil/dateutil/archive/%{version}/%{modname}-%{version}.tar.gz
|
|---|
| 14 |
|
|---|
| 15 | BuildArch: noarch
|
|---|
| 16 | #BuildRequires: python-sphinx
|
|---|
| 17 |
|
|---|
| 18 | %description
|
|---|
| 19 | The dateutil module provides powerful extensions to the standard datetime
|
|---|
| 20 | module available in Python 2.3+.
|
|---|
| 21 |
|
|---|
| 22 | This is the version for Python 2.
|
|---|
| 23 |
|
|---|
| 24 | %package doc
|
|---|
| 25 | Summary: API documentation for python-dateutil
|
|---|
| 26 | %description doc
|
|---|
| 27 | This package contains %{summary}.
|
|---|
| 28 |
|
|---|
| 29 | %prep
|
|---|
| 30 | %autosetup -p0 -n python-%{modname}-%{version}
|
|---|
| 31 | #iconv --from=ISO-8859-1 --to=UTF-8 NEWS > NEWS.new
|
|---|
| 32 | #mv NEWS.new NEWS
|
|---|
| 33 |
|
|---|
| 34 | %build
|
|---|
| 35 | %{__python} setup.py build
|
|---|
| 36 | #make -C docs html
|
|---|
| 37 |
|
|---|
| 38 | %install
|
|---|
| 39 | %{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
|---|
| 40 |
|
|---|
| 41 | %check
|
|---|
| 42 | #%{__python} setup.py test
|
|---|
| 43 |
|
|---|
| 44 | %files -n python-%{modname}
|
|---|
| 45 | %license LICENSE
|
|---|
| 46 | %doc NEWS README.rst
|
|---|
| 47 | %{python_sitelib}/%{modname}/
|
|---|
| 48 | %{python_sitelib}/*.egg-info
|
|---|
| 49 |
|
|---|
| 50 | #%files doc
|
|---|
| 51 | #%license LICENSE
|
|---|
| 52 | #%doc docs/_build/html
|
|---|
| 53 |
|
|---|
| 54 | %changelog
|
|---|
| 55 | * Wed May 10 2017 yd <yd@os2power.com> 2.6.0-1
|
|---|
| 56 | - first public build.
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.