]> git.pld-linux.org Git - packages/git-filter-repo.git/blame - git-filter-repo.spec
rebuild with python 3.10
[packages/git-filter-repo.git] / git-filter-repo.spec
CommitLineData
8dde3977
ER
1Summary: Distributed version control system focused on speed, effectivity and usability
2Summary(pl.UTF-8): Rozproszony system śledzenia treści skupiony na szybkości, wydajności i użyteczności
3Name: git-filter-repo
d52cb764 4Version: 2.34.0
80dd3f04 5Release: 2
8dde3977
ER
6License: GPL v2
7Group: Development/Tools
8Source0: https://github.com/newren/git-filter-repo/releases/download/v%{version}/%{name}-%{version}.tar.xz
d52cb764 9# Source0-md5: 0dc2df1d33940895934693b1fd0d1dd9
8dde3977 10URL: https://github.com/newren/git-filter-repo
0d41a018 11Requires: git-core >= 2.24.0
1ad0af00 12Requires: python3 >= 1:3.5
4a6333eb 13Requires: python3-modules >= 1:3.5
8dde3977
ER
14BuildArch: noarch
15BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17%description
18filter-repo is a single-file Python script, depending only on the
19Python 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
26rm -rf $RPM_BUILD_ROOT
27install -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
33ln -sf %{_prefix}/libexec/git-core/git-filter-repo $RPM_BUILD_ROOT%{py3_sitescriptdir}/git_filter_repo.py
34rm $RPM_BUILD_ROOT%{_docdir}/git-filter-repo/git-filter-repo.html
35
36%clean
37rm -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.128971 seconds and 4 git commands to generate.