LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File par2.spec of Package par2 (Project home:davjam79)

#
# 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/
#

Name:			par2
Summary:		Generates parity files
Version:		0.6.14
Release:		1.1
Group:			Productivity/File utilities
License:		GPL-2.0+
Source:			%{name}-%{version}.tar.bz2
BuildRoot:		%{_tmppath}/%{name}-%{version}-%{release}-buildroot
URL:			https://github.com/BlackIkeEagle/par2cmdline
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 %{name} %{buildroot}%{_bindir}
ln -s %{_bindir}/%{name} %{buildroot}%{_bindir}/%{name}cmdline
mkdir -p %{buildroot}%{_mandir}/man1
install -m644 %{name}.1 %{buildroot}%{_mandir}/man1


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


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


%changelog
* 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