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.
polkit-kde/polkit-kde.spec

71 lines
1.8 KiB

Name: polkit-kde
Version: 0.95
Release: 0.2.20091125svn%{?dist}
Summary: PolicyKit integration for KDE Desktop
Group: Applications/System
License: GPLv2+
URL: http://www.kde.org/
# To prepare snapshot tarball follow these steps
# svn co svn://anonsvn.kde.org/home/kde/trunk/kdereview/PolicyKit-kde/
# svn export PolicyKit-kde/ polkit-kde-0.95
# tar cjf polkit-kde-0.95.20091125svn.tar.bz2 polkit-kde-0.95/
Source0: polkit-kde-0.95.20091125svn.tar.bz2
Source1: polkit-kde-authentication-agent-1.desktop
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: kdelibs4-devel
BuildRequires: polkit-qt-devel >= 0.95
BuildRequires: cmake
%{?_kde4_macros_api:Requires: kde4-macros(api) = %{_kde4_macros_api} }
Provides: PolicyKit-authentication-agent
Obsoletes: PolicyKit-kde < 4.5
%description
Provides Policy Kit Authentication Agent that nicely fits to KDE.
%prep
%setup -q
%build
mkdir -p %{_target_platform}
pushd %{_target_platform}
%{cmake_kde4} ..
popd
make %{?_smp_mflags} -C %{_target_platform} VERBOSE=1
%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot} -C %{_target_platform}
install -D %{SOURCE1} %{buildroot}%{_sysconfdir}/xdg/autostart/polkit-kde-authentication-agent-1.desktop
desktop-file-install --delete-original \
--dir %{buildroot}%{_sysconfdir}/xdg/autostart \
%{buildroot}%{_sysconfdir}/xdg/autostart/polkit-kde-authentication-agent-1.desktop
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc COPYING
%{_libexecdir}/kde4/polkit-kde-authentication-agent-1
%{_sysconfdir}/xdg/autostart/*
%changelog
* Mon Nov 30 2009 Jaroslav Reznik <jreznik@redhat.com> - 0.95-0.2.20091125svn
- Adds desktop file
- Adds obsoletes
* Wed Nov 25 2009 Jaroslav Reznik <jreznik@redhat.com> - 0.95-0.1.20091125svn
- Initial package