]>
Commit | Line | Data |
---|---|---|
e1bf4205 ER |
1 | Summary: A user and branch filter for git fast-export data |
2 | Name: git-export-filter | |
3 | # grep 'git-export-filter version' git-export-filter.c | |
4 | Version: 1.5.0 | |
5 | Release: 1 | |
6 | License: GPL v2 | |
7 | Group: Development/Tools | |
8 | # http://repo.or.cz/git-export-filter.git/bundles | |
9 | Source0: http://repo.or.cz/git-export-filter.git/%{name}-a6a4d1e5.bundle | |
10 | # Source0-md5: - | |
11 | URL: http://repo.or.cz/w/git-export-filter.git | |
12 | BuildRequires: git-core | |
13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
14 | ||
15 | %description | |
16 | git-export-filter allows one to filter a git fast-export data stream | |
17 | optionally rewriting committer/author and/or branch/tag names. | |
18 | ||
19 | %prep | |
20 | %setup -qcT | |
21 | ||
22 | git init | |
23 | git remote add origin %{SOURCE0} | |
24 | git fetch origin | |
25 | git checkout -b master origin/master | |
26 | ||
27 | %build | |
28 | %{__make} \ | |
29 | CC="%{__cc}" \ | |
30 | CFLAGS="%{rpmcflags}" | |
31 | ||
32 | %install | |
33 | rm -rf $RPM_BUILD_ROOT | |
34 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1} | |
35 | install -p git-export-filter $RPM_BUILD_ROOT%{_bindir} | |
36 | cp -p git-export-filter.1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
37 | ||
38 | %clean | |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | ||
41 | %files | |
42 | %defattr(644,root,root,755) | |
43 | %doc README.txt | |
44 | %attr(755,root,root) %{_bindir}/git-export-filter | |
45 | %{_mandir}/man1/git-export-filter.1* |