Plasma 5.2.0

epel9
Dan Vrátil 10 years ago
parent 505277d870
commit 57fac68fb7

1
.gitignore vendored

@ -1,2 +1,3 @@
/polkit-kde-agent-1-0.99.0.tar.bz2 /polkit-kde-agent-1-0.99.0.tar.bz2
/polkit-kde-agent-1-0.99.1-20130311git.tar.bz2 /polkit-kde-agent-1-0.99.1-20130311git.tar.bz2
/polkit-kde-agent-1-5.2.0.tar.xz

@ -1,27 +1,37 @@
%global base_name polkit-kde-agent-1
%define snap 20130311git
Name: polkit-kde Name: polkit-kde
Summary: PolicyKit integration for KDE Desktop Summary: PolicyKit integration for KDE Desktop
Version: 0.99.1 Version: 5.2.0
Release: 6.%{snap}%{?dist} Release: 1%{?dist}
License: GPLv2+ License: GPLv2+
URL: https://projects.kde.org/projects/extragear/base/polkit-kde-agent-1 URL: https://projects.kde.org/projects/kde/workspace/polkit-kde-agent-1
%if 0%{?snap:1}
## use releaseme script %global revision %(echo %{version} | cut -d. -f3)
Source0: polkit-kde-agent-1-0.99.1-%{snap}.tar.bz2 %if %{revision} >= 50
%global stable unstable
%else %else
Source0: ftp://ftp.kde.org/pub/kde/stable/apps/KDE4.x/admin/polkit-kde-agent-1-0.99.0.tar.bz2 %global stable stable
%endif %endif
Source0: http://download.kde.org/%{stable}/plasma/%{version}/%{base_name}-%{version}.tar.xz
## upstream patches
BuildRequires: kdelibs4-devel BuildRequires: extra-cmake-modules
BuildRequires: polkit-qt-devel >= 0.99.0 BuildRequires: kf5-rpm-macros
BuildRequires: gettext BuildRequires: qt5-qtbase-devel
%{?_kde4_macros_api:Requires: kde4-macros(api) = %{_kde4_macros_api} } BuildRequires: kf5-ki18n-devel
BuildRequires: kf5-kwindowsystem-devel
BuildRequires: kf5-kdbusaddons-devel
BuildRequires: kf5-kwidgetsaddons-devel
BuildRequires: kf5-kcoreaddons-devel
BuildRequires: kf5-kcrash-devel
BuildRequires: kf5-kconfig-devel
BuildRequires: kf5-kiconthemes-devel
BuildRequires: kf5-knotifications-devel
BuildRequires: polkit-qt5-1-devel
Provides: PolicyKit-authentication-agent = %{version}-%{release} Provides: PolicyKit-authentication-agent = %{version}-%{release}
Provides: polkit-kde-1 = %{version}-%{release} Provides: polkit-kde-1 = %{version}-%{release}
@ -37,41 +47,45 @@ Provides Policy Kit Authentication Agent that nicely fits to KDE.
%prep %prep
%setup -q -n polkit-kde-agent-1-%{version} %setup -q -n %{base_name}-%{version}
%build %build
mkdir -p %{_target_platform} mkdir -p %{_target_platform}
pushd %{_target_platform} pushd %{_target_platform}
%{cmake_kde4} .. %{cmake_kf5} ..
popd popd
make %{?_smp_mflags} -C %{_target_platform} make %{?_smp_mflags} -C %{_target_platform}
%install %install
make install/fast DESTDIR=%{buildroot} -C %{_target_platform} make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
%find_lang polkit-kde-authentication-agent-1 --with-kde
%find_lang polkit-kde-authentication-agent-1 # Move the agent from libexec to libexec/kf5
sed -i "s/Exec=\/usr\/libexec\//Exec=\/usr\/libexec\/kf5\//" %{buildroot}/%{_sysconfdir}/xdg/autostart/polkit-kde-authentication-agent-1.desktop
# Plasma 5 only picks autostart from /etc/xdg/autostart, so we move it mkdir -p %{buildroot}/%{_kf5_libexecdir}/
# there so that both Plasma 5 and KDE 4 pick it up mv %{buildroot}/%{_libexecdir}/polkit-kde-authentication-agent-1 \
mkdir -p %{buildroot}/etc/xdg/autostart %{buildroot}/%{_kf5_libexecdir}
mv %{buildroot}/%{_datadir}/autostart/polkit-kde-authentication-agent-1.desktop \
%{buildroot}%{_sysconfdir}/xdg/autostart/polkit-kde-authentication-agent-1.desktop
%files -f polkit-kde-authentication-agent-1.lang %files -f polkit-kde-authentication-agent-1.lang
%doc COPYING %doc COPYING
%{_libexecdir}/kde4/polkit-kde-authentication-agent-1 %{_kf5_libexecdir}/polkit-kde-authentication-agent-1
%{_sysconfdir}/xdg/autostart/polkit-kde-authentication-agent-1.desktop %{_sysconfdir}/xdg/autostart/polkit-kde-authentication-agent-1.desktop
%{_kde4_appsdir}/policykit1-kde/policykit1-kde.notifyrc %{_kf5_datadir}/knotifications5/policykit1-kde.notifyrc
%changelog %changelog
* Mon Jan 26 2015 Daniel Vrátil <dvratil@redhat.com> - 5.2.0-1
- Plasma 5.2.0
* Sun Jan 25 2015 Rex Dieter <rdieter@fedoraproject.org> 0.99.1-6.20130311git * Sun Jan 25 2015 Rex Dieter <rdieter@fedoraproject.org> 0.99.1-6.20130311git
- Requires: polkit - Requires: polkit
* Tue Jan 13 2015 Daniel Vrátil <dvratil@redhat.com> - 5.1.95-1.beta
- Plasma 5.1.95 Beta
* Wed Oct 22 2014 Daniel Vrátil <dvratil@redhat.com> - 0.99.1-5.20130311git * Wed Oct 22 2014 Daniel Vrátil <dvratil@redhat.com> - 0.99.1-5.20130311git
- Install autostart file to /etc/xdg/autostart so that Plasma 5 picks it up too - Install autostart file to /etc/xdg/autostart so that Plasma 5 picks it up too

@ -1 +1 @@
45c836640ffa5772e50c661f9403bb2f polkit-kde-agent-1-0.99.1-20130311git.tar.bz2 ddf92f8756141293584164c591074850 polkit-kde-agent-1-5.2.0.tar.xz

Loading…
Cancel
Save