]> git.pld-linux.org Git - packages/python-isodate.git/blame - python-isodate.spec
up to 0.6.1
[packages/python-isodate.git] / python-isodate.spec
CommitLineData
d3fdcd8c 1#
27adeffa 2# Conditional build:
a2a4a27b
JB
3%bcond_without python2 # CPython 2.x module
4%bcond_without python3 # CPython 3.x module
5%bcond_without tests # unit tests
27adeffa 6
7055521e
AM
7%define module isodate
8Summary: An ISO 8601 date/time/duration parser and formater
c68c9790 9Summary(pl.UTF-8): Moduł analizujący i formatujący daty/czas/okresy w formacie ISO 8601
7055521e 10Name: python-%{module}
c8a2ef53
JP
11Version: 0.6.1
12Release: 1
27adeffa 13License: BSD
a2a4a27b
JB
14Group: Libraries/Python
15#Source0Download: https://pypi.python.org/simple/isodate/
16Source0: https://pypi.python.org/packages/source/i/isodate/isodate-%{version}.tar.gz
c8a2ef53 17# Source0-md5: 1a310658b30a48641bafb5652ad91c40
a2a4a27b 18URL: https://pypi.python.org/pypi/isodate/
27adeffa 19%if %{with python2}
d3fdcd8c 20BuildRequires: python-devel >= 1:2.6
d3fdcd8c 21BuildRequires: python-modules >= 1:2.6
a2a4a27b 22BuildRequires: python-setuptools
27adeffa
JK
23%endif
24%if %{with python3}
a2a4a27b 25BuildRequires: python3-2to3 >= 1:3.2
d3fdcd8c 26BuildRequires: python3-devel >= 1:3.2
d3fdcd8c 27BuildRequires: python3-modules >= 1:3.2
a2a4a27b 28BuildRequires: python3-setuptools
27adeffa 29%endif
7055521e 30BuildRequires: rpm-pythonprov
a2a4a27b 31BuildRequires: rpmbuild(macros) >= 1.714
d3fdcd8c 32Requires: python-modules >= 1:2.6
7055521e
AM
33BuildArch: noarch
34BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36%description
7055521e
AM
37This module implements ISO 8601 date, time and duration parsing. The
38implementation follows ISO8601:2004 standard, and implements only
39date/time representations mentioned in the standard. If something is
40not mentioned there, then it is treated as non existent, and not as an
41allowed option.
42
c68c9790
JB
43%description -l pl.UTF-8
44Ten moduł zawiera implementację analizy daty, czasu i okresów w
45formacie ISO 8601. Implementacja jest zgodna ze standardem
46ISO8601:2004 i zawiera tylko reprezentacje daty/czasu opisane w
47standardzie.
48
27adeffa
JK
49%package -n python3-%{module}
50Summary: An ISO 8601 date/time/duration parser and formater
51Summary(pl.UTF-8): Moduł analizujący i formatujący daty/czas/okresy w formacie ISO 8601
52Group: Libraries/Python
53Requires: python3-modules
54
55%description -n python3-%{module}
56This module implements ISO 8601 date, time and duration parsing. The
57implementation follows ISO8601:2004 standard, and implements only
58date/time representations mentioned in the standard. If something is
59not mentioned there, then it is treated as non existent, and not as an
60allowed option.
61
62%description -n python3-%{module} -l pl.UTF-8
63Ten moduł zawiera implementację analizy daty, czasu i okresów w
64formacie ISO 8601. Implementacja jest zgodna ze standardem
65ISO8601:2004 i zawiera tylko reprezentacje daty/czasu opisane w
66standardzie.
67
7055521e
AM
68%prep
69%setup -q -n isodate-%{version}
70
71%build
27adeffa 72%if %{with python2}
590bbf96 73%py_build %{?with_tests:test}
27adeffa
JK
74%endif
75
76%if %{with python3}
590bbf96 77%py3_build %{?with_tests:test}
27adeffa 78%endif
7055521e
AM
79
80%install
81rm -rf $RPM_BUILD_ROOT
27adeffa
JK
82
83%if %{with python2}
590bbf96 84%py_install
7055521e
AM
85
86%py_postclean
a2a4a27b
JB
87# tests
88%{__rm} -r $RPM_BUILD_ROOT%{py_sitescriptdir}/isodate/tests
27adeffa
JK
89%endif
90
91%if %{with python3}
590bbf96 92%py3_install
a2a4a27b 93
a2a4a27b
JB
94# tests
95%{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/isodate/tests
27adeffa 96%endif
7055521e
AM
97
98%clean
99rm -rf $RPM_BUILD_ROOT
100
101%files
102%defattr(644,root,root,755)
27adeffa 103%doc CHANGES.txt README.rst TODO.txt
7055521e 104%dir %{py_sitescriptdir}/isodate
c68c9790
JB
105%{py_sitescriptdir}/isodate/*.py[co]
106%{py_sitescriptdir}/isodate-%{version}-py*.egg-info
27adeffa
JK
107
108%files -n python3-%{module}
109%defattr(644,root,root,755)
110%doc CHANGES.txt README.rst TODO.txt
111%dir %{py3_sitescriptdir}/isodate
112%{py3_sitescriptdir}/isodate/*.py
113%{py3_sitescriptdir}/isodate/__pycache__
27adeffa 114%{py3_sitescriptdir}/isodate-%{version}-py*.egg-info
This page took 0.100325 seconds and 4 git commands to generate.