michael@662: ## michael@662: ## whois.spec -- OpenPKG RPM Package Specification michael@662: ## Copyright (c) 2000-2011 OpenPKG Foundation e.V. michael@662: ## michael@662: ## Permission to use, copy, modify, and distribute this software for michael@662: ## any purpose with or without fee is hereby granted, provided that michael@662: ## the above copyright notice and this permission notice appear in all michael@662: ## copies. michael@662: ## michael@662: ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED michael@662: ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF michael@662: ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. michael@662: ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR michael@662: ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, michael@662: ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT michael@662: ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF michael@662: ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND michael@662: ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, michael@662: ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT michael@662: ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF michael@662: ## SUCH DAMAGE. michael@662: ## michael@662: michael@662: # package information michael@662: Name: whois michael@662: Summary: WHOIS Client michael@662: URL: http://www.linux.it/~md/software/ michael@662: Vendor: Marco d'Itri michael@662: Packager: OpenPKG Foundation e.V. michael@662: Distribution: OpenPKG Community michael@662: Class: BASE michael@662: Group: WHOIS michael@662: License: GPL michael@662: Version: 5.0.14 michael@663: Release: 20120800 michael@662: michael@662: # list of sources michael@662: Source0: http://ftp.debian.org/debian/pool/main/w/whois/whois_%{version}.tar.gz michael@662: michael@662: # build information michael@662: BuildPreReq: OpenPKG, openpkg >= 20100101, make, perl michael@662: PreReq: OpenPKG, openpkg >= 20100101 michael@662: michael@662: %description michael@662: A client for querying the WHOIS databases of over 60 top-level domains. michael@662: michael@662: %track michael@662: prog whois = { michael@662: version = %{version} michael@662: url = http://ftp.debian.org/debian/pool/main/w/whois/ michael@662: regex = whois_(__VER__)\.tar\.gz michael@662: } michael@662: michael@662: %prep michael@662: %setup -q michael@662: %{l_shtool} subst \ michael@662: -e 's;^OPTS[ ]*:*=.*$;OPTS=;' \ michael@663: -e 's;^\(install:.*\)install-pos;\1;' \ michael@663: -e 's;^\(all:.*\)pos;\1;' \ michael@662: Makefile michael@662: michael@662: %build michael@662: %{l_shtool} subst -e "s;perl;%{l_prefix}/bin/perl;" Makefile michael@662: michael@662: ldflags="" michael@662: case "%{l_platform -t}" in michael@662: *-sunos* ) michael@662: ldflags="-lnsl -lsocket" michael@662: ;; michael@662: *-freebsd* ) michael@662: %{l_shtool} subst \ michael@662: -e "s;# define HAVE_GETOPT_LONG;/* # define HAVE_GETOPT_LONG */;" \ michael@662: -e "s;# define ENABLE_NLS;/* # define ENABLE_NLS */;" \ michael@662: -e "s;# define LOCALEDIR "/usr/local/share/locale";/* # define LOCALEDIR "/usr/local/share/locale"*/;" \ michael@662: config.h michael@662: ;; michael@662: esac michael@662: michael@663: %{l_make} %{l_mflags -O} \ michael@662: CC="%{l_cc}" \ michael@662: CFLAGS="%{l_cflags -O}" \ michael@662: LDFLAGS="$ldflags" michael@662: michael@662: %install michael@662: %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/bin michael@662: %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/man/man1 michael@662: %{l_shtool} install -s -c -m 755 whois $RPM_BUILD_ROOT%{l_prefix}/bin/ michael@662: %{l_shtool} install -c -m 644 whois.1 $RPM_BUILD_ROOT%{l_prefix}/man/man1/ michael@662: %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} michael@662: michael@662: %files -f files michael@662: michael@662: %clean michael@662: