par2cmdline-vl.spec 1.7 KB

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