Blob Blame History Raw
Summary:    PAR 2.0 compatible file verification and repair tool
Name:       par2cmdline
Version:    0.4
Release:    12%{?dist}
License:    GPLv2+
Group:      Applications/Archiving
Source:     http://dl.sourceforge.net/parchive/%{name}-%{version}.tar.gz
Patch0:     par2cmdline-reedsolomon.cpp.patch
Patch1:     par2cmdline-packed.patch
Patch2:     par2cmdline-Makefile.am.patch
URL:        http://parchive.sourceforge.net/
BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Obsoletes:  parchive <= 1.1.4
Provides:   parchive = 1.1.4.0.par2.%{version}

%description
par2cmdline is a program for creating and using PAR2 files to detect damage
in data files and repair them if necessary. PAR2 files are usually
published in binary newsgroups on Usenet; they apply the data-recovery
capability concepts of RAID-like systems to the posting and recovery of
multi-part archives.

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1

# fix end-of-lines of several files
sed -i 's/\r//' AUTHORS PORTING README ROADMAP

%build
%configure
make %{_smp_mflags}
chmod 644 ChangeLog galois.h par1repairer.cpp par2repairer.cpp par2repairersourcefile.cpp par2repairersourcefile.h

%install
rm -rf $RPM_BUILD_ROOT

%makeinstall
ln -sf par2 $RPM_BUILD_ROOT/%{_bindir}/par

%clean
rm -rf $RPM_BUILD_ROOT

%check
make check-TESTS

%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING ChangeLog README 
%{_bindir}/*

%changelog
* Fri Aug 24 2007 Laurent Rineau <laurent.rineau__fedora@normalesup.org> - 0.4-12
- New License: tag.
- rpmlint cleaning: 
    - clean the build root at the beginning of %%install
    - use -q in %%setup

* Mon Aug 28 2006 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> - 0.4-11
- Rebuild for FC-6.
- Change my email address in the %%changelog.

* Fri May 12 2006 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> - 0.4-10
- New %%changelog. Quote percent signs.

* Wed May 10 2006 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> - 0.4-9
- Remove PORTING and ROADMAP from doc files.
- Patch2: Remove explicit linking with -lstdc++ in Makefile.am, what required to call aclocal-1.9 and automake-1.9

* Tue May  9 2006 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> - 0.4-8
- Added a new patch, to kill warnings, and try to fix ppc compilation error.

* Fri Apr 28 2006 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> - 0.4-7
- Change the description. Thanks to Jason Tibbitts (tibbs@math.uh.edu) for his help.
- Add %%check section

* Thu Apr 27 2006 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> - 0.4-6
- chmod 644 several files, in %%build
- fix the Source: tag.
- new %%description
- changed the buildroot to the one recommanded for Fedora Extras

* Wed Apr 12 2006 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> - 0.4-5
- Added the dist tag.
- Recode several file with sed, to remove DOS end-of-lines.
- Changed the URL: tag.
- Cleanup after a rpmlint pass.

* Tue Apr 11 2006 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> -  0.4-3
- updated for Fedora Core 4
- obsolete parchive 1.1.4
- provides parchive = 1.1.4.0.par2.%%{version}

* Tue May 11 2004 - Thibaut Cousin <linux@thibaut-cousin.net>
- updated to version 0.4 for SUSE 9.1

* Tue Oct 21 2003 - Thibaut Cousin <linux@thibaut-cousin.net>
- first release of this package for SuSE 9.0