Revision 2034,
1.6 KB
checked in by inagaki, 14 years ago
(diff) |
NEW: dar, par2cmdline
|
Line | |
---|
1 | Name: par2cmdline |
---|
2 | Summary: PAR 2.0 compatible file verification and repair tool |
---|
3 | Version: 0.4 |
---|
4 | Release: 1%{?_dist_release} |
---|
5 | |
---|
6 | Group: Applications/Archiving |
---|
7 | License: GPLv2+ |
---|
8 | URL: http://parchive.sourceforge.net/ |
---|
9 | |
---|
10 | Source: http://downloads.sourceforge.net/project/parchive/par2cmdline/0.4/%{name}-%{version}.tar.gz |
---|
11 | Patch1: par2cmdline-0.4-debian.patch |
---|
12 | |
---|
13 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
14 | Obsoletes: parchive <= 1.1.4 |
---|
15 | Provides: parchive = 1.1.4.0.par2.%{version} |
---|
16 | |
---|
17 | %description |
---|
18 | par2cmdline is a program for creating and using PAR2 files to detect damage |
---|
19 | in data files and repair them if necessary. PAR2 files are usually |
---|
20 | published in binary newsgroups on Usenet; they apply the data-recovery |
---|
21 | capability concepts of RAID-like systems to the posting and recovery of |
---|
22 | multi-part archives. |
---|
23 | |
---|
24 | |
---|
25 | %prep |
---|
26 | %setup -q |
---|
27 | %patch1 -p1 |
---|
28 | |
---|
29 | # fix end-of-lines of several files |
---|
30 | sed -i 's/\r//' AUTHORS PORTING README ROADMAP |
---|
31 | |
---|
32 | |
---|
33 | %build |
---|
34 | %configure |
---|
35 | make %{_smp_mflags} |
---|
36 | chmod 644 ChangeLog galois.h par1repairer.cpp par2repairer.cpp par2repairersourcefile.cpp par2repairersourcefile.h |
---|
37 | |
---|
38 | |
---|
39 | %install |
---|
40 | rm -rf $RPM_BUILD_ROOT |
---|
41 | |
---|
42 | %makeinstall |
---|
43 | ln -sf par2 $RPM_BUILD_ROOT/%{_bindir}/par |
---|
44 | |
---|
45 | |
---|
46 | %clean |
---|
47 | rm -rf $RPM_BUILD_ROOT |
---|
48 | |
---|
49 | |
---|
50 | %check |
---|
51 | chmod +x test[1-6] pretest posttest |
---|
52 | make check-TESTS |
---|
53 | |
---|
54 | |
---|
55 | %files |
---|
56 | %defattr(-,root,root,-) |
---|
57 | %doc AUTHORS COPYING ChangeLog README |
---|
58 | %{_bindir}/par |
---|
59 | %{_bindir}/par2 |
---|
60 | %{_bindir}/par2create |
---|
61 | %{_bindir}/par2repair |
---|
62 | %{_bindir}/par2verify |
---|
63 | |
---|
64 | %changelog |
---|
65 | * Sun Oct 10 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.4-1 |
---|
66 | - Initial build for Vine Linux |
---|
67 | - brought patch from debian |
---|
68 | |
---|
Note: See
TracBrowser
for help on using the repository browser.