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
7 Group: Development/Tools
8 Source0: https://github.com/newren/git-filter-repo/releases/download/v%{version}/%{name}-%{version}.tar.xz
9 # Source0-md5: 448ced2f28f53b3ff30520f101b18247
10 URL: https://github.com/newren/git-filter-repo
11 Requires: git-core >= 2.24.0
12 Requires: python3 >= 1:3.5
13 Requires: python3-modules >= 1:3.5
15 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 filter-repo is a single-file Python script, depending only on the
19 Python standard library (and execution of git commands).
23 %{__sed} -i -e '1s,^#!.*python3*,#!%{__python3},' %{name}
26 rm -rf $RPM_BUILD_ROOT
27 install -d $RPM_BUILD_ROOT{%{_prefix}/libexec/git-core,%{py3_sitescriptdir},%{_mandir}/man1,%{_docdir}/%{name}}
29 htmldir=$RPM_BUILD_ROOT%{_docdir}/%{name} \
30 pythondir=$RPM_BUILD_ROOT%{py3_sitescriptdir} \
31 prefix=$RPM_BUILD_ROOT%{_prefix}
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
37 rm -rf $RPM_BUILD_ROOT
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