par2cmdline-vl.spec 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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: 2%{?_dist_release}
  6. Group: accessories
  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. # Fix tests to account for endianness correctly.
  13. # Backport of https://github.com/Parchive/par2cmdline/commit/4f3576a314d7169912842ec9dc1e595e61e52653.
  14. Patch0: 0001-Fix-for-Github-issue-143.-Test-did-not-account-for-e.patch
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  16. Obsoletes: parchive <= 1.1.4
  17. Provides: parchive = 1.1.4.0.par2.%{version}
  18. %description
  19. par2cmdline is a program for creating and using PAR2 files to detect damage
  20. in data files and repair them if necessary. PAR2 files are usually
  21. published in binary newsgroups on Usenet; they apply the data-recovery
  22. capability concepts of RAID-like systems to the posting and recovery of
  23. multi-part archives.
  24. %debug_package
  25. %prep
  26. %autosetup -p 1
  27. # fix end-of-lines of several files
  28. sed -i 's/\r//' AUTHORS PORTING README ROADMAP
  29. # Remove executable permission from text files
  30. chmod -x ChangeLog configure.ac INSTALL Makefile.am NEWS stamp-h.in
  31. %build
  32. %configure
  33. make %{_smp_mflags}
  34. %install
  35. rm -rf %{buildroot}
  36. %make_install
  37. ln -sf par2 %{buildroot}/%{_bindir}/par
  38. %clean
  39. rm -rf %{buildroot}
  40. %if %{with test}
  41. %check
  42. make check-TESTS
  43. %endif
  44. %files
  45. %defattr(-,root,root,-)
  46. %license COPYING
  47. %doc AUTHORS ChangeLog README*
  48. %{_bindir}/par
  49. %{_bindir}/par2
  50. %{_bindir}/par2create
  51. %{_bindir}/par2repair
  52. %{_bindir}/par2verify
  53. %{_mandir}/man1/par2.1*
  54. %changelog
  55. * Wed Mar 10 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.8.1-2
  56. - imported Patch0 from upstream.
  57. * Sat Apr 11 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.8.1-1
  58. - new upstream release.
  59. - dropped Patch1.
  60. * Fri Sep 02 2016 Toshiaki Ara <ara_t@384.jp> 0.4-2
  61. - rebuild with gcc-5.4.0
  62. * Sun Oct 10 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.4-1
  63. - Initial build for Vine Linux
  64. - brought patch from debian