Split kf5-kio into per-module subpackages

This commit is contained in:
Dan Vrátil 2014-10-29 11:13:30 +01:00
parent 84d882b62d
commit ac42e7e5ac

View File

@ -1,17 +1,13 @@
#%define snapshot 20140205
%define framework kio
Name: kf5-%{framework}
Version: 5.3.0
Release: 1%{?dist}
Release: 2%{?dist}
Summary: KDE Frameworks 5 Tier 3 solution for filesystem abstraction
License: GPLv2+ and MIT and BSD
URL: http://www.kde.org
# git archive --format=tar --prefix=%{framework}-%{version}/ \
# --remote=git://anongit.kde.org/%{framework}.git master | \
# bzip2 -c > %{name}-%{version}-%{snapshot}git.tar.bz2
#Source0: %{name}-%{version}-%{snapshot}git.tar.bz2
Source0: http://download.kde.org/stable/frameworks/%{version}/%{framework}-%{version}.tar.xz
BuildRequires: libxml2-devel
@ -46,6 +42,13 @@ BuildRequires: kf5-kwallet-devel
Requires: kf5-filesystem
Requires: %{name}-core = %{version}-%{release}
Requires: %{name}-core-libs%{?_isa} = %{version}-%{release}
Requires: %{name}-widgets = %{version}-%{release}
Requires: %{name}-widgest-libs%{?_isa} = %{version}-%{release}
Requires: %{name}-file-widgets%{?_isa} = %{version}-%{release}
Requires: %{name}-ntlm%{?_isa} = %{version}-%{release}
%description
KDE Frameworks 5 Tier 3 solution for filesystem abstraction
@ -82,11 +85,60 @@ developing applications that use %{name}.
%package doc
Summary: Documentation files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description doc
Documentation for %{name}.
# TODO: Split the package
%package core
Summary: Core components of the KIO Framework
Requires: %{name}-core-libs%{?_isa} = %{version}-%{release}
# last version of the main package before the split
Conflicts: %{name} < 5.3.0-2
%description core
KIOCore library provides core non-GUI components for working with KIO.
%package core-libs
Summary: Runtime libraries for KIO Core
Requires: %{name}-core = %{version}-%{release}
# last version of the main package before the split
Conflicts: %{name} < 5.3.0-2
%description core-libs
%{summary}.
%package widgets
Summary: Widgets for KIO Framework
Requires: %{name}-core%{?_isa} = %{version}-%{release}
# last version of the main package before the split
Conflicts: %{name} < 5.3.0-2
%description widgets
KIOWidgets contains classes that provide generic job control, progress
reporting, etc.
%package widgets-libs
Summary: Runtime libraries for KIO Widgets library
Requires: %{name}-core = %{version}-%{release}
Requires: %{name}-widgets = %{version}-%{release}
# last version of the main package before the split
Conflicts: %{name} < 5.3.0-2
%description widgets-libs
%{summary}.
%package file-widgets
Summary: Widgets for file-handling for KIO Framework
Requires: %{name}-core%{?_isa} = %{version}-%{release}
Requires: %{name}-widgets%{?_isa} = %{version}-%{release}
# last version of the main package before the split
Conflicts: %{name} < 5.3.0-2
%description file-widgets
The KIOFileWidgets library provides the file selection dialog and
its components.
%package ntlm
Summary: NTLM support for KIO Framework
# last version of the main package before the split
Conflicts: %{name} < 5.3.0-2
%description ntlm
KIONTLM provides support for NTLM authentication mechanism in KIO
%prep
%setup -q -n %{framework}-%{version}
@ -101,41 +153,80 @@ make %{?_smp_mflags} -C %{_target_platform}
%install
%make_install -C %{_target_platform}
%find_lang kio5_qt --with-qt --all-name
%find_lang kio5 --with-qt
%find_lang kcm_webshortcuts --with-qt
%post
/sbin/ldconfig
/usr/bin/update-desktop-database &> /dev/null || :
%postun
/sbin/ldconfig
/usr/bin/update-desktop-database &> /dev/null || :
%files -f kio5_qt.lang
%files
%doc COPYING.LIB README.md
%{_kf5_libdir}/*.so.*
%post core
/usr/bin/update-desktop-database &> /dev/null || :
%postun core
/usr/bin/update-desktop-database &> /dev/null || :
%files core -f kio5.lang -f kcm_webshortcuts.lang
%config %{_kf5_sysconfdir}/xdg/accept-languages.codes
%{_kf5_libexecdir}/kio_http_cache_cleaner
%{_kf5_libexecdir}/kpac_dhcp_helper
%{_kf5_libexecdir}/kioexec
%{_kf5_libexecdir}/kioslave
%{_kf5_bindir}/ktelnetservice5
%{_kf5_bindir}/kcookiejar5
%{_kf5_bindir}/kmailservice5
%{_kf5_bindir}/ktrash5
%config %{_kf5_sysconfdir}/xdg/kshorturifilterrc
%config %{_kf5_sysconfdir}/xdg/accept-languages.codes
%{_kf5_plugindir}/kio/*.so
%{_kf5_plugindir}/urifilters/*.so
%{_kf5_plugindir}/kded/*.so
%{_kf5_qtplugindir}/kcm_webshortcuts.so
%{_kf5_qtplugindir}/kcm_trash.so
%{_kf5_libexecdir}/kio_http_cache_cleaner
%{_kf5_libexecdir}/kioexec
%{_kf5_libexecdir}/kpac_dhcp_helper
%{_kf5_libexecdir}/kioslave
%{_kf5_datadir}/applications/*.desktop
%{_kf5_datadir}/kservices5/*.protocol
%{_kf5_datadir}/kservices5/http_cache_cleaner.desktop
%{_kf5_datadir}/kservices5/kded/*.desktop
%{_kf5_datadir}/kservices5/kcmtrash.desktop
%{_kf5_datadir}/dbus-1/interfaces/*.xml
%{_kf5_datadir}/kservices5/*
%{_kf5_datadir}/kservicetypes5/*
%{_kf5_datadir}/knotifications5/proxyscout.*
%{_kf5_datadir}/kf5/kcookiejar/domain_info
%{_kf5_datadir}/applications/*.desktop
%post core-libs -p /sbin/ldconfig
%postun core-libs -p /sbin/ldconfig
%files core-libs
%{_kf5_libdir}/libKF5KIOCore.so.*
%post widgets
/usr/bin/update-desktop-database &> /dev/null || :
%postun widgets
/usr/bin/update-desktop-database &> /dev/null || :
%files widgets
%config %{_kf5_sysconfdir}/xdg/kshorturifilterrc
%{_kf5_qtplugindir}/kcm_webshortcuts.so
%{_kf5_plugindir}/urifilters/*.so
%{_kf5_datadir}/kservices5/fixhosturifilter.desktop
%{_kf5_datadir}/kservices5/kshorturifilter.desktop
%{_kf5_datadir}/kservices5/kuriikwsfilter.desktop
%{_kf5_datadir}/kservices5/kurisearchfilter.desktop
%{_kf5_datadir}/kservices5/localdomainurifilter.desktop
%{_kf5_datadir}/kservices5/webshortcuts.desktop
%{_kf5_datadir}/kservices5/searchproviders
%{_kf5_datadir}/kservicetypes5/*.desktop
%post widgets-libs -p /sbin/ldconfig
%postun widgets-libs -p /sbin/ldconfig
%files widgets-libs
%{_kf5_libdir}/libKF5KIOWidgets.so.*
%post file-widgets -p /sbin/ldconfig
%postun file-widgets -p /sbin/ldconfig
%files file-widgets
%{_kf5_libdir}/libKF5KIOFileWidgets.so.*
%post ntlm -p /sbin/ldconfig
%postun ntlm -p /sbin/ldconfig
%files ntlm
%{_kf5_libdir}/libKF5KIONTLM.so.*
%files devel
%{_kf5_includedir}/*
@ -151,6 +242,9 @@ make %{?_smp_mflags} -C %{_target_platform}
%{_kf5_datadir}/doc/HTML/en/kioslave5/
%changelog
* Wed Oct 29 2014 Daniel Vrátil <dvratil@redhat.com> - 5.3.0-2
- Split into subpackages
* Tue Oct 07 2014 Daniel Vrátil <dvratil@redhat.com> - 5.3.0-1
- KDE Frameworks 5.3.0