File pin.spec of Package pin

#
# spec file for package pin (Version 0.38)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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:           pin
Version:        0.38
Release:        0
License:        GPL-2.0+
Group:          Documentation/SUSE
Url:            http://www.hennevogel.de/scripts/pin/
Source:         pin
Source1:        pin.1.gz
Summary:        A tool for finding package information
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
Pin - Package InformatioN. Pin searches the installed packages (rpm
-qi, -ql) and the ARCHIVES.gz file for the desired information. It
shows README, README.SuSE, and FAQ, when available.



Authors:
--------
    Martin Lasarsch <mlasars@suse.de>

%install
mkdir -p $RPM_BUILD_ROOT/%_bindir
install -m 755 %{S:0} $RPM_BUILD_ROOT/%_bindir
install -d $RPM_BUILD_ROOT/%_mandir/man1
install -m 644 %{S:1} $RPM_BUILD_ROOT/%_mandir/man1/pin.1.gz
install -d $RPM_BUILD_ROOT/%_localstatedir/lib/%name
touch $RPM_BUILD_ROOT/%_localstatedir/lib/%name/ARCHIVES.gz

%files
%defattr(-,root,root)
%_bindir/pin
%_mandir/man1/pin.1.gz
%dir %_localstatedir/lib/%name
%ghost %_localstatedir/lib/%name/ARCHIVES.gz

%changelog
openSUSE Build Service is sponsored by