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/
#

# norootforbuild


Name:           pin
Url:            http://www.hennevogel.de/scripts/pin/
License:        GPL v2 or later
Group:          Documentation/SUSE
AutoReqProv:    on
Version:        0.38
Release:        91
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
rm -rf $RPM_BUILD_ROOT
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
* Sun Dec 14 2008 jw@suse.de
- added stty sane to cleanup trap. (bug #458980, jw)
* Thu Jun 21 2007 adrian@suse.de
- fix changelog entry order
* Wed May 09 2007 mlasars@suse.de
- package with cboltz fixes subbmitted
  Sun May  6 19:58:00 CET 2007 - cboltz
- fixed fix for bug #188068, copying ARCHIVES.gz should now work
  with any shell
- clean up tempfile if pin gets killed or Ctrl-c'ed (bug #218263)
* Tue Apr 03 2007 mlasars@suse.de
- --nosignature --nodigest for rpm -qa to speedup (thanks Pascal)
- su & tcsh fix (bug #188068) (thanks Volker)
* Mon Nov 06 2006 mlasars@suse.de
- fixed wrong su command (bug #188068)
- throw error message if cd/dvd is not mounted
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Jan 23 2006 mlasars@suse.de
- fixed error in cd/dvd handling (bug #144395)
* Wed Sep 28 2005 dmueller@suse.de
- add norootforbuild
* Tue Sep 06 2005 mlasars@suse.de
- updated text (bug #115333)
* Fri Aug 26 2005 mlasars@suse.de
- removed test
* Mon Aug 22 2005 mlasars@suse.de
- fixed bug #104800
* Thu Aug 04 2005 mlasars@suse.de
- fixed update problem
* Fri Sep 17 2004 mlasars@suse.de
- forget one dvd-ram fix
* Mon Sep 13 2004 mlasars@suse.de
- wrong mountpoint, its dvdram instead of dvd-ram
* Mon Sep 06 2004 mlasars@suse.de
- changed cd/dvd mounting
* Mon Mar 08 2004 hvogel@suse.de
- include the directory for ARCHIVES.gz in %%files
- include ghosted ARCHIVES.gz in %%files
- some specfiles cleanup
* Mon Jan 05 2004 mlasars@suse.de
- fixed insecure tmp file handling (bug #33794)
* Wed Sep 03 2003 mlasars@suse.de
- fixed rm of wrong file
* Tue Sep 02 2003 mlasars@suse.de
- added clear when using dialog
- clean up options
- -v uses now the version to search
* Mon Jul 28 2003 mlasars@suse.de
- changed specfile chown
* Wed Jun 11 2003 mmj@suse.de
- pin is noarch
* Mon Aug 26 2002 mlasars@suse.de
- fix /dvd/cdrom/cdrecorder mount
* Fri Mar 08 2002 mlasars@suse.de
- fix messages before copy files, now in right order (bug #14637)
* Thu Feb 21 2002 mlasars@suse.de
- fix remove tmp file at the end
* Thu Feb 21 2002 mlasars@suse.de
- corrected typos (# 23264)
- new location for ARCHIVES.gz (# 22409), now /var/lib/pin/
- no sorting for main section, makes reading easier
* Mon Feb 18 2002 mlasars@suse.de
- changed ARC_DIR to /usr/share/pin/
- uses now OUT_FILE_$$
- fixed root/user file permission bug
* Mon Sep 17 2001 mlasars@suse.de
- cancel and no input fix, remove one cut
* Fri Sep 07 2001 mlasars@suse.de
- added man page, usage info
- check options before grepfile
* Mon Sep 03 2001 mlasars@suse.de
- fix output, now really sorted
- if ARCHIVES.gz not available, it will copied from CD/DVD
* Mon Aug 27 2001 mlasars@suse.de
- created initial package
openSUSE Build Service is sponsored by