File par2cmdline.spec of Package par2cmdline

#
# spec file for package par2
#
# Copyright (c) 2017 David Bolt <davjam79@gmail.com>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

%define	binname		par2

Name:			par2cmdline
Summary:		Generates parity files
Version:		0.8.1
Release:		1.0
Group:			Productivity/File utilities
License:		GPL-2.0+
Source:			%{name}-%{version}.tar.xz
BuildRoot:		%{_tmppath}/%{name}-%{version}-%{release}-buildroot
URL:			https://github.com/BlackIkeEagle/par2cmdline
Obsoletes:		par2
BuildRequires:		gcc-c++
BuildRequires:		autoconf
BuildRequires:		automake


%description
Uses Reed-Solomon algorithm to produce a RAID-like data
protection and recovery system


%prep
%setup -q


%build
aclocal
automake --add-missing
autoconf
%configure
%{__make} CFLAGS="%{optflags}"


%install
mkdir -p %{buildroot}%{_bindir}
install -m755 %{binname} %{buildroot}%{_bindir}
ln -s %{_bindir}/%{binname} %{buildroot}%{_bindir}/%{name}
mkdir -p %{buildroot}%{_mandir}/man1
install -m644 man/%{binname}.1 %{buildroot}%{_mandir}/man1


%files
%defattr(-,root,root,0755)
%{_bindir}/%{binname}
%{_bindir}/%{name}
%{_mandir}/man1/%{binname}.*
%doc AUTHORS ChangeLog COPYING NEWS PORTING README README.md ROADMAP


%clean
rm -rf %{buildroot}
rm -rf %{_builddir}/%{name}-%{version}-%{release}-buildroot


%changelog
* Thu Feb 27 2020 David Bolt <davjam@davjam.org> 0.8.1
- Updated to version 0.8.1
-
* Fri Jun 01 2018 David Bolt <davjam@davjam.org> 0.8.0
- Added Obsoletes for old package name
-
* Mon May 21 2018 David Bolt <davjam@davjam.org> 0.8.0-1
- Updated to version 0.8.0
- Renamed package to par2cmdline
-
* Sun Mar 12 2017 David Bolt <davjam@davjam.org> 0.6.14-1
- Removed unneccessary INSTALL document
-
* Sun Mar 12 2017 David Bolt <davjam@davjam.org> 0.6.14
- Updated to version 0.6.14
- Install man page
-
* Thu Aug 02 2012 David Bolt <davjam@davjam.org> 0.4-1
- Added a symlink for par2cmdline
-
* Sun Dec 12 2004 David Bolt <davjam@davjam.org> 0.4
- First packaged for SUSE
openSUSE Build Service is sponsored by