From 572f462ca18574b0e7b3e2602e3b512ddc7dd532 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sep 07 2011 03:25:39 +0000 Subject: fix build --- diff --git a/cc.patch b/cc.patch new file mode 100644 index 0000000..bf7ac6f --- /dev/null +++ b/cc.patch @@ -0,0 +1,17 @@ +diff -up krb5-auth-dialog-3.1.91/configure.ac.cc krb5-auth-dialog-3.1.91/configure.ac +--- krb5-auth-dialog-3.1.91/configure.ac.cc 2011-09-06 23:17:47.300440600 -0400 ++++ krb5-auth-dialog-3.1.91/configure.ac 2011-09-06 23:17:53.238440689 -0400 +@@ -193,13 +193,6 @@ CFLAGS="$savedCFLAGS" + LIBS="$savedLIBS" + + +-dnl libgnome-control-center +-dnl for the new panel +-PKG_CHECK_MODULES(CONTROL_CENTER, [ +- libgnome-control-center >= 2.31.4]) +-PANELS_DIR="${libdir}/control-center-1/panels" +-AC_SUBST(PANELS_DIR) +- + dnl secmem + dnl Checks for library functions. + AC_CHECK_FUNCS(seteuid stpcpy mmap) diff --git a/krb5-auth-dialog.spec b/krb5-auth-dialog.spec index 584cc0a..bd4965c 100644 --- a/krb5-auth-dialog.spec +++ b/krb5-auth-dialog.spec @@ -9,6 +9,8 @@ Source0: http://ftp.gnome.org/pub/GNOME/sources/%{name}/%{version}/%{name}-%{ver # avoid annoying notifications Patch0: krb5-auth-dialog-autostart.patch +# no more controlcenter library +Patch1: cc.patch BuildRequires: krb5-devel BuildRequires: perl(XML::Parser), gettext @@ -19,6 +21,7 @@ BuildRequires: gnome-doc-utils BuildRequires: scrollkeeper BuildRequires: control-center-devel BuildRequires: gtk3-devel +BuildRequires: autoconf automake libtool %ifnarch s390 s390x BuildRequires: NetworkManager-glib-devel @@ -35,6 +38,9 @@ tickets are about to expire and lets them renew them. %prep %setup -q %patch0 -p1 -b .autostart +%patch1 -p1 -b .cc + +autoreconf -i -f %build %configure --disable-static @@ -54,13 +60,11 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' %{_bindir}/krb5-auth-dialog* %{_datadir}/krb5-auth-dialog/ %{_datadir}/applications/krb5-auth-dialog.desktop -%{_datadir}/applications/gnome-ka-panel.desktop %{_datadir}/dbus-1/services/org.gnome.KrbAuthDialog.service %{_datadir}/icons/hicolor/*/status/* %{_mandir}/man1/* %{_sysconfdir}/xdg/autostart/krb5-auth-dialog.desktop %{_libdir}/krb5-auth-dialog -%{_libdir}/control-center-1/panels/libka.so %post touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :