File whohas.spec of Package whohas
#
# spec file for package whohas
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2010 Sascha Manns <saigkill@opensuse.org>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: whohas
Version: 0.24
Release: 1
License: GPLv2 or later
Summary: Package list querying tool
Url: http://www.philippwesche.org/200811/whohas/intro.html
Group: System/Console
Source: %{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM -- saigkill@opensuse.org Fixed some minor things like the search URL of openSUSE Server
Patch0: whohas-opensuse-fix.patch
# PATCH-FIX-OPENSUSE -- pth@suse.de - Added a Makefile for Installation.
Patch1: whohas-fix_install.patch
Requires: find
Requires: perl = %{perl_version}
Requires: perl-DateTime
Requires: perl-libwww-perl
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
whohas is a command line tool that allows querying several package lists at once - currently
supported are Arch, Debian, Fedora, Gentoo, Mandriva, openSUSE, Slackware (and linuxpackages.net),
Source Mage, Ubuntu, FreeBSD, NetBSD, OpenBSD, Fink, MacPorts and Cygwin. whohas is written in
Perl and was designed to help package maintainers find ebuilds, pkgbuilds and similar package
definitions from other distributions to learn from. However, it can also be used by normal
users who want to know:
* Which distribution provides packages on which the user depends.
* What version of a given package is in use in each distribution, or in each release of a
distribution (implemented only for Debian).
%prep
%setup -q
%patch0 -p1
%patch1
%__chmod go+rx html_assets
%__chmod -R 644 Changelog INSTALL LICENSE intro.html intro.txt html_assets/*
%build
%install
# install binary
# INFO: From line 52 on you will find the searchable repositories. If you would like to
# change them, just edit these lines.
%makeinstall
%clean
%__rm -rf %{buildroot}
%files
%attr(0755,root,root) %{_bindir}/%{name}
%defattr(-,root,root)
%dir %{_mandir}/de/man1
%{_mandir}/man1/%{name}.1.gz
%{_mandir}/de/man1/%{name}.1.gz
%doc Changelog INSTALL LICENSE intro.html intro.txt html_assets/
%changelog