]>
Commit | Line | Data |
---|---|---|
61053078 ER |
1 | %include /usr/lib/rpm/macros.perl |
2 | Summary: CVS-log-message-to-ChangeLog conversion script | |
3 | Name: cvs2cl | |
4 | Version: 2.59 | |
5 | Release: 0.1 | |
6 | Epoch: 0 | |
7 | License: GPL v2 | |
8 | Group: Applications | |
9 | Source0: http://www.red-bean.com/cvs2cl/cvs2cl.pl | |
10 | # Source0-md5: 2267d1023719f72358d2739e41ca984c | |
11 | URL: http://www.red-bean.com/cvs2cl/ | |
12 | BuildRequires: rpm-perlprov | |
13 | BuildRequires: sed >= 4.0 | |
14 | BuildArch: noarch | |
15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
16 | ||
17 | %description | |
18 | cvs2cl is Perl script that does what you think it does: it produces a | |
19 | GNU-style ChangeLog for CVS-controlled sources, by running "cvs log" | |
20 | and parsing the output. Duplicate log messages get unified in the | |
21 | Right Way. If you don't know what any of that means, then you're doing | |
22 | fine, just keep on truckin'. | |
23 | ||
24 | %prep | |
25 | %setup -q -c -T | |
26 | cp %{SOURCE0} . | |
27 | ||
28 | # remove shell header for perl autoreqdep to work | |
29 | sed -i -e '1,/^#!perl -w/d' %{name}.pl | |
30 | # and add proper one | |
31 | sed -i -e '1i#!%{__perl} -w' %{name}.pl | |
32 | ||
33 | %install | |
34 | rm -rf $RPM_BUILD_ROOT | |
35 | install -d $RPM_BUILD_ROOT%{_bindir} | |
36 | install %{name}.pl $RPM_BUILD_ROOT%{_bindir}/%{name} | |
37 | ||
38 | %clean | |
39 | rm -rf $RPM_BUILD_ROOT | |
40 | ||
41 | %files | |
42 | %defattr(644,root,root,755) | |
43 | %attr(755,root,root) %{_bindir}/* |