]>
Commit | Line | Data |
---|---|---|
9195dd44 ER |
1 | # |
2 | # Conditional build: | |
5117355a | 3 | %bcond_without tests # unit tests |
9195dd44 | 4 | |
ed327d07 | 5 | %define module fastimport |
9195dd44 | 6 | Summary: Python parser for fastimport (VCS interchange format) |
5117355a | 7 | Summary(pl.UTF-8): Pythonowy parser formatu fastimport (do wymiany VCS) |
45921b51 JB |
8 | Name: python3-%{module} |
9 | Version: 0.9.14 | |
5117355a | 10 | Release: 1 |
9195dd44 | 11 | License: GPL v2+ |
5117355a JB |
12 | Group: Libraries/Python |
13 | #Source0Download: https://pypi.org/project/simple/ | |
14 | Source0: https://files.pythonhosted.org/packages/source/f/fastimport/%{module}-%{version}.tar.gz | |
45921b51 | 15 | # Source0-md5: be8e2780fadd9e4047c7b37b91e20751 |
5117355a | 16 | URL: https://pypi.org/project/fastimport/ |
45921b51 | 17 | BuildRequires: python3-modules >= 1:3.6 |
5117355a | 18 | %if %{with tests} |
45921b51 | 19 | BuildRequires: python3-nose |
5117355a JB |
20 | %endif |
21 | BuildRequires: rpmbuild(macros) >= 1.714 | |
9195dd44 ER |
22 | BuildArch: noarch |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | This is the Python parser that was originally developed for | |
27 | bzr-fastimport, but extracted so it can be used by other projects. | |
28 | ||
5117355a JB |
29 | %description -l pl.UTF-8 |
30 | Pythonowy parser, oryginalnie stworzony na potrzeby bzr-fastimport, | |
31 | ale wyciągnięty do osobnego modułu, dzięki czemu może być używany | |
32 | przez inne projekty. | |
33 | ||
9195dd44 | 34 | %prep |
5117355a | 35 | %setup -q -n %{module}-%{version} |
9195dd44 ER |
36 | |
37 | %build | |
45921b51 | 38 | %py3_build |
9195dd44 | 39 | |
5117355a | 40 | %if %{with tests} |
45921b51 | 41 | nosetests-%{py3_ver} fastimport |
5117355a JB |
42 | %endif |
43 | ||
9195dd44 ER |
44 | %install |
45 | rm -rf $RPM_BUILD_ROOT | |
9195dd44 | 46 | |
45921b51 | 47 | %py3_install |
9195dd44 | 48 | |
45921b51 | 49 | %{__rm} -r $RPM_BUILD_ROOT%{py3_sitescriptdir}/%{module}/tests |
5117355a | 50 | |
9195dd44 ER |
51 | %clean |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
54 | %files | |
55 | %defattr(644,root,root,755) | |
5117355a | 56 | %doc AUTHORS NEWS README.md |
45921b51 JB |
57 | %attr(755,root,root) %{_bindir}/fast-import-filter |
58 | %attr(755,root,root) %{_bindir}/fast-import-info | |
59 | %attr(755,root,root) %{_bindir}/fast-import-query | |
60 | %{py3_sitescriptdir}/fastimport | |
61 | %{py3_sitescriptdir}/fastimport-%{version}-py*.egg-info |