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

#
# spec file for package man-pages-fr (Version 3.03.0)
#
# 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

Url:            http://manpagesfr.free.fr/

Name:           man-pages-fr
Version:        3.03.0
Release:        7
%define shortver %(echo %{version} | sed -e "s@\\..\\$@@")
License:        PERMISSIVE-OSI-COMPLIANT ; Man pages licenses (copyleft documentation)
Group:          Documentation/Man
AutoReqProv:    off
Source:         man-pages-fr-%{version}.tar.bz2
Summary:        LDP man Pages (French)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
These are the French 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:
--------
    Christophe Blaess <ccb@club-internet.fr>

%prep
%setup -n man-pages-fr-%{version}

%install
export RPM_BUILD_ROOT
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/share/man/fr
for i in lpq lpr lprm ; do
 rm -fv man1/$i.1*
done
for i in man? ; do
  mkdir -p $RPM_BUILD_ROOT/usr/share/man/fr/$i
  install -m 644 $i/* $RPM_BUILD_ROOT/usr/share/man/fr/$i
done
%find_lang %{name} --with-man --all-name

%files -f %{name}.lang
%defattr(-,root,root)
%doc LISEZ_MOI changements
#%doc liste_sect*

%changelog