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

#
# spec file for package man-pages-it
#
# Copyright (c) 2012 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:           man-pages-it
# strange buildrequires are needed to resolve fileconflicts (see %install)
BuildRequires:  man
Url:            http://www.pluto.it/ildp/man/
License:        GPL-2.0 and GPL-2.0+ and BSD-3-Clause and GFDL-1.1
Group:          Documentation/Man
Provides:       locale(man:it)
%if 0%{?suse_version} > 1020
BuildRequires:  fdupes
%endif
AutoReqProv:    off
Version:        3.15
Release:        2
Summary:        LDP Man Pages (Italian)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source:         manpages%{version}.tar.bz2
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 -q

%build
chmod 644 CHANGELOG HOWTOHELP readme POSIX-COPYRIGHT

%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
%fdupes -s $RPM_BUILD_ROOT
%find_lang %{name} --all-name --with-man

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.lang
%defattr(-,root,root)
%doc  CHANGELOG HOWTOHELP readme POSIX-COPYRIGHT 

%changelog
openSUSE Build Service is sponsored by