%{!?_licensedir:%global license %%doc} Name: par2cmdline Version: 0.8.1 Release: 1%{?dist} Summary: a file verification and repair tool License: GPLv2 URL: https://github.com/Parchive/par2cmdline Source0: %{url}/archive/v%{version}.tar.gz BuildRequires: automake autoconf gcc gcc-c++ %description par2cmdline is a PAR 2.0 compatible file verification and repair tool. par2cmdline is a program for creating and using PAR2 files to detect damage in data files and repair them if necessary. It can be used with any kind of file. %prep %setup -q %build aclocal automake --warnings=all --add-missing autoconf --warnings=all CFLAGS="%{optflags} -fPIC" CXXFLAGS="%{optflags} -fPIC" \ %configure make %{?_smp_mflags} %install [ '%{buildroot}' != '/' ] && rm -rf %{buildroot} %make_install %files %defattr(-,root,root,-) %license COPYING %doc README %{_bindir}/par2 %{_bindir}/par2create %{_bindir}/par2repair %{_bindir}/par2verify %{_mandir}/man1/par2.1* %changelog * Sat Jan 2 2021 Philippe Kueck - 0.8.1-1 - initial packaging