Skip to content

Commit 88a6c11

Browse files
committed
contrib/mageia: spec file for git-ified RPM builds
1 parent 2700b7a commit 88a6c11

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

contrib/python-stdnum.mageia.spec

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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

0 commit comments

Comments
 (0)