81504c8
Name:           polkit-kde
e17534e
Version:        0.95.1
Radek Novacek 66f2c9d
Release:        6%{?dist}
81504c8
Summary:        PolicyKit integration for KDE Desktop
81504c8
81504c8
Group:          Applications/System
81504c8
License:        GPLv2+
81504c8
URL:            http://www.kde.org/
81504c8
e17534e
Source0:        polkit-kde-1-0.95.1.tar.bz2
81504c8
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
81504c8
2199e3a
## upstreamable patches
2199e3a
Patch50: polkit-kde-1-0.95.1-ImplicitDSOLinking.patch
Radek Novacek ab587d9
# Already in kde svn
Radek Novacek ab587d9
Patch51: polkit-kde-1_root-password.patch
Radek Novacek 66f2c9d
Patch52: polkit-kde-1_gcc45.patch
2199e3a
81504c8
BuildRequires:  kdelibs4-devel
fdeb557
BuildRequires:  polkit-qt-devel >= 0.95
81504c8
BuildRequires:  cmake
0e3cb71
BuildRequires:  gettext
81504c8
81504c8
%{?_kde4_macros_api:Requires: kde4-macros(api) = %{_kde4_macros_api} }
81504c8
f3a84a1
Provides: PolicyKit-authentication-agent
e17534e
Provides: polkit-kde-1 = %{version}-%{release}
81504c8
81504c8
Obsoletes: PolicyKit-kde < 4.5
81504c8
81504c8
%description
81504c8
Provides Policy Kit Authentication Agent that nicely fits to KDE.
81504c8
81504c8
%prep
e17534e
%setup -q -n polkit-kde-1-%{version}
81504c8
2199e3a
%patch50 -p1 -b .ImplicitDSOLinking
Radek Novacek ab587d9
%patch51 -p0
Radek Novacek 66f2c9d
%patch52 -p1 -b .gcc45
2199e3a
81504c8
81504c8
%build
81504c8
mkdir -p %{_target_platform}
81504c8
pushd %{_target_platform}
81504c8
%{cmake_kde4} ..
81504c8
popd
81504c8
81504c8
make %{?_smp_mflags}  -C %{_target_platform} VERBOSE=1
81504c8
81504c8
81504c8
%install
81504c8
rm -rf %{buildroot}
81504c8
make install DESTDIR=%{buildroot} -C %{_target_platform}
81504c8
81504c8
desktop-file-install --delete-original \
81504c8
  --dir %{buildroot}%{_sysconfdir}/xdg/autostart \
81504c8
  %{buildroot}%{_sysconfdir}/xdg/autostart/polkit-kde-authentication-agent-1.desktop
81504c8
e17534e
%find_lang polkit-kde-authentication-agent-1
e17534e
81504c8
%clean
81504c8
rm -rf %{buildroot}
81504c8
81504c8
e17534e
%files -f polkit-kde-authentication-agent-1.lang
81504c8
%defattr(-,root,root,-)
81504c8
%doc COPYING
81504c8
%{_libexecdir}/kde4/polkit-kde-authentication-agent-1
81504c8
%{_sysconfdir}/xdg/autostart/*
81504c8
81504c8
81504c8
%changelog
Radek Novacek 66f2c9d
* Wed Aug 04 2010 Radek Novacek <rnovacek@redhat.com> - 0.95.1-6
Radek Novacek 66f2c9d
- Fixed FTBFS with GCC-4.5
Radek Novacek 66f2c9d
Radek Novacek ab587d9
* Wed Aug 04 2010 Radek Novacek <rnovacek@redhat.com> - 0.95.1-5
Radek Novacek ab587d9
- Add patch for showing "password for root" when root user is authenticating
Radek Novacek ab587d9
- Related: #618543
Radek Novacek ab587d9
2199e3a
* Sun Feb 14 2010 Rex Dieter <rdieter@fedoraproject.org> - 0.95.1-4
2199e3a
- FTBFS polkit-kde-0.95.1-3.fc13: ImplicitDSOLinking (#564809)
2199e3a
f3a84a1
* Wed Jan 06 2010 Jaroslav Reznik <jreznik@redhat.com> - 0.95.1-3
f3a84a1
- Again provides PolicyKit-authentication-agent
f3a84a1
0e3cb71
* Tue Jan 05 2010 Jaroslav Reznik <jreznik@redhat.com> - 0.95.1-2
0e3cb71
- Added Gettext BR
0e3cb71
e17534e
* Tue Jan 05 2010 Jaroslav Reznik <jreznik@redhat.com> - 0.95.1-1
e17534e
- Update to official release
e17534e
- Provides polkit-kde-1
e17534e
81504c8
* Mon Nov 30 2009 Jaroslav Reznik <jreznik@redhat.com> - 0.95-0.2.20091125svn
81504c8
- Adds desktop file
81504c8
- Adds obsoletes
81504c8
81504c8
* Wed Nov 25 2009 Jaroslav Reznik <jreznik@redhat.com> - 0.95-0.1.20091125svn
2199e3a
- Initial package