Raymond Wooninck 2016-08-09 07:51:10 +00:00 committed by Git OBS Bridge
parent 39b489c606
commit a8a3023ad3

View File

@ -25,16 +25,15 @@ License: BSD-2-Clause and LGPL-2.1+ and GFDL-1.2+
Group: Productivity/Graphics/Bitmap Editors
Url: http://www.kde.org
Source0: %{name}-%{version}.tar.xz
BuildRequires: extra-cmake-modules
BuildRequires: fdupes
BuildRequires: libkde4-devel
BuildRequires: libqimageblitz-devel
BuildRequires: oxygen-icon-theme-large
BuildRequires: kdelibs4support-devel
BuildRequires: kf5-filesystem
BuildRequires: libksane-devel
BuildRequires: update-desktop-files
BuildRequires: xz
Recommends: ksaneplugin
Provides: kde4-kolourpaint = 4.3.0
Obsoletes: kde4-kolourpaint < 4.3.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires
%description
Paint program for KDE
@ -43,15 +42,13 @@ Paint program for KDE
%setup -q -n %{name}-%{version}
%build
%cmake_kde4 -d build
%cmake_kf5 -d build
%make_jobs
%install
cd build
%make_install
%kf5_makeinstall -C build
%suse_update_desktop_file kolourpaint RasterGraphics
%fdupes -s %{buildroot}%{_datadir}
%kde_post_install
%post -p /sbin/ldconfig
@ -63,13 +60,16 @@ Paint program for KDE
%files
%defattr(-,root,root)
%doc COPYING README
%dir %{_kde4_datadir}/appdata
%{_kde4_applicationsdir}/kolourpaint.desktop
%{_kde4_appsdir}/kolourpaint/
%{_kde4_bindir}/kolourpaint
%{_kde4_datadir}/appdata/kolourpaint.appdata.xml
%{_kde4_htmldir}/en/kolourpaint/
%{_kde4_iconsdir}/hicolor/*/apps/kolourpaint.*
%{_kde4_libdir}/libkolourpaint_lgpl.so*
%dir %{_kf5_appstreamdir}
%{_kf5_applicationsdir}/kolourpaint.desktop
%{_kf5_sharedir}/kolourpaint/
%{_kf5_sharedir}/kxmlgui5/
%{_kf5_bindir}/kolourpaint
%{_kf5_appstreamdir}/kolourpaint.appdata.xml
%dir %{_kf5_htmldir}/en
%dir %{_kf5_htmldir}
%doc %{_kf5_htmldir}/en/*/
%{_kf5_iconsdir}/hicolor/*/apps/kolourpaint.*
%{_kf5_libdir}/libkolourpaint_lgpl.so*
%changelog