source: projects/specs/branches/6/p/par2cmdline/par2cmdline-vl.spec @ 2034

Revision 2034, 1.6 KB checked in by inagaki, 14 years ago (diff)

NEW: dar, par2cmdline

Line 
1Name:           par2cmdline
2Summary:        PAR 2.0 compatible file verification and repair tool
3Version:        0.4
4Release:        1%{?_dist_release}
5
6Group:          Applications/Archiving
7License:        GPLv2+
8URL:            http://parchive.sourceforge.net/
9
10Source:         http://downloads.sourceforge.net/project/parchive/par2cmdline/0.4/%{name}-%{version}.tar.gz
11Patch1:         par2cmdline-0.4-debian.patch
12
13BuildRoot:      %{_tmppath}/%{name}-%{version}-root
14Obsoletes:      parchive <= 1.1.4
15Provides:       parchive = 1.1.4.0.par2.%{version}
16
17%description
18par2cmdline is a program for creating and using PAR2 files to detect damage
19in data files and repair them if necessary. PAR2 files are usually
20published in binary newsgroups on Usenet; they apply the data-recovery
21capability concepts of RAID-like systems to the posting and recovery of
22multi-part archives.
23
24
25%prep
26%setup -q
27%patch1 -p1
28
29# fix end-of-lines of several files
30sed -i 's/\r//' AUTHORS PORTING README ROADMAP
31
32
33%build
34%configure
35make %{_smp_mflags}
36chmod 644 ChangeLog galois.h par1repairer.cpp par2repairer.cpp par2repairersourcefile.cpp par2repairersourcefile.h
37
38
39%install
40rm -rf $RPM_BUILD_ROOT
41
42%makeinstall
43ln -sf par2 $RPM_BUILD_ROOT/%{_bindir}/par
44
45
46%clean
47rm -rf $RPM_BUILD_ROOT
48
49
50%check
51chmod +x test[1-6] pretest posttest
52make 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.