File man-pages-it.spec.in of Package man-pages-it

#
# spec file for package man-pages-it (Version 0.3.0)
#
# Copyright (c) 2007 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:           man-pages-it
# strange buildrequires are needed to resolve fileconflicts (see %install)
BuildRequires:  man 
URL:            http://www.pluto.it/ildp/man/
License:        GPL, Other License(s), see package
Group:          Documentation/Man
Provides:       locale(man:it)
%if 0%{?suse_version} > 1020
BuildRequires:  fdupes
%endif
Autoreqprov:    off
Version:        PREPARE_SPEC_REPLACE_VERSION
Release:        419
Summary:        LDP Man Pages (italian)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source:         man-pages-it-%{version}.tar.gz
Source1:        man-pages-it-rpmlintrc
BuildArch:      noarch

%description
These are the Italian man pages of the Linux Documentation Project.
Note that they are normally older than the English versions.  For
reference, you should use the English versions.



Authors:
--------
    Michele Dalla Silvestra <dalla@psico.unipd.it>

%prep
%setup

%build

%install
mkdir -p $RPM_BUILD_ROOT%{_mandir}/it
for i in man? ; do
  mkdir -p $RPM_BUILD_ROOT%{_mandir}/it/$i
  for m in $i/* ; do
    test -f /usr/share/man/it/$m* && continue
    install -m 644 $m $RPM_BUILD_ROOT%{_mandir}/it/$i
  done
done

%if 0%{?suse_version} > 1020
%fdupes -s $RPM_BUILD_ROOT
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc %{_mandir}/it
%doc  CHANGELOG HOWTOHELP readme POSIX-COPYRIGHT 

%changelog
* Wed May 19 1999 - ro@suse.de
- source-file now ends in .tar.gz