Sophie

Sophie

distrib > Mandriva > cs4.0 > i586 > by-pkgid > 278a6a82a2b989869661cf90e7423339 > files > 5

gq-1.0.0-2mlcs4.src.rpm

%define section Applications/Databases
%define title   Gq

Name:		gq
Version:	1.0.0
Release:	%mkrel 2
Summary:	GQ is a GTK-based LDAP client
License:	GPL
Source:		http://prdownloads.sourceforge.net/gqclient/%{name}-%{version}.tar.bz2
Source1:	http://prdownloads.sourceforge.net/gqclient/%{name}-%{version}-langpack-1.tar.bz2
Source2:	%name-icons.tar.bz2
# http://sourceforge.net/tracker/index.php?func=detail&aid=1494935&group_id=3805&atid=103805
Patch:		gq-1.0.0-saslfix.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
BuildRoot:	%{_tmppath}/%{name}-root

%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
%setup -q -T -D -a 1
%setup -q -T -D -a 2
%patch -p1 -b .saslfix

%build 
( cd %{name}-%{version}-langpack-1; ./langpack .. )
export CFLAGS="%{optflags} -DLDAP_DEPRECATED"
%configure2_5x --with-kerberos-prefix=%{_prefix} --enable-browser-dnd
%make

%install
rm -rf %buildroot
%makeinstall_std

# Menu entry & icons
mkdir -p %buildroot/%_menudir
cat > %buildroot/%_menudir/%name << EOF

?package(%name): \
command="%_bindir/%name" \
needs="X11" \
icon="%name.png" \
section="%section" \
title="%title" \
longtitle="%summary"
EOF

# ie: Is name48.png %{name}48.png or %{name48}.png?
%__install -D -m 644 %{name}48.png %buildroot/%_liconsdir/%name.png
%__install -D -m 644 %{name}32.png %buildroot/%_iconsdir/%name.png
%__install -D -m 644 %{name}16.png %buildroot/%_miconsdir/%name.png

# Macro for locales
%find_lang %name

%post
%update_menus

%postun
%clean_menus

%clean
rm -rf %buildroot

%files -f %name.lang
%defattr (-,root,root)
%doc ABOUT-NLS AUTHORS ChangeLog COPYING INSTALL NEWS README* RELNOTES TODO 
%{_bindir}/*
%dir %{_datadir}/pixmaps/gq
%{_datadir}/pixmaps/gq/*

%defattr(0644,root,root,0755)
%_menudir/*
%_miconsdir/*
%_iconsdir/*
%_liconsdir/*
%_datadir/applications/gq.desktop

%changelog
* Fri Jun 23 2006 Andreas Hasenack <andreas@mandriva.com> 1.0.0-2mdk
- added one more sasl fix
  (http://sourceforge.net/tracker/index.php?func=detail&aid=1494935&group_id=3805&atid=103805)

* Fri Apr 28 2006 Andreas Hasenack <andreas@mandriva.com> 1.0.0-1mdk
- updated to version 1.0.0 final
- removed about and updatedn patches, already applied

* Wed Apr 26 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)

* Mon Apr 17 2006 Andreas Hasenack <andreas@mandriva.com> 1.0-0.rc1.2mdk
- synced with cooker and built for CS4
- removed buildrequires for gdk-pixbuf-devel
- added some missing buildrequires (gtk+2-devel and glib-devel)
- added patch to fix about dialog text
  (http://sourceforge.net/tracker/index.php?func=detail&aid=1471942&group_id=3805&atid=103805)
- added patch so that the supplied base dn is not ignored
  (http://sourceforge.net/tracker/index.php?func=detail&aid=1471944&group_id=3805&atid=103805)

* Wed Apr 09 2006 Stefan van der Eijk <stefan@eijk.nu> 1.0-0.rc1.1mdk
- 1.0rc1
- drop patch0 & patch2 (merged upstream)

* Sun Apr 09 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

* Mon Oct 10 2005 Nicolas Lécureuil <neoclust@mandriva.org> 1.0-0.beta1.7mdk
- Fix BuildRequires

* Sun Oct 09 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.

* Tue Sep 13 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

* Fri Sep 09 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

* Tue Mar 29 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

* Fri Oct 31 2003 Frederic Lepied <flepied@mandrakesoft.com> 1.0-0.alpha3.1mdk
- 1.0alpha3

* Fri Jul 25 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 0.7.0-0.beta2.6mdk
- rebuild against new kerberos
- drop Prefix tag

* Sat Apr 26 2003 Tibor Pittich <Tibor.Pittich@phuture.sk> 0.7.0-0.beta2.5mdk
- add missing dirs into files section (mr. distlint)

* Wed Feb 19 2003 Tibor Pittich <Tibor.Pittich@phuture.sk> 0.7.0-0.beta2.4mdk
- funny expanded macro find_lang removed..

* Wed Feb 19 2003 Tibor Pittich <Tibor.Pittich@phuture.sk> 0.7.0-0.beta2.3mdk
- fix version numbering and change Group
- change source url, update description
- add icons and menu entry

* Tue Jan 28 2003 Lenny Cartier <lenny@mandrakesoft.com> 0.7.0beta2-2mdk
- rebuild

* Wed Oct 23 2002 Stefan van der Eijk <stefan@eijk.nu> 0.7.0beta2-1mdk
- 0.7.0beta2
- BuildRequires: gettext-devel gdk-pixbuf-devel krb5-devel libsasl-devel

* Tue Oct 08 2002 Stefan van der Eijk <stefan@eijk.nu> 0.6.0-1mdk
- 0.6.0

* Sun May  5 2002 Stefan van der Eijk <stefan@eijk.nu> 0.5.0-1mdk
- initial package