File libpar2-0.spec of Package libpar2-0
#
# spec file for package libpar2 (Version 0.2)
#
# Copyright (c) 2009, 2010 Kyrill Detinov
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
%define soname 0
Name: libpar2-%{soname}
Version: 0.2
Release: 0
URL: http://parchive.sourceforge.net/
License: GPL-2.0
Source0: libpar2-%{version}.tar.bz2
Group: System/Libraries
Summary: Library for Performing Common Tasks Related to PAR Archives
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc-c++
BuildRequires: libsigc++2-devel
BuildRequires: pkg-config
%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.
Authors:
--------
Francois Lesueur <flesueur@users.sourceforge.net>
%package -n libpar2-devel
Group: Development/Libraries/C and C++
Summary: LibPar2 Include Files and Libraries
Requires: %{name} = %{version}
%description -n libpar2-devel
Development files for the package LibPar2.
Authors:
--------
Francois Lesueur <flesueur@users.sourceforge.net>
%prep
%setup -q -n libpar2-%{version}
%{__sed} -i 's/\r//' README
%{__sed} -i 's/\r//' AUTHORS
%{__chmod} 644 ChangeLog
%build
%{configure} --disable-static
%{__make} %{?_smp_mflags}
%install
%{makeinstall}
%{__rm} -f %{buildroot}%{_libdir}/libpar2.la
%clean
%{__rm} -rf %{buildroot}
%post -n libpar2-%{soname} -p /sbin/ldconfig
%postun -n libpar2-%{soname} -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%{_libdir}/libpar2.so.*
%files -n libpar2-devel
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog README
%{_includedir}/*
%{_libdir}/libpar2.so
%{_libdir}/libpar2
%changelog
# kate: space-indent on; indent-width 4;