File apt-file.spec of Package apt-file
#
# spec file for package apt-file (Version 2.0.6)
#
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org
#
# norootforbuild
Name: apt-file
Summary: APT package searching utility
Version: 2.0.6
Release: 4
License: GPL
Group: System/Packages
URL: http://packages.qa.debian.org/a/apt-file.html
Source0: %{name}_%{version}.tar.gz
Patch0: apt-file-find.patch
Patch1: apt-file.1.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: perl-libconfigfile perl-libapt-pkg gzip curl
Buildarch: noarch
%description
Apt-file is a command line tool for searching packages for the APT
packaging system.
Unlike apt-cache, you can search in which package a file is included or
list the contents of a package without installing or fetching it.
Authors:
--------
Sebastien J. Gross <sjg@debian.org>
%prep
%setup -q
%patch0
%patch1
%build
sed s,/dists,,g apt-file.conf > apt-file.suse
%install
install -d -m 755 %{buildroot}%{_bindir}
install -d -m 755 %{buildroot}%{_mandir}/man1
install -d -m 755 %{buildroot}%{_sysconfdir}/apt
install -m 755 apt-file %{buildroot}%{_bindir}/apt-file
install -m 644 apt-file.1 %{buildroot}%{_mandir}/man1/apt-file.1
install -m 644 apt-file.suse %{buildroot}%{_sysconfdir}/apt/apt-file.conf
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root)
%{_bindir}/apt-file
%{_mandir}/man1/apt-file*
%{_sysconfdir}/apt
%doc README TODO debian/changelog debian/copyright
%config(noreplace) %{_sysconfdir}/apt/apt-file.conf
%changelog -n apt-file
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Aug 16 2005 - ro@suse.de
- removed perl-Getopt-Long from requires (is in perl bundle)
* Mon Aug 15 2005 - pth@suse.de
- Inititial package, based on the work of Richard Bos <richard.bos@xs4all.nl>
- Added patches from debian bugzilla