]> git.pld-linux.org Git - SPECS.git/blob - git-filter-repo.spec
SPECS updated Sun 1 Aug 11:02:02 CEST 2021
[SPECS.git] / git-filter-repo.spec
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
4 Version:        2.32.0
5 Release:        1
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
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
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
23 %{__sed} -i -e '1s,^#!.*python3*,#!%{__python3},' %{name}
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
This page took 0.167152 seconds and 3 git commands to generate.