File licenses.spec of Package licenses

#
# spec file for package licenses (Version 20070810)
#
# Copyright (c) 2009 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:           licenses
Version:        20070810
Release:        84
Url:            http://www.novell.com
Group:          System/Packages
License:        X11/MIT
Summary:        License collection as found in the packages of SuSE Linux
Source:         licenses.tar.bz2
Source1:        collect_licenses.pl
Source2:        fsf-funding.7.gz
Source3:        gfdl.7.gz
Source4:        gpl.7.gz
Source5:        gpl-3.0.txt 
Source6:        lgpl-3.0.txt 
AutoReqProv:    on
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
BuildRequires:  cpio findutils grep perl rpm

%description
Licenses is a collection of license texts found in the packages of a
SuSE Linux distribution. The files are installed at
/usr/share/doc/licenses Other packages are encouraged to symlink to
this location, instead of having a fulltext copy of a license in the
packages.



Authors:
--------
    Juergen Weigert <jw@suse.de>

%prep
%setup -c -n %{name}-%{version}

%build

%install
mkdir -p           $RPM_BUILD_ROOT/usr/share/doc
cp -a licenses $RPM_BUILD_ROOT/usr/share/doc
install -d $RPM_BUILD_ROOT%{_mandir}/man7
install --mode=0644 $RPM_SOURCE_DIR/fsf-funding.7.gz $RPM_BUILD_ROOT%{_mandir}/man7
install --mode=0644 $RPM_SOURCE_DIR/gfdl.7.gz $RPM_BUILD_ROOT%{_mandir}/man7
install --mode=0644 $RPM_SOURCE_DIR/gpl.7.gz $RPM_BUILD_ROOT%{_mandir}/man7
install --mode=0644 $RPM_SOURCE_DIR/*gpl-3.0.txt $RPM_BUILD_ROOT/usr/share/doc/licenses

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr (-, root, root)
%doc /usr/share/doc/licenses
%doc %{_mandir}/man7/fsf-funding.7.gz
%doc %{_mandir}/man7/gfdl.7.gz
%doc %{_mandir}/man7/gpl.7.gz

%changelog
* Fri Aug 10 2007 jw@suse.de
- fixed bug# 299296
  All the Requries are actually BuildRequires.
* Fri Aug 10 2007 bk@suse.de
- add GPL and LGPL version 3 from www.gnu.org/licenses/gpl-3.0.html
* Wed Jun 06 2007 dmueller@suse.de
- remove spurious executable bits
- repackage as bzip2
* Fri May 25 2007 rguenther@suse.de
- add FSF manpages fsf-funding.7, gpl.7 and gfdl.7 which are
  refered to from FSF projects manpages under the GFDL.
* Thu Feb 01 2007 jw@suse.de
- 'eula' added to collect list.
* Wed Jan 31 2007 jw@suse.de
- collect_licenses.pl can now feed on rpm's directly.
* Tue Jan 16 2007 jw@suse.de
- initial draft of a licenses collection.