%define name gq %define version 1.3.4 %define release %mkrel 2 %define Summary GQ is a GTK-based LDAP client Name: %{name} Version: %{version} Release: %{release} Summary: %{Summary} License: GPL Source0: http://prdownloads.sourceforge.net/gqclient/%{name}-%{version}.tar.gz Source11: gq16.png Source12: gq32.png Source13: gq48.png Patch1: gq-1.3.4-mdv-fix-str-fmt.patch Patch2: gq-1.3.4-kerberos.patch Patch3: gq-1.3.4-configure.patch URL: http://biot.com/gq/ Group: Databases BuildRequires: gettext-devel BuildRequires: krb5-devel BuildRequires: libsasl-devel BuildRequires: openldap-devel BuildRequires: libxml2-devel BuildRequires: glib-devel BuildRequires: gtk+2-devel BuildRequires: intltool BuildRequires: gnome-doc-utils >= 0.3.2 BuildRequires: libgnome-keyring-devel BuildRequires: libglade2.0-devel BuildRoot: %{_tmppath}/%{name}-%{version} %description GQ is GTK+ LDAP client and browser utility. It can be used for searching LDAP directory as well as browsing it using a tree view. %prep %setup -q %patch1 -p1 -b .strfmt %patch2 -p1 -b .kerberos %patch3 -p0 -b .configure %build #export CFLAGS="%{optflags} -DLDAP_DEPRECATED" %configure2_5x \ --with-default-codeset=UTF-8 \ --enable-cache \ --with-kerberos-prefix=%{_prefix} \ --enable-browser-dnd \ --disable-update-mimedb %make %install rm -rf %{buildroot} %makeinstall_std mkdir -p %{buildroot}%{_datadir}/applications cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF [Desktop Entry] Name=GQ Comment=%{Summary} Exec=%{name} Icon=%{name} Terminal=false Type=Application Categories=GTK;Network;System; EOF #(peroyvind): replace menu with our own as it's more complete and valid ;) rm -f %{buildroot}%{_datadir}/applications/gq.desktop install -m644 %{SOURCE11} -D $RPM_BUILD_ROOT%{_miconsdir}/%{name}.png install -m644 %{SOURCE12} -D $RPM_BUILD_ROOT%{_iconsdir}/%{name}.png install -m644 %{SOURCE13} -D $RPM_BUILD_ROOT%{_liconsdir}/%{name}.png # Macro for locales %find_lang %{name} --with-gnome --all-name %if %mdkversion < 200900 %post %update_menus %endif %if %mdkversion < 200900 %postun %clean_menus %endif %clean rm -rf %{buildroot} %files -f %{name}.lang %defattr (-,root,root) %doc AUTHORS ChangeLog NEWS README* TODO %{_bindir}/* %{_datadir}/%{name} %{_datadir}/pixmaps/gq %{_iconsdir}/hicolor/16x16/apps/* %{_datadir}/mime/packages/gq-ldif.xml %{_miconsdir}/%{name}.png %{_iconsdir}/%{name}.png %{_liconsdir}/%{name}.png %{_datadir}/applications/mandriva-%{name}.desktop %{_datadir}/omf/gq-manual/gq-manual-C.omf %lang(de) %{_datadir}/omf/gq-manual/gq-manual-de.omf %changelog * Wed Apr 21 2010 Funda Wang <fwang@mandriva.org> 1.3.4-2mdv2010.1 + Revision: 537370 - rebuild * Wed Jan 27 2010 Funda Wang <fwang@mandriva.org> 1.3.4-1mdv2010.1 + Revision: 496906 - BR gnome-doc-utils - new version 1.3.4 - sync with fedora patches * Fri Dec 18 2009 Jérôme Brenier <incubusss@mandriva.org> 1.2.3-4mdv2010.1 + Revision: 480014 - fix str fmt + Thierry Vignaud <tv@mandriva.org> - rebuild * Thu Jul 24 2008 Thierry Vignaud <tv@mandriva.org> 1.2.3-3mdv2009.0 + Revision: 246565 - rebuild + Pixel <pixel@mandriva.com> - rpm filetriggers deprecates update_menus/update_scrollkeeper/update_mime_database/update_icon_cache/update_desktop_database/post_install_gconf_schemas * Tue Jan 08 2008 Andreas Hasenack <andreas@mandriva.com> 1.2.3-1mdv2008.1 + Revision: 146880 - updated to version 1.2.3 + Olivier Blin <oblin@mandriva.com> - restore BuildRoot + Thierry Vignaud <tv@mandriva.org> - kill re-definition of %%buildroot on Pixel's request * Thu Sep 20 2007 Andreas Hasenack <andreas@mandriva.com> 1.2.2-2mdv2008.0 + Revision: 91562 - fix simple bind (#28243) + Thierry Vignaud <tv@mandriva.org> - kill desktop-file-validate's 'warning: key "Encoding" in group "Desktop Entry" is deprecated' * Wed Dec 20 2006 Guillaume Rousse <guillomovitch@mandriva.org> 1.2.2-1mdv2007.0 + Revision: 100600 - fix build dependencies - fix build dependencies - new version drop unused additional langpack drop old debian menu fix build + Stefan van der Eijk <stefan@mandriva.org> - Import gq * Mon Sep 04 2006 Jerome Soyer <saispo@mandriva.org> 1.0.1-1mdv2007.0 - New release 1.0.1 - Rediff patch0 * Sat Aug 26 2006 Per Ãyvind Karlsen <pkarlsen@mandriva.com> 1.0.0-4mdv2007.0 - fix category in xdg menu * Sat Aug 26 2006 Per Ãyvind Karlsen <pkarlsen@mandriva.com> 1.0.0-3mdv2007.0 - fix summary macro that's used in menu item - don't archive/bzip2 icons - (valid) xdg menu - cleanups * Fri May 26 2006 Andreas Hasenack <andreas@mandriva.com> 1.0.0-2mdk - fix for sasl support (had to add back a hunk from the original sasl patch that got lost in the upstream merge) * Sat May 06 2006 Stefan van der Eijk <stefan@eijk.nu> 1.0.0-1mdk - 1.0.0 - drop about patch (merged upstream) - drop usebasedn patch (merged upstream) * Thu Apr 27 2006 Andreas Hasenack <andreas@mandriva.com> 1.0-0.rc1.3mdk - updated use base dn patch to only add the provided suffix if it's already not in the list of the automatically discovered suffixes (#22149) * Tue Apr 18 2006 Andreas Hasenack <andreas@mandriva.com> 1.0-0.rc1.2mdk - removed buildrequires for gdk-pixbuf-devel - added some missing buildrequires (gtk+2-devel and glib-devel) - added patch to fix about dialog text - added patch so that the supplied base dn is not ignored * Mon Apr 10 2006 Stefan van der Eijk <stefan@eijk.nu> 1.0-0.rc1.1mdk - 1.0rc1 - drop patch0 & patch2 (merged upstream) * Mon Apr 10 2006 Stefan van der Eijk <stefan@eijk.nu> 1.0-0.beta2.1mdk - 1.0beta2 - replace patch0 with one from sf.net - remove patch1 gcc4 (merged upstream) * Wed Nov 23 2005 Andreas Hasenack <andreas@mandriva.com> 1.0-0.beta1.8mdk - rebuilt with openssl 0.9.8a * Tue Oct 11 2005 Nicolas Lécureuil <neoclust@mandriva.org> 1.0-0.beta1.7mdk - Fix BuildRequires * Mon Oct 10 2005 Andreas Hasenack <andreas@mandriva.com> 1.0-0.beta1.6mdk - fixed sasl patch to properly use either the entered password or the stored one (and not only the stored one). Thanks to Tony Earnshaw for testing and notifying me. * Wed Sep 14 2005 Andreas Hasenack <andreas@mandriva.com> 1.0-0.beta1.5mdk - added patch to fix basic sasl auth support - added LDAP_DEPRECATED define to avoid declaration warnings - enabled drag-and-drop feature * Sat Sep 10 2005 Andreas Hasenack <andreas@mandriva.com> 1.0-0.beta1.4mdk - added gcc4 patch from sourceforge bug tracker (id #1184399) - rebuilt with openldap-2.3.x * Wed Mar 30 2005 Buchan Milne <bgmilne@linux-mandrake.com> 1.0-0.beta1.3mdk - fix segfault on expanding tree (#15065), thx ahasenack for the patch * Sun Feb 06 2005 Stefan van der Eijk <stefan@eijk.nu> 1.0-0.beta1.2mdk - Rebuild new ldap * Tue Jan 20 2004 Buchan Milne <bgmilne@linux-mandrake.com> 1.0-0.beta1.1mdk - 1.0beta1