# Copyright (c) 2010 Sascha Manns # # 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/ # # norootforbuild Name: whohas Version: 0.24 Release: 0 License: GPLv2 or later Requires: perl = %{perl_version} Requires: perl-libwww-perl Requires: perl-DateTime Source: %{name}-%{version}.tar.bz2 Group: System/Console Summary: Package list querying tool Url: http://www.philippwesche.org/200811/whohas/intro.html 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 %__chmod 755 html_assets %__chmod -R 644 Changelog INSTALL LICENSE intro.html intro.txt html_assets/* %build %install %__install -D -p -m 755 program/%{name} %{buildroot}%{_bindir}/%{name} %__install -D -p -m 644 usr/share/man/man1/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1 %__install -D -p -m 644 usr/share/man/de/man1/%{name}.1 ${RPM_BUILD_ROOT}%{_mandir}/de/man1/%{name}.1 %clean %__rm -rf %buildroot %files %defattr(-,root,root) %dir %{_mandir}/de/man1 %{_bindir}/%{name} %{_mandir}/man1/%{name}.1.gz %{_mandir}/de/man1/%{name}.1.gz %doc Changelog INSTALL LICENSE intro.html intro.txt html_assets/ %changelog