2014-05-10 22:12:05 +00:00
|
|
|
#
|
|
|
|
# spec file for package kde-cli-tools5
|
|
|
|
#
|
2015-01-24 23:46:35 +00:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2014-05-10 22:12:05 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2015-04-10 18:19:14 +00:00
|
|
|
%bcond_without lang
|
2014-05-10 22:12:05 +00:00
|
|
|
Name: kde-cli-tools5
|
2015-09-08 18:24:17 +00:00
|
|
|
Version: 5.4.1
|
2014-05-10 22:12:05 +00:00
|
|
|
Release: 0
|
2014-05-10 22:16:16 +00:00
|
|
|
Summary: Additional CLI tools for KDE applications
|
2014-05-19 13:07:23 +00:00
|
|
|
License: GPL-2.0+
|
2014-05-10 22:12:05 +00:00
|
|
|
Group: System/GUI/KDE
|
2014-05-10 22:16:16 +00:00
|
|
|
Url: http://www.kde.org
|
2014-11-06 21:16:33 +00:00
|
|
|
Source: kde-cli-tools-%{version}.tar.xz
|
2014-09-26 13:29:35 +00:00
|
|
|
Source99: %{name}-rpmlintrc
|
2014-11-21 18:46:43 +00:00
|
|
|
# PATCH-FIX-OPENSUSE kdesu-add-some-i18n-love.patch -- boo#852256
|
|
|
|
Patch0: kdesu-add-some-i18n-love.patch
|
2014-05-10 22:12:05 +00:00
|
|
|
BuildRequires: kcmutils-devel
|
|
|
|
BuildRequires: kconfig-devel
|
|
|
|
BuildRequires: kdelibs4support-devel
|
|
|
|
BuildRequires: kdesu-devel
|
|
|
|
BuildRequires: kf5-filesystem
|
2014-06-04 09:53:08 +00:00
|
|
|
BuildRequires: ki18n-devel
|
|
|
|
BuildRequires: kiconthemes-devel
|
|
|
|
BuildRequires: kwindowsystem-devel
|
2014-05-10 22:12:05 +00:00
|
|
|
BuildRequires: xz
|
2015-04-10 18:19:14 +00:00
|
|
|
BuildRequires: pkgconfig(Qt5DBus) >= 5.4.0
|
|
|
|
BuildRequires: pkgconfig(Qt5Svg) >= 5.4.0
|
|
|
|
BuildRequires: pkgconfig(Qt5Test) >= 5.4.0
|
|
|
|
BuildRequires: pkgconfig(Qt5Widgets) >= 5.4.0
|
|
|
|
BuildRequires: pkgconfig(Qt5X11Extras) >= 5.4.0
|
2014-05-10 22:12:05 +00:00
|
|
|
BuildRequires: pkgconfig(x11)
|
2014-08-14 21:05:01 +00:00
|
|
|
# for kquitapp5
|
|
|
|
Requires: kdbusaddons-tools
|
2015-04-10 18:19:14 +00:00
|
|
|
%if %{with lang}
|
2014-10-25 17:26:21 +00:00
|
|
|
Recommends: %{name}-lang
|
2015-04-10 18:19:14 +00:00
|
|
|
%endif
|
2014-08-08 21:46:12 +00:00
|
|
|
Requires(post): update-alternatives
|
|
|
|
Requires(postun): update-alternatives
|
2014-05-10 22:12:05 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
2014-05-10 22:16:16 +00:00
|
|
|
Additional CLI tools for KDE applications and workspaces.
|
2014-05-10 22:12:05 +00:00
|
|
|
|
2014-09-26 00:39:32 +00:00
|
|
|
%lang_package
|
2014-05-10 22:12:05 +00:00
|
|
|
%prep
|
|
|
|
%setup -q -n kde-cli-tools-%{version}
|
2014-11-21 18:46:43 +00:00
|
|
|
%patch0 -p1
|
2014-05-10 22:12:05 +00:00
|
|
|
|
|
|
|
%build
|
2014-09-26 00:39:32 +00:00
|
|
|
%cmake_kf5 -d build -- -DCMAKE_INSTALL_LOCALEDIR=share/locale/kf5
|
2014-05-10 22:12:05 +00:00
|
|
|
%make_jobs
|
|
|
|
|
|
|
|
%install
|
|
|
|
%kf5_makeinstall -C build
|
|
|
|
|
2014-08-08 21:20:39 +00:00
|
|
|
# create a dummy target for /etc/alternatives/kdesu
|
|
|
|
install -d -m 755 %{buildroot}%{_sysconfdir}/alternatives/
|
|
|
|
touch %{buildroot}%{_sysconfdir}/alternatives/kdesu
|
|
|
|
chmod +x %{buildroot}%{_sysconfdir}/alternatives/kdesu
|
|
|
|
ln -s -f %{_sysconfdir}/alternatives/kdesu %{buildroot}%{_kf5_bindir}/kdesu
|
2014-08-08 21:31:51 +00:00
|
|
|
touch %{buildroot}%{_sysconfdir}/alternatives/kdesu.1%{?ext_man}
|
2014-08-12 18:09:37 +00:00
|
|
|
mv %{buildroot}%{_kf5_mandir}/man1/kdesu.1 %{buildroot}%{_kf5_mandir}/man1/kdesu-5.1
|
|
|
|
ln -s -f %{_sysconfdir}/alternatives/kdesu.1%{?ext_man} %{buildroot}%{_kf5_mandir}/man1/kdesu.1%{?ext_man}
|
2014-05-10 22:12:05 +00:00
|
|
|
|
2014-08-08 21:20:39 +00:00
|
|
|
%post
|
|
|
|
/sbin/ldconfig
|
|
|
|
%{_sbindir}/update-alternatives \
|
2015-02-20 03:17:24 +00:00
|
|
|
--install %{_kf5_bindir}/kdesu kdesu %{_kf5_libexecdir}/kdesu 15 \
|
2014-08-08 21:40:31 +00:00
|
|
|
--slave %{_kf5_mandir}/man1/kdesu.1.gz kdesu.1%{?ext_man} %{_kf5_mandir}/man1/kdesu-5.1%{?ext_man}
|
2014-08-08 21:20:39 +00:00
|
|
|
|
|
|
|
%postun
|
|
|
|
/sbin/ldconfig
|
|
|
|
if [ $1 -eq 0 ]; then
|
|
|
|
%{_sbindir}/update-alternatives --remove kdesu \
|
2015-02-20 03:17:24 +00:00
|
|
|
%{_kf5_libexecdir}/kdesu
|
2014-08-08 21:20:39 +00:00
|
|
|
fi
|
2014-05-10 22:12:05 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2014-11-06 21:16:33 +00:00
|
|
|
%doc COPYING*
|
2014-08-08 21:20:39 +00:00
|
|
|
%{_kf5_bindir}/kdesu
|
2014-05-10 22:12:05 +00:00
|
|
|
%{_kf5_bindir}/kcmshell5
|
|
|
|
%{_kf5_bindir}/kdecp5
|
|
|
|
%{_kf5_bindir}/kdemv5
|
|
|
|
%{_kf5_bindir}/kde-open5
|
|
|
|
%{_kf5_bindir}/keditfiletype5
|
|
|
|
%{_kf5_bindir}/kioclient5
|
|
|
|
%{_kf5_bindir}/kmimetypefinder5
|
|
|
|
%{_kf5_bindir}/ksvgtopng5
|
|
|
|
%{_kf5_bindir}/kstart5
|
|
|
|
%{_kf5_bindir}/ktraderclient5
|
|
|
|
%{_kf5_servicesdir}/
|
|
|
|
%{_kf5_libdir}/libkdeinit5_kcmshell5.so
|
2015-02-20 03:17:24 +00:00
|
|
|
%{_kf5_libexecdir}/
|
2014-08-08 21:20:39 +00:00
|
|
|
%ghost %{_sysconfdir}/alternatives/kdesu
|
2014-05-10 22:12:05 +00:00
|
|
|
%{_kf5_plugindir}/
|
2014-08-08 21:20:39 +00:00
|
|
|
%ghost %{_sysconfdir}/alternatives/kdesu.1%{?ext_man}
|
|
|
|
%doc %{_kf5_htmldir}/
|
2014-08-08 21:31:51 +00:00
|
|
|
%{_kf5_mandir}/man1/kdesu*.*
|
2014-05-10 22:12:05 +00:00
|
|
|
|
2015-04-10 18:19:14 +00:00
|
|
|
%if %{with lang}
|
2014-09-26 00:39:32 +00:00
|
|
|
%files lang
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_kf5_localedir}/
|
2015-04-10 18:19:14 +00:00
|
|
|
%endif
|
2014-09-26 00:39:32 +00:00
|
|
|
|
2014-05-10 22:12:05 +00:00
|
|
|
%changelog
|