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

#
# spec file for package man-pages-pl (Version 2008.12.1)
#
# 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:           man-pages-pl
License:        Any permissive; GPL v2 or later; Linux Documentation Project License (LDPL); Public Domain, Freeware
Group:          Documentation/Man
AutoReqProv:    off
Version:        2008.12.1
Release:        1
Summary:        LDP man Pages (Polish)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source:         manpages-pl.tar.bz2
Url:            http://cvs.pld.org.pl/pl_PL
%if 0%{?suse_version} > 1000
Provides:       locale(man:pl)
%endif
%if 0%{?suse_version} > 1020
BuildRequires:  fdupes
%endif
BuildArch:      noarch

%description
These are the Polish man pages of the Linux Documentation Project.
Note, that usually they are older than the English versions. You should
use the English versions as a reference.



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

%prep
%setup -q -n manpages-pl
find . -iname "*cvs*" | xargs rm -rf 
# remove doubles
# provided by mc:
rm man1/mc.1
# provided by vim
rm man1/evim.1
rm man1/ex.1
rm man1/gview.1
rm man1/eview.1
rm man1/gvim.1
rm man1/gvimdiff.1
rm man1/rgview.1
rm man1/rgvim.1
rm man1/rview.1
rm man1/rvim.1
rm man1/view.1
rm man1/vim.1
rm man1/vimdiff.1
rm man1/vimtutor.1
# we use a different gpasswd
rm man1/gpasswd.1

%build

%install
mkdir -p $RPM_BUILD_ROOT%{_mandir}/pl
for i in man? ; do
  mkdir -p $RPM_BUILD_ROOT%{_mandir}/pl/$i
  install -m 644 $i/* $RPM_BUILD_ROOT%{_mandir}/pl/$i
done
%if 0%{?suse_version} > 1020
%fdupes -s %buildroot
%endif

%clean
rm -rf %buildroot

%files
%defattr(-,root,root)
%doc ChangeLog  FAQ  FAQ  readme.english  slownik  TODO  whatis
%{_mandir}/pl

%changelog
* Mon Dec 01 2008 hvogel@suse.de
- drop gpasswd man page, we use one with a different syntax
  [bnc#450108]
* Thu Jul 05 2007 lrupp@suse.de
- cleanup after build is finished
- use fdupes
* Tue Jan 30 2007 mskibbe@suse.de
- file conflict between vim and man-pages-pl (#239785)
* Thu Jul 13 2006 hvogel@suse.de
- remove vim man pages, they are provided by vim now
* Wed Feb 22 2006 hvogel@suse.de
- add language provides
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Oct 13 2005 hvogel@suse.de
- remove mc.1. its provided by mc these days...
* Tue Oct 11 2005 hvogel@suse.de
- New package, cvs from yesterday