File libpar2-0.spec of Package libpar2-0

#
# spec file for package libpar2-0
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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:           libpar2-0
Version:        0.2
Release:        0
License:        GPL-2.0
Summary:        Library for Performing Common Tasks Related to PAR Recovery Sets
Url:            http://parchive.sourceforge.net/
Group:          System/Libraries
Source0:        http://download.sourceforge.net/parchive/libpar2-%{version}.tar.gz
BuildRequires:  gcc-c++
BuildRequires:  pkg-config
BuildRequires:  pkgconfig(sigc++-2.0)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
LibPar2 allows for the generation, modification, verification, and
repairation of PAR v1.0 and PAR v2.0 (PAR2) recovery sets.
It contains the basic functions needed for working with these sets and
is the basis for GUI applications such as KPar2 and GPar2.

%package -n libpar2-devel
Summary:        LibPar2 Development Files
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}

%description -n libpar2-devel
Development files for the package LibPar2.

%prep
%setup -q -n libpar2-%{version}
sed -i 's/\r$//' AUTHORS README ROADMAP
chmod 644 ChangeLog

%build
%configure --disable-static
make %{?_smp_mflags}

%install
%make_install
rm -rf %{buildroot}%{_libdir}/{*.la,libpar2}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root,-)
%{_libdir}/libpar2.so.*

%files -n libpar2-devel
%defattr(-,root,root,-)
%doc AUTHORS COPYING ChangeLog README ROADMAP
%{_includedir}/*
%{_libdir}/libpar2.so

%changelog
openSUSE Build Service is sponsored by