- Fix #629515 in a way that doesn't require autoreconf

This commit is contained in:
David Zeuthen 2010-09-02 11:25:25 -04:00
parent 28ce567155
commit 0cf55d2c72
1 changed files with 7 additions and 11 deletions

View File

@ -1,7 +1,7 @@
Summary: PolicyKit Authorization Framework
Name: polkit
Version: 0.98
Release: 2%{?dist}
Release: 4%{?dist}
License: LGPLv2+
URL: http://www.freedesktop.org/wiki/Software/PolicyKit
Source0: http://hal.freedesktop.org/releases/%{name}-%{version}.tar.gz
@ -23,14 +23,6 @@ Provides: PolicyKit = 0.11
# sufficiently new polkit-gnome package
Conflicts: polkit-gnome < 0.97
# this patch needs autoreconf
Patch0: 0001-Bug-29816-Install-polkitagentenumtypes.h.patch
BuildRequires: libtool
BuildRequires: automake
BuildRequires: autoconf
BuildRequires: intltool
BuildRequires: pkgconfig
%description
PolicyKit is a toolkit for defining and handling authorizations.
It is used for allowing unprivileged processes to speak to privileged
@ -71,16 +63,17 @@ Roles and default policy for desktop usage.
%prep
%setup -q
%patch0 -p1 -b .enumtypes
%build
autoreconf
%configure --enable-gtk-doc --disable-static --libexecdir=%{_libexecdir}/polkit-1 --disable-introspection --enable-examples
make
%install
make install DESTDIR=$RPM_BUILD_ROOT
# bug 629515
cp src/polkitagent/polkitagentenumtypes.h $RPM_BUILD_ROOT%{_includedir}/polkit-1/polkitagent
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
rm -f $RPM_BUILD_ROOT%{_libdir}/polkit-1/extensions/*.la
@ -190,6 +183,9 @@ EOF
%{_datadir}/gtk-doc
%changelog
* Thu Sep 02 2010 David Zeuthen <davidz@redhat.com> - 0.98-4
- Fix #629515 in a way that doesn't require autoreconf
* Thu Sep 02 2010 David Zeuthen <davidz@redhat.com> - 0.98-2
- Include polkitagentenumtypes.h (#629515)