From 740affd274b525cfb897aeaaeb67ccc22c636b5cdf849e09cb2726a9deea050b Mon Sep 17 00:00:00 2001 From: Christophe Giboudeaux Date: Sat, 5 Aug 2017 22:56:10 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/KDE:Applications/kio-extras5?expand=0&rev=56 --- kio-extras5.spec | 37 +++++++++++++++++++++++++++++++++++-- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/kio-extras5.spec b/kio-extras5.spec index 7f2feaa..8c3266c 100644 --- a/kio-extras5.spec +++ b/kio-extras5.spec @@ -55,8 +55,6 @@ BuildRequires: libtag-devel BuildRequires: openslp-devel BuildRequires: phonon4qt5-devel BuildRequires: pkgconfig -BuildRequires: solid-devel -BuildRequires: xz BuildRequires: pkgconfig(Qt5DBus) >= 5.4.0 BuildRequires: pkgconfig(Qt5Network) >= 5.4.0 BuildRequires: pkgconfig(Qt5Sql) @@ -66,18 +64,40 @@ BuildRequires: pkgconfig(Qt5Widgets) >= 5.4.0 BuildRequires: pkgconfig(bzip2) BuildRequires: pkgconfig(exiv2) BuildRequires: pkgconfig(smbclient) +BuildRequires: solid-devel +BuildRequires: xz Recommends: kimageformats # we want some imageformats in Recommends: libqt5-qtimageformats #BuildRequires: update-desktop-files Provides: kfileaudiopreview = 4.100.0 Obsoletes: kfileaudiopreview < 4.100.0 +%if %{with lang} Recommends: %{name}-lang +%endif BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Additional KIO slaves for KDE applications. +%package -n libkioarchive5 +Group: System/Libraries +Summary: The archiver base class library + +%description -n libkioarchive5 +So that support for other archive formats can be built outside +of the kio-extras source tree. The archiver base class is now +a separately installed library, with the specific archive formats +using it. + +%package -n libkioarchive-devel +Group: Development/Libraries/C and C++ +Summary: Development package for libkioarchive5 +Requires: libkioarchive5 = %{version} + +%description -n libkioarchive-devel +This is the development package for libkioarchive + %if %{with lang} %lang_package %endif @@ -104,6 +124,9 @@ sed -i '/^add_subdirectory( doc )/d' CMakeLists.txt %post -p /sbin/ldconfig %postun -p /sbin/ldconfig +%post -n libkioarchive5 -p /sbin/ldconfig +%postun -n libkioarchive5 -p /sbin/ldconfig + %files %defattr(-,root,root) %{_kf5_libdir}/libmolletnetwork5.so.* @@ -120,6 +143,16 @@ sed -i '/^add_subdirectory( doc )/d' CMakeLists.txt %{_kf5_sharedir}/solid/ %{_kf5_sharedir}/mime/packages/kf5_network.xml +%files -n libkioarchive-devel +%defattr(-,root,root) +%{_includedir}/KF5/kio_archivebase.h +%{_includedir}/KF5/libkioarchive_export.h +%{_libdir}/cmake/KioArchive/ + +%files -n libkioarchive5 +%defattr(-,root,root) +%{_libdir}/libkioarchive.so.5* + %if %{with lang} %files lang -f %{name}.lang %endif