# -*- mode: rpm-spec -*- # # $Id: gq.spec.in,v 1.10 2003/10/27 22:17:52 stamfest Exp $ # %define name gq %define version 1.0beta1 %define release 3 %define prefix /usr # define langpack as "no" if you do not want to use a langpack # you can do this either by uncommenting the following line and removing # the first underscore within it: # # %_define langpack no # # or on the commandline of rpm using # # rpm -ba --define "langpack no" gq.spec # # The same works for tarball building # # If you want to use a specific langpack version you may define the # langpack macro to another version in a way similar to as shown for "no" # # If you want to try a langpack from a different version of gq, you # might to the same for the setting of the "langpackversion" macro. %define _langpack_ %{!?langpack:1}%{?langpack:%{langpack}} %define _langpackversion_ %{!?langpackversion:1.0beta1}%{?langpackversion:%{langpackversion}} Name: %{name} Summary: Interactive graphical LDAP browser Version: %{version} Release: %{release} License: GPL with OpenSSL excemption Group: Networking/Utilities URL: http://biot.com/gq/ Source: http://prdownloads.sourceforge.net/gqclient/gq-%{version}.tar.gz Patch0: gq-ldap22.patch %if "%{_langpack_}" != "no" Source1: http://prdownloads.sourceforge.net/gqclient/gq-%{_langpackversion_}-langpack-%{_langpack_}.tar.gz %endif BuildRoot: %{_tmppath}/%{name}-%{version}-root Requires: gtk+ >= 1.2.0 %description GQ is a GTK+ LDAP client and browser utility. It can be used for searching a LDAP directory as well as browsing it using a tree view. Furthermore, it lets you inspect the LDAP schema a server is using. Install gq if you need a graphical tool to manage the contents of a LDAP server. %prep %setup -q %patch0 -p0 -b .ldap22 %if "%{_langpack_}" != "no" %setup -T -D -a 1 ./gq-%{_langpackversion_}-langpack-%{_langpack_}/langpack . %endif %build %{configure} --with-included-gettext --enable-cache --enable-browser-dnd %{__make} %install [ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot} %{makeinstall} %if "%{_langpack_}" == "no" cat >&2 < 1.0beta1-3 - Add patch for openldap-2.2.x * Sun Nov 14 2004 Petr Krištof 1.0beta1-2 - Rebuild on FC-3 * Wed Oct 22 2003 Simon Matter - replaced several values by corresponding RPM macros * Thu Apr 25 2002 Peter Stamfest - Updated for I18N, added new enable arguments as a reminder * Mon Sep 25 2000 Bert Vermeulen - changed RPM spec maintainer * Wed Mar 08 2000 Ross Golder - Integrated spec file into source tree - Added GNOME panel menu entry * Fri May 28 1999 Borek Lupomesky - Update to 0.2.2 * Sat May 22 1999 Borek Lupomesky - Modified spec to use buildroot