140 lines
4.2 KiB
RPMSpec
140 lines
4.2 KiB
RPMSpec
|
%define majver %(echo %version | cut -d. -f1-2)
|
||
|
|
||
|
Name: khtml
|
||
|
Version: 5.9.0
|
||
|
Release: 1mamba
|
||
|
Summary: KDE Frameworks 5 HTML rendering engine
|
||
|
Group: System/Libraries
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||
|
URL: http://www.kde.org
|
||
|
Source: http://download.kde.org/stable/frameworks/%{majver}/portingAids/khtml-%{version}.tar.xz
|
||
|
License: GPL
|
||
|
## AUTOBUILDREQ-BEGIN
|
||
|
BuildRequires: glibc-devel
|
||
|
BuildRequires: libICE-devel
|
||
|
BuildRequires: libSM-devel
|
||
|
BuildRequires: libX11-devel
|
||
|
BuildRequires: libXext-devel
|
||
|
BuildRequires: libgcc
|
||
|
BuildRequires: libgif-devel
|
||
|
BuildRequires: libjpeg-devel
|
||
|
BuildRequires: libkarchive-devel
|
||
|
BuildRequires: libkauth-devel
|
||
|
BuildRequires: libkbookmarks-devel
|
||
|
BuildRequires: libkcodecs-devel
|
||
|
BuildRequires: libkcompletion-devel
|
||
|
BuildRequires: libkconfig-devel
|
||
|
BuildRequires: libkconfigwidgets-devel
|
||
|
BuildRequires: libkcoreaddons-devel
|
||
|
BuildRequires: libkglobalaccel-devel
|
||
|
BuildRequires: libki18n-devel
|
||
|
BuildRequires: libkiconthemes-devel
|
||
|
BuildRequires: libkio-devel
|
||
|
BuildRequires: libkjobwidgets-devel
|
||
|
BuildRequires: libkjs-devel
|
||
|
BuildRequires: libknotifications-devel
|
||
|
BuildRequires: libkparts-devel
|
||
|
BuildRequires: libkservice-devel
|
||
|
BuildRequires: libktextwidgets-devel
|
||
|
BuildRequires: libkwallet-devel
|
||
|
BuildRequires: libkwidgetsaddons-devel
|
||
|
BuildRequires: libkwindowsystem-devel
|
||
|
BuildRequires: libkxmlgui-devel
|
||
|
BuildRequires: libphonon-qt5-devel
|
||
|
BuildRequires: libpng-devel
|
||
|
BuildRequires: libqt5-devel
|
||
|
BuildRequires: libsonnet-devel
|
||
|
BuildRequires: libstdc++6-devel
|
||
|
BuildRequires: libz-devel
|
||
|
## AUTOBUILDREQ-END
|
||
|
BuildRequires: cmake
|
||
|
BuildRequires: rpm-macros-kde5
|
||
|
BuildRequires: extra-cmake-modules
|
||
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||
|
|
||
|
%description
|
||
|
KHTML is a web rendering engine, based on the KParts technology and using KJS for JavaScript support.
|
||
|
|
||
|
## remove the devel blocks if this package does not provide library and development stuff
|
||
|
%package -n lib%{name}
|
||
|
Group: System/Libraries
|
||
|
Summary: KDE Frameworks 5 HTML rendering engine
|
||
|
|
||
|
%description -n lib%{name}
|
||
|
KHTML is a web rendering engine, based on the KParts technology and using KJS for JavaScript support.
|
||
|
|
||
|
%package -n lib%{name}-devel
|
||
|
Group: Development/Libraries
|
||
|
Summary: Development files for %{name}
|
||
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||
|
|
||
|
%description -n lib%{name}-devel
|
||
|
This package contains libraries and header files for developing applications that use %{name}.
|
||
|
|
||
|
%debug_package
|
||
|
|
||
|
%prep
|
||
|
%setup -q
|
||
|
|
||
|
%build
|
||
|
%cmake_kde5 -d build
|
||
|
%make
|
||
|
|
||
|
%install
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
%makeinstall -C build
|
||
|
|
||
|
%find_lang khtml5
|
||
|
|
||
|
%clean
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
|
||
|
%post -n lib%{name}
|
||
|
/sbin/ldconfig
|
||
|
exit 0
|
||
|
|
||
|
%postun -n lib%{name}
|
||
|
/sbin/ldconfig
|
||
|
exit 0
|
||
|
|
||
|
%files -n lib%{name} -f khtml5.lang
|
||
|
%defattr(-,root,root)
|
||
|
%{_sysconfdir}/xdg/khtmlrc
|
||
|
%{_kde5_libdir}/libKF5KHtml.so.*
|
||
|
%{_libdir}/qt5/plugins/kf5/parts/khtmladaptorpart.so
|
||
|
%{_libdir}/qt5/plugins/kf5/parts/khtmlimagepart.so
|
||
|
%{_libdir}/qt5/plugins/kf5/parts/khtmlpart.so
|
||
|
%{_libdir}/qt5/plugins/kf5/parts/kjavaappletviewer.so
|
||
|
%{_libdir}/qt5/plugins/kf5/parts/kmultipart.so
|
||
|
%{_kde5_datadir}/kf5/khtml/css/html4.css
|
||
|
%{_kde5_datadir}/kf5/khtml/css/presentational.css
|
||
|
%{_kde5_datadir}/kf5/khtml/css/quirks.css
|
||
|
%{_kde5_datadir}/kf5/khtml/error.html
|
||
|
%{_kde5_datadir}/kf5/kjava/kjava.jar
|
||
|
%{_kde5_datadir}/kf5/kjava/kjava.policy
|
||
|
%{_kde5_datadir}/kf5/kjava/pluginsinfo
|
||
|
%{_datadir}/kxmlgui5/khtml/khtml.rc
|
||
|
%{_datadir}/kxmlgui5/khtml/khtml_browser.rc
|
||
|
%{_datadir}/kservices5/khtml.desktop
|
||
|
%{_datadir}/kservices5/khtmladaptorpart.desktop
|
||
|
%{_datadir}/kservices5/khtmlimage.desktop
|
||
|
%{_datadir}/kservices5/kjavaappletviewer.desktop
|
||
|
%{_datadir}/kservices5/kmultipart.desktop
|
||
|
%doc COPYING.LIB
|
||
|
|
||
|
%files -n lib%{name}-devel
|
||
|
%defattr(-,root,root)
|
||
|
%dir %{_kde5_includedir}/KHtml
|
||
|
%{_kde5_includedir}/KHtml/*
|
||
|
%{_kde5_includedir}/khtml_version.h
|
||
|
%{_kde5_libdir}/cmake/KF5KHtml/KF5KHtml*.cmake
|
||
|
%{_kde5_libdir}/libKF5KHtml.so
|
||
|
%{_kde5_mkspecsdir}/qt_KHtml.pri
|
||
|
|
||
|
%changelog
|
||
|
* Sun May 10 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 5.9.0-1mamba
|
||
|
- package created using the webbuild interface
|