You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
plasma-desktop/plasma-desktop.spec

244 lines
6.5 KiB

Name: plasma-desktop
Version: 5.2.0
Release: 3%{?dist}
Summary: Plasma Desktop shell
License: GPLv2+ and (GPLv2 or GPLv3)
URL: https://projects.kde.org/projects/kde/workspace/plasma-desktop
%global revision %(echo %{version} | cut -d. -f3)
%if %{revision} >= 50
%global stable unstable
%else
%global stable stable
%endif
Source0: http://download.kde.org/%{stable}/plasma/%{version}/%{name}-%{version}.tar.xz
BuildRequires: libusb-devel
BuildRequires: fontconfig-devel
BuildRequires: libX11-devel
BuildRequires: libxkbfile-devel
BuildRequires: libxcb-devel
BuildRequires: xcb-util-keysyms-devel
BuildRequires: xcb-util-image-devel
BuildRequires: xcb-util-renderutil-devel
BuildRequires: xcb-util-devel
BuildRequires: libxkbcommon-devel
BuildRequires: qt5-qtbase-devel
BuildRequires: qt5-qtx11extras-devel
BuildRequires: qt5-qtsvg-devel
BuildRequires: qt5-qtdeclarative-devel
BuildRequires: phonon-qt5-devel
# PackageKit-Qt 5 is not avaialble on F20, because PackageKit is too old there
%if 0%{?fedora} >= 21
BuildRequires: PackageKit-Qt5-devel
%endif
BuildRequires: kf5-rpm-macros
BuildRequires: extra-cmake-modules
BuildRequires: kf5-plasma-devel
BuildRequires: kf5-kdoctools-devel
BuildRequires: kf5-ki18n-devel
BuildRequires: kf5-kcmutils-devel
BuildRequires: kf5-knewstuff-devel
BuildRequires: kf5-kdelibs4support-devel
BuildRequires: kf5-knotifyconfig-devel
BuildRequires: kf5-kdesu-devel
BuildRequires: kf5-attica-devel
BuildRequires: kf5-kwallet-devel
BuildRequires: kf5-krunner-devel
BuildRequires: kf5-ksysguard-devel
BuildRequires: kf5-baloo-devel
BuildRequires: plasma-workspace-devel
BuildRequires: kwin-devel
# Optional
BuildRequires: kf5-kactivities-devel
BuildRequires: libcanberra-devel
BuildRequires: boost-devel
BuildRequires: pulseaudio-libs-devel
BuildRequires: chrpath
BuildRequires: desktop-file-utils
Requires: plasma-workspace
Requires: kf5-filesystem
# Install breeze
Requires: plasma-breeze
Requires: breeze-icon-theme
Requires: kde-style-breeze
# Install systemsettings, full set of KIO slaves and write() notifications
Requires: plasma-systemsettings
Requires: kio-extras
Requires: kwrited
# Install KWin
Requires: kwin
Obsoletes: kde-workspace < 5.0.0-1
Obsoletes: kcm_colors < 5.0.0-1
Provides: kcm_colors = %{version}-%{release}
%description
%{summary}.
%package doc
Summary: Documentation and user manuals for %{name}
%description doc
%{summary}.
%prep
%setup -q -n %{name}-%{version}
%build
# Workaround broken path in Dbus service file (until fixed upstream)
sed -i "s/@CMAKE_INSTALL_PREFIX@\///" kcms/kfontinst/dbus/org.kde.fontinst.service.cmake
mkdir -p %{_target_platform}
pushd %{_target_platform}
%{cmake_kf5} ..
popd
make %{?_smp_mflags} -C %{_target_platform}
%install
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
%find_lang plasmadesktop5 --with-qt --with-kde --all-name
# No -devel
rm %{buildroot}/%{_libdir}/libkfontinst{,ui}.so
# KDM is dead
rm -r %{buildroot}/%{_datadir}/kdm
%check
desktop-file-validate %{buildroot}/%{_datadir}/applications/{kfontview,org.kde.knetattach}.desktop
%post
/sbin/ldconfig
touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
%posttrans
gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
%postun
/sbin/ldconfig
if [ $1 -eq 0 ] ; then
touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
fi
%files -f plasmadesktop5.lang
%{_bindir}/kapplymousetheme
%{_bindir}/kaccess
%{_bindir}/kfontinst
%{_bindir}/kfontview
%{_bindir}/krdb
%{_bindir}/knetattach
%{_bindir}/solid-action-desktop-gen
%{_kf5_libexecdir}/kauth/kcmdatetimehelper
%{_kf5_libexecdir}/kauth/fontinst
%{_kf5_libexecdir}/kauth/fontinst_helper
%{_kf5_libexecdir}/kauth/fontinst_x11
%{_libexecdir}/kfontprint
%{_qt5_prefix}/qml/org/kde/plasma/private
%{_kf5_libdir}/libkdeinit5_kaccess.so
%{_kf5_libdir}/kconf_update_bin/*
%{_libdir}/libkfontinst.so.*
%{_libdir}/libkfontinstui.so.*
%{_kf5_qtplugindir}/*.so
%{_datadir}/plasma/*
%{_datadir}/kcminput
%{_datadir}/color-schemes
%{_datadir}/kconf_update/*
%{_datadir}/kdisplay
%{_datadir}/kcontrol
%{_datadir}/kcmkeys
%{_datadir}/kcm_componentchooser
%{_datadir}/kcm_phonon
%{_datadir}/kfontinst
%{_datadir}/kcmkeyboard
%{_datadir}/ksmserver
%{_datadir}/konqsidebartng/virtual_folders/services/fonts.desktop
%{_datadir}/kcmsolidactions
%{_datadir}/solid/devices/*.desktop
%config %{_sysconfdir}/dbus-1/system.d/*.conf
%config %{_sysconfdir}/xdg/*.knsrc
%{_kf5_datadir}/kservices5/*.desktop
%{_kf5_datadir}/kservices5/ServiceMenus/installfont.desktop
%{_kf5_datadir}/kservices5/fonts.protocol
%{_kf5_datadir}/kservices5/kded/*.desktop
%{_kf5_datadir}/kservicetypes5/*.desktop
%{_kf5_datadir}/kxmlgui5/kfontview
%{_kf5_datadir}/kxmlgui5/kfontinst
%{_kf5_datadir}/knotifications5/*.notifyrc
%{_kf5_datadir}/config.kcfg/*
%{_datadir}/icons/*/*/*/*
%{_datadir}/applications/*.desktop
%{_datadir}/dbus-1/services/*.service
%{_datadir}/dbus-1/system-services/*.service
%{_datadir}/polkit-1/actions/org.kde.fontinst.policy
%{_datadir}/polkit-1/actions/org.kde.kcontrol.kcmclock.policy
%files doc
%{_docdir}/HTML/en/*
%changelog
* Tue Jan 27 2015 Daniel Vrátil <dvratil@redhat.com> - 5.2.0-3
- Workaround broken DBus service file generated by CMake
* Tue Jan 27 2015 Daniel Vrátil <dvratil@redhat.com> - 5.2.0-2
- Requires: breeze, systemsettings, kwin (for full Plasma experience)
* Mon Jan 26 2015 Daniel Vrátil <dvratil@redhat.com> - 5.2.0-1
- Plasma 5.2.0
* Wed Jan 14 2015 Daniel Vrátil <dvratil@redhat.com> - 5.1.95-2.beta
- Obsoletes/Provides kcm_colors
* Wed Jan 14 2015 Daniel Vrátil <dvratil@redhat.com> - 5.1.95-1.beta
- Plasma 5.1.95 Beta
* Wed Jan 07 2015 Jan Grulich <jgrulich@redhat.com> - 5.1.2-3
- Omit "5" from pkg summary
Add icon cache scriptlets
Validate application .desktop files
Fixed license
* Wed Dec 17 2014 Daniel Vrátil <dvratil@redhat.com> - 5.1.2-2
- Plasma 5.1.2
* Fri Nov 07 2014 Daniel Vrátil <dvratil@redhat.com> - 5.1.1-1
- Plasma 5.1.1
* Tue Oct 14 2014 Daniel Vrátil <dvratil@redhat.com> - 5.1.0.1-1
- Plasma 5.1.0.1
* Thu Oct 09 2014 Daniel Vrátil <dvratil@redhat.com> - 5.1.0-1
- Plasma 5.1.0
* Tue Sep 16 2014 Daniel Vrátil <dvratil@redhat.com> - 5.0.2-1
- Plasma 5.0.2
* Sun Aug 10 2014 Daniel Vrátil <dvratil@redhat.com> - 5.0.1-1
- Plasma 5.0.1
* Thu Jul 17 2014 Daniel Vrátil <dvratil@redhat.com> - 5.0.0-1
- Plasma 5.0.0
* Thu May 15 2014 Daniel Vrátil <dvratil@redhat.com> - 4.96.0-1.20140515git532fc47
- Initial version of kde5-plasma-desktop