]>
Commit | Line | Data |
---|---|---|
ba0ce1a1 JR |
1 | %define module towncrier |
2 | Summary: Building newsfiles for your project | |
3 | Name: python3-%{module} | |
4 | Version: 21.3.0 | |
0c65e08e | 5 | Release: 1 |
ba0ce1a1 JR |
6 | License: BSD |
7 | Group: Libraries/Python | |
8 | Source0: https://files.pythonhosted.org/packages/source/t/towncrier/%{module}-%{version}.tar.gz | |
9 | # Source0-md5: ae3ba211d45e80731b7a974aa1d6ffd2 | |
10 | URL: https://pypi.org/project/towncrier/ | |
11 | BuildRequires: python3-incremental | |
12 | BuildRequires: python3-modules >= 1:3.2 | |
13 | BuildRequires: python3-setuptools | |
14 | BuildRequires: rpm-pythonprov | |
15 | BuildRequires: rpmbuild(macros) >= 1.714 | |
16 | Requires: python3-modules >= 1:3.2 | |
17 | BuildArch: noarch | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
21 | towncrier is a utility to produce useful, summarised news files for | |
22 | your project. Rather than reading the Git history as some newer tools | |
23 | to produce it, or having one single file which developers all write | |
24 | to, towncrier reads “news fragments” which contain information useful | |
25 | to end users. | |
26 | ||
27 | %package apidocs | |
28 | Summary: API documentation for Python %{module} module | |
29 | Summary(pl.UTF-8): Dokumentacja API modułu Pythona %{module} | |
30 | Group: Documentation | |
31 | ||
32 | %description apidocs | |
33 | API documentation for Python %{module} module. | |
34 | ||
35 | %description apidocs -l pl.UTF-8 | |
36 | Dokumentacja API modułu Pythona %{module}. | |
37 | ||
38 | %prep | |
39 | %setup -q -n %{module}-%{version} | |
40 | ||
41 | %build | |
42 | %py3_build | |
43 | ||
44 | %install | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %py3_install | |
48 | ||
49 | %{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/towncrier/test | |
50 | ||
51 | %clean | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %files | |
55 | %defattr(644,root,root,755) | |
56 | %doc CONTRIBUTING.rst NEWS.rst README.rst | |
57 | %attr(755,root,root) %{_bindir}/towncrier | |
58 | %dir %{py3_sitescriptdir}/%{module} | |
59 | %{py3_sitescriptdir}/%{module}/*.py | |
60 | %{py3_sitescriptdir}/%{module}/__pycache__ | |
61 | %{py3_sitescriptdir}/%{module}/templates | |
62 | %{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info |