File kwebkitpart.spec of Package kwebkitpart
#
# spec file for package kwebkitpart (Version 1.1.0)
#
# 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/
#
# norootforbuild
Name: kwebkitpart
BuildRequires: Mesa-devel cups-devel glew-devel libQtWebKit-devel libkde4-devel sqlite-devel
License: LGPLv2.0+ ; LGPLv2.1+
Group: System/GUI/KDE
Summary: Webkit web browser component for KDE (KPart)
Version: 1.1.0
Release: 1
Source: %name-%version.tar.bz2
Source1: %name-lang.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Provides: libkdenetwork1 = 4.3.0.svn1001692-36.1
Obsoletes: libkdenetwork1 < 4.3.0.svn1001692-36.1
Provides: kde4-webkitpart = 4.3.90.svn1072556
Obsoletes: kde4-webkitpart < 4.3.90.svn1072556
Recommends: kwebkitpart-lang
%kde4_runtime_requires
%description
A webkit web browser component for KDE (KPart).
Authors:
--------
The KDE Team <kde@kde.org>
%package devel
License: LGPLv2.0+ ; LGPLv2.1+
Group: Development/Libraries/KDE
Summary: Webkit web browser component for KDE (KPart)
Requires: kwebkitpart = %version
Provides: libkdenetwork-devel = 4.3.0.svn1001692-36.1
Obsoletes: libkdenetwork-devel < 4.3.0.svn1001692-36.1
Provides: kde4-webkitpart-devel = 4.3.90.svn1072556
Obsoletes: kde4-webkitpart-devel < 4.3.90.svn1072556
%description devel
A webkit web browser component for KDE (KPart).
Authors:
--------
The KDE Team <kde@kde.org>
%lang_package
%prep
%setup -q -n %name-%version
tar xjf $RPM_SOURCE_DIR/%name-lang.tar.bz2
echo "add_subdirectory(lang)" >> CMakeLists.txt
%build
%cmake_kde4 -d build
%make_jobs
%install
pushd build
%makeinstall
popd
%kde_post_install
%find_lang %{name}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%dir %_libdir/kde4
%_libdir/kde4/kwebkitpart.so
%_datadir/kde4/services/kwebkitpart.desktop
%_datadir/kde4/apps/kwebkitpart/kwebkitpart.rc
%_datadir/kde4/apps/kwebkitpart/error.html
%dir %_datadir/kde4/apps/kwebkitpart
%_datadir/icons/hicolor/*/apps/webkit.*
%dir %_datadir/icons/hicolor/16x16
%dir %_datadir/icons/hicolor/16x16/apps
%dir %_datadir/icons/hicolor/22x22
%dir %_datadir/icons/hicolor/22x22/apps
%dir %_datadir/icons/hicolor/32x32
%dir %_datadir/icons/hicolor/32x32/apps
%dir %_datadir/icons/hicolor/48x48
%dir %_datadir/icons/hicolor/48x48/apps
%dir %_datadir/icons/hicolor/64x64
%dir %_datadir/icons/hicolor/64x64/apps
%dir %_datadir/icons/hicolor/128x128
%dir %_datadir/icons/hicolor/128x128/apps
%files devel
%defattr(-,root,root)
%_datadir/kde4/apps/cmake/modules/FindKWebKitPart.cmake
%_includedir/kwebkitpart.h
%_includedir/kwebkit_export.h
%_includedir/KDE/KWebKitPart
%files lang -f %name.lang
%changelog