File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ %define git_repo python-stdnum
2+ %define git_head HEAD
3+
4+ Summary: Python module to handle standardized numbers and codes
5+ Name: python-stdnum
6+ Version: %git_get_ver
7+ Release: %mkrel %git_get_rel2
8+ Source: %git_bs_source %{name }-%{version }.tar.gz
9+ Source1: %{name }-gitrpm.version
10+ Source2: %{name }-changelog.gitrpm.txt
11+ License: LGPLv2.1
12+ Group: Development/Python
13+ Url: http://arthurdejong.org/python-stdnum/
14+ BuildRoot: %{_tmppath }/%{name }-%{version }-%{release }-buildroot
15+ BuildArch: noarch
16+ BuildRequires: python-devel python-setuptools
17+
18+ %description
19+ A Python module to parse, validate and reformat standard numbers and codes
20+ in different formats.
21+
22+
23+ %prep
24+ %git_get_source
25+ %setup -q
26+
27+ %build
28+ PYTHONDONTWRITEBYTECODE= %__python setup.py build
29+
30+ %install
31+ %__rm -rf %{buildroot }
32+ PYTHONDONTWRITEBYTECODE= %__python setup.py install --root=%{buildroot } --record=FILE_LIST
33+ %__rm -rf docs/_build/html/.buildinfo
34+
35+ %clean
36+ %__rm -rf %{buildroot }
37+
38+ %files -f FILE_LIST
39+ %defattr(-,root,root)
40+ %doc README NEWS ChangeLog COPYING
41+
42+ %changelog -f %{_sourcedir}/%{name}-changelog.gitrpm.txt
You can’t perform that action at this time.
0 commit comments