File whohas.spec of Package whohas
#
# spec file for package whohas
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 8/2011 open-slx GmbH <Sascha.Manns@open-slx.de>
# Copyright (c) 2010 - 7/2011 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.29
Release: 0
Summary: Package list querying tool
License: GPL-2.0+
Group: System/Console
Url: http://www.philippwesche.org/200811/whohas/intro.html
Source0: http://www.philippwesche.org/200811/%{name}/%{name}-%{version}.tar.gz
# PATCH-FIX-OPENSUSE whohas-fix_install.patch pth@suse.de -- Added a Makefile for Installation.
Patch0: whohas-fix_install.patch
# PATCH-FIX-UPSTREAM manpage-0.23.patch asterios.dramis@gmail.com -- Add the --shallow option to the syntax line in the manpage
Patch1: manpage-0.23.patch
# PATCH-FIX-UPSTREAM manpage-0.24.patch asterios.dramis@gmail.com -- Update the version number in the manual from 0.23 to 0.24
Patch2: manpage-0.24.patch
# PATCH-FIX-UPSTREAM ubuntu-versions.patch deb#670675 asterios.dramis@gmail.com -- Show all versions of a package from Ubuntu, not just the earliest
Patch3: ubuntu-versions.patch
# PATCH-FIX-UPSTREAM debian-versions.patch deb#655497 asterios.dramis@gmail.com -- Providing output for all Debian distributions
Patch4: debian-versions.patch
# PATCH-FIX-UPSTREAM help-param-513476.patch deb#513476 asterios.dramis@gmail.com -- Handle the --help parameter instead of assuming it is a package name
Patch5: help-param-513476.patch
# PATCH-FIX-UPSTREAM strictness-510020-510524.patch deb#510020 deb#510524 asterios.dramis@gmail.com -- Add a --strict option to output only exactly matching package names
Patch6: strictness-510020-510524.patch
# PATCH-FIX-OPENSUSE gentoo-result-url-516071.patch deb#516071 asterios.dramis@gmail.com -- Return a more official link to the gentoo package, where more useful information can be found
Patch7: gentoo-result-url-516071.patch
# PATCH-FIX-OPENSUSE improve-fetchdoc.patch asterios.dramis@gmail.com -- Shift some of the burden in sub fetchdoc onto the LWP::UserAgent class. This also allows us to process XML files without breaking the first line
Patch8: improve-fetchdoc.patch
# PATCH-FIX-UPSTREAM openbsd-cache-results-557724.patch deb#557724 asterios.dramis@gmail.com -- For OpenBSD, use @name to loop through a cached list, not @repos which is never populated
Patch9: openbsd-cache-results-557724.patch
# PATCH-FIX-UPSTREAM dont-mask-vars-560891.patch deb#560891 asterios.dramis@gmail.com -- Remove a double-declaration of @dates
Patch10: dont-mask-vars-560891.patch
# PATCH-FIX-OPENSUSE archlinux-url-561536.patch deb#561536 asterios.dramis@gmail.com -- Update search URL for Arch repositories
Patch11: archlinux-url-561536.patch
# PATCH-FIX-OPENSUSE fedora-search-619873.patch deb#619873 asterios.dramis@gmail.com -- Support Fedora's package listing
Patch12: fedora-search-619873.patch
# PATCH-FIX-UPSTREAM opensuse.patch asterios.dramis@gmail.com -- Fix openSUSE packages search
Patch13: opensuse.patch
Requires: perl = %{perl_version}
Requires: perl-XML-Simple
Requires: perl-libwww-perl
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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, Cygwin and OpenMoko. 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 (not implemented for all distributions).
%prep
%setup -q
%patch0
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1
%patch11 -p1
%patch12 -p1
%patch13 -p1
# Fix permissions (fix for rpmlint errors "spurious-executable-perm" and "executable-docs")
chmod 755 html_assets
chmod 644 Changelog LICENSE intro.html intro.txt html_assets/*
%build
%install
make DESTDIR=%{buildroot} install
%files
%defattr(-,root,root,-)
%doc Changelog LICENSE intro.html intro.txt html_assets/
%{_bindir}/%{name}
%doc %{_mandir}/man1/%{name}.1%{ext_man}
%doc %dir %{_mandir}/de/man1
%doc %{_mandir}/de/man1/%{name}.1%{ext_man}
%changelog