File libmspack.spec of Package libmspack

#
# spec file for package libmspack (Version 0.1.99_0.2alpha)
#
# Copyright (c) 2010 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/
#

# norootforbuild

%define _version 0.2alpha

Name:           libmspack
License:        GPLv2+ ; LGPLv2.1+
Group:          System/Libraries
Version:        0.1.99_%{_version}
Release:        1
Summary:        Library That Implements Different Microsoft Compressions
Url:            http://www.cabextract.org.uk/libmspack/
Source:         %{name}-%{_version}.tar.bz2
Patch:          %{name}-warnings.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  pkg-config

%description
The purpose of libmspack is to provide both compression and
decompression of some loosely related file formats used by Microsoft.
Currently the most common formats are implemented.



Authors:
--------
    Stuart Caie <kyzer@4u.net>
    Matthew Russotto
    Dirk Stoecker
    Dave Tritscher
    Jae Jung
    Markus Sinner

%package -n libmspack0
License:        GPLv2+ ; LGPLv2.1+
Summary:        Library That Implements Different Microsoft Compressions
Group:          System/Libraries
# OpenSUSE <= 10.3, SLES <= 10:
Provides:       libmspack = %{version}-%{release}
Obsoletes:      libmspack < %{version}-%{release}

%description -n libmspack0
The purpose of libmspack is to provide both compression and
decompression of some loosely related file formats used by Microsoft.
Currently the most common formats are implemented.



Authors:
--------
    Stuart Caie <kyzer@4u.net>
    Matthew Russotto
    Dirk Stoecker
    Dave Tritscher
    Jae Jung
    Markus Sinner

%package devel
License:        LGPLv2.1+
Summary:        Static libraries, header files and documentation for libmspack
Group:          Development/Libraries/C and C++
Requires:       libmspack0 = %{version}

%description devel
The libmspack-devel package contains the header files and static
libraries necessary for developing programs using libmspack.



Authors:
--------
    Stuart Caie <kyzer@4u.net>
    Matthew Russotto
    Dirk Stoecker
    Dave Tritscher
    Jae Jung
    Markus Sinner

%prep
%setup -q -n %{name}-%{_version}
%patch

%build
autoreconf -f -i
%configure\
	--disable-static
make %{?jobs:-j%jobs}

%install
%makeinstall
rm $RPM_BUILD_ROOT%{_libdir}/*.*a

%clean
rm -rf $RPM_BUILD_ROOT

%post -n libmspack0 -p /sbin/ldconfig

%postun -n libmspack0 -p /sbin/ldconfig

%files -n libmspack0
%defattr(-,root,root)
%{_libdir}/*.so.*
%doc AUTHORS COPYING.LIB ChangeLog README TODO

%files devel
%defattr(-,root,root)
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/*

%changelog
openSUSE Build Service is sponsored by