par2cmdline-vl.spec 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. %bcond_without test
  2. Name: par2cmdline
  3. Summary: PAR 2.0 compatible file verification and repair tool
  4. Version: 0.8.1
  5. Release: 1%{?_dist_release}
  6. Group: Applications/Archiving
  7. Vendor: Project Vine
  8. Distribution: Vine Linux
  9. License: GPLv2+
  10. URL: https://github.com/Parchive/par2cmdline/
  11. Source: https://github.com/Parchive/par2cmdline/releases/download/v%{version}/par2cmdline-%{version}.tar.bz2
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. Obsoletes: parchive <= 1.1.4
  14. Provides: parchive = 1.1.4.0.par2.%{version}
  15. %description
  16. par2cmdline is a program for creating and using PAR2 files to detect damage
  17. in data files and repair them if necessary. PAR2 files are usually
  18. published in binary newsgroups on Usenet; they apply the data-recovery
  19. capability concepts of RAID-like systems to the posting and recovery of
  20. multi-part archives.
  21. %prep
  22. %setup -q
  23. # fix end-of-lines of several files
  24. sed -i 's/\r//' AUTHORS PORTING README ROADMAP
  25. %build
  26. %configure
  27. make %{_smp_mflags}
  28. %install
  29. rm -rf %{buildroot}
  30. %make_install
  31. ln -sf par2 %{buildroot}/%{_bindir}/par
  32. %clean
  33. rm -rf %{buildroot}
  34. %if %{with test}
  35. %check
  36. make check-TESTS
  37. %endif
  38. %files
  39. %defattr(-,root,root,-)
  40. %license COPYING
  41. %doc AUTHORS ChangeLog README*
  42. %{_bindir}/par
  43. %{_bindir}/par2
  44. %{_bindir}/par2create
  45. %{_bindir}/par2repair
  46. %{_bindir}/par2verify
  47. %{_mandir}/man1/par2.1*
  48. %changelog
  49. * Sat Apr 11 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.8.1-1
  50. - new upstream release.
  51. - dropped Patch1.
  52. * Fri Sep 02 2016 Toshiaki Ara <ara_t@384.jp> 0.4-2
  53. - rebuild with gcc-5.4.0
  54. * Sun Oct 10 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.4-1
  55. - Initial build for Vine Linux
  56. - brought patch from debian