]>
Commit | Line | Data |
---|---|---|
8dde3977 ER |
1 | Summary: Distributed version control system focused on speed, effectivity and usability |
2 | Summary(pl.UTF-8): Rozproszony system śledzenia treści skupiony na szybkości, wydajności i użyteczności | |
3 | Name: git-filter-repo | |
d52cb764 | 4 | Version: 2.34.0 |
80dd3f04 | 5 | Release: 2 |
8dde3977 ER |
6 | License: GPL v2 |
7 | Group: Development/Tools | |
8 | Source0: https://github.com/newren/git-filter-repo/releases/download/v%{version}/%{name}-%{version}.tar.xz | |
d52cb764 | 9 | # Source0-md5: 0dc2df1d33940895934693b1fd0d1dd9 |
8dde3977 | 10 | URL: https://github.com/newren/git-filter-repo |
0d41a018 | 11 | Requires: git-core >= 2.24.0 |
1ad0af00 | 12 | Requires: python3 >= 1:3.5 |
4a6333eb | 13 | Requires: python3-modules >= 1:3.5 |
8dde3977 ER |
14 | BuildArch: noarch |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
17 | %description | |
18 | filter-repo is a single-file Python script, depending only on the | |
19 | Python standard library (and execution of git commands). | |
20 | ||
21 | %prep | |
22 | %setup -q | |
d482abc2 | 23 | %{__sed} -i -e '1s,^#!.*python3*,#!%{__python3},' %{name} |
8dde3977 ER |
24 | |
25 | %install | |
26 | rm -rf $RPM_BUILD_ROOT | |
27 | install -d $RPM_BUILD_ROOT{%{_prefix}/libexec/git-core,%{py3_sitescriptdir},%{_mandir}/man1,%{_docdir}/%{name}} | |
28 | %{__make} install \ | |
29 | htmldir=$RPM_BUILD_ROOT%{_docdir}/%{name} \ | |
30 | pythondir=$RPM_BUILD_ROOT%{py3_sitescriptdir} \ | |
31 | prefix=$RPM_BUILD_ROOT%{_prefix} | |
32 | ||
33 | ln -sf %{_prefix}/libexec/git-core/git-filter-repo $RPM_BUILD_ROOT%{py3_sitescriptdir}/git_filter_repo.py | |
34 | rm $RPM_BUILD_ROOT%{_docdir}/git-filter-repo/git-filter-repo.html | |
35 | ||
36 | %clean | |
37 | rm -rf $RPM_BUILD_ROOT | |
38 | ||
39 | %files | |
40 | %defattr(644,root,root,755) | |
41 | %doc README.md Documentation/html/git-filter-repo.html | |
42 | %attr(755,root,root) %{_libexecdir}/git-core/git-filter-repo | |
43 | %{_mandir}/man1/git-filter-repo.1* | |
44 | %{py3_sitescriptdir}/git_filter_repo.py |