File libmsn.spec of Package libmsn

#
# spec file for package libmsn (Version 3.9.97)
#
# Copyright (c) 2009 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


Name:           libmsn
BuildRequires:  cmake gcc-c++ kde4-filesystem libopenssl-devel
License:        GPLv2 or later with linking exception for openssl
Group:          Development/Libraries/C and C++
Summary:        Reusable, open-source library for MSN Messenger
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Url:            http://sourceforge.net/projects/libmsn
Version:        3.9.97
Release:        1
%define tar_version 4.0-beta8
Source:         http://surfnet.dl.sourceforge.net/sourceforge/libmsn/libmsn-%{tar_version}.tar.bz2
Patch1:         gcc-warnings.diff
Patch2:         literal-string-compare.diff
Patch3:         wrong-free.diff
%define debug_package_requires libmsn0_1 = %{version}-%{release}

%description
Libmsn is a reusable, open-source, fully documented library for
connecting to Microsoft's MSN Messenger service.



%package -n libmsn0_1
License:        BSD 3-clause (or similar) ; GPLv2 or later with linking exception for openssl
Summary:        Reusable, open-source library for MSN Messenger
Group:          Development/Libraries/C and C++

%description -n libmsn0_1
Libmsn is a reusable, open-source, fully documented library for
connecting to Microsoft's MSN Messenger service.



%package devel
License:        BSD 3-clause (or similar) ; GPLv2 or later with linking exception for openssl
Summary:        Reusable, open-source library for MSN Messenger
Group:          Development/Libraries/C and C++
Requires:       libmsn0_1 = %version
Requires:       libopenssl-devel

%description devel
Libmsn is a reusable, open-source, fully documented library for
connecting to Microsoft's MSN Messenger service.



%prep
%setup -n libmsn-%{tar_version}
%patch1
%patch2
%patch3

%build
%cmake_kde4 -d build
%make_jobs

%install
cd build
%makeinstall

%post -n libmsn0_1 -p /sbin/ldconfig

%postun -n libmsn0_1 -p /sbin/ldconfig

%clean
rm -rf $RPM_BUILD_ROOT

%files -n libmsn0_1
%defattr(-,root,root)
%doc README COPYING TODO
%{_libdir}/libmsn.so.0.*

%files devel
%defattr(-,root,root)
/usr/bin/msntest
/usr/include/msn
%{_libdir}/libmsn.so
%{_libdir}/pkgconfig/libmsn.pc

%changelog
openSUSE Build Service is sponsored by