File libmediawiki.spec of Package libmediawiki
#
# spec file for package libmediawiki
#
# Copyright (c) 2011 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: libmediawiki
Version: 2.2.0
Release: 3
License: GPLv2+
Summary: Interface for MediaWiki based web services
Url: http://www.digikam.org
Group: System/Libraries
Source: http://sourceforge.net/projects/digikam/files/digikam/%{version}/digikam-%{version}.tar.bz2
BuildRequires: libkde4-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
libmediawiki is a KDE C++ interface for MediaWiki based web service as wikipedia.org
%package -n libmediawiki1
Summary: Interface for MediaWiki based web services
Provides: libmediawiki = %{version}
%description -n libmediawiki1
libmediawiki is a KDE C++ interface for MediaWiki based web service as wikipedia.org
This package contains the shared library
%package devel
Summary: Interface for MediaWiki based web services
Group: Development/Libraries/C and C++
Requires: libmediawiki = %{version}
%description devel
libmediawiki is a KDE C++ interface for MediaWiki based web service as wikipedia.org
This package contains the development files for libmediawiki
%prep
%setup -q -n digikam-%{version}
%build
cd extra/libmediawiki
%cmake_kde4 -d build
%make_jobs
%install
cd extra/libmediawiki/build
%make_install
%clean
rm -rf %{buildroot}
%post -n libmediawiki1 -p /sbin/ldconfig
%postun -n libmediawiki1 -p /sbin/ldconfig
%files -n libmediawiki1
%defattr(-,root,root)
%{_libdir}/libmediawiki.so.*
%files devel
%defattr(-,root,root)
%{_includedir}/libmediawiki/
%{_libdir}/libmediawiki.so
%{_libdir}/pkgconfig/libmediawiki.pc
%_kde4_appsdir/cmake/modules/FindMediawiki.cmake
%changelog