File man-pages-ko.spec of Package man-pages-ko
#
# spec file for package man-pages-ko (Version 20050219)
#
# 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: man-pages-ko
#!BuildIgnore: man-pages-ko
License: Public Domain, Freeware
Group: Documentation/Man
AutoReqProv: off
%if 0%{suse_version} > 1000
Provides: locale(man:ko)
%endif
%if 0%{suse_version} > 1020
BuildRequires: fdupes
%endif
Version: 20050219
Release: 81
Summary: LDP man Pages (Korean)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Url: http://man.kldp.org/
# original Source is gzipped.
Source: man-pages-ko-%{version}.tar.bz2
BuildArch: noarch
%description
These are the Korean 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:
--------
Korean Manpage Project <plodder@kldp.org>
%prep
%setup -c man-pages-ko-%{version} -n man-pages-ko-%{version}
%build
%install
mkdir -p $RPM_BUILD_ROOT%{_mandir}/ko
for i in `find . -regex ".*/man./.+\..\(\.gz\)?"`
do
SUB_DIR=`dirname $i`
SUB_DIR=${SUB_DIR##*/}
mkdir -p $RPM_BUILD_ROOT%{_mandir}/ko/$SUB_DIR
install -m 644 $i $RPM_BUILD_ROOT%{_mandir}/ko/$SUB_DIR
done
cd $RPM_BUILD_ROOT%{_mandir}/ko
for i in */* ; do
if [ -e %{_mandir}/ko/$i ] || [ -e %{_mandir}/ko/$i.gz ] ; then
echo %{_mandir}/ko/$i already exists. Deleting it.
rm -f $i
fi
done
%if 0%{suse_version} > 1020
%fdupes -s %buildroot
%endif
%clean
rm -rf %buildroot
%files
%defattr(-,root,root)
%doc %{_mandir}/ko
%doc
%changelog
* Thu Jul 05 2007 lrupp@suse.de
- update to 20050219
- cleanup after build is finished
* Tue Feb 28 2006 mfabian@suse.de
- add "Provides: locale(man:ko)".
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Feb 23 2004 hmacht@suse.de
- building as non-root
* Wed Mar 13 2002 mfabian@suse.de
- update to 20010901.
- build manually again because the sources are only available
neither via ftp:// nor http://
* Fri Mar 23 2001 mfabian@suse.de
- remove "nearlyall" from "# neededforbuild"
it causes too much problems and in consequence this packages
rarely ever builds.
The reason for the "nearlyall" in "# neededforbuild" is only
to check a SuSE system with everything installed for Korean
manpages and remove duplicates. But currently Korean man-pages
outside of man-pages-ko don't exist, so this is not really
necessary. If Korean man-pages appear in other packages, it
should be enough to include all these other packages containing
Korean man-pages into the "# neededforbuild".
* Mon Mar 05 2001 violiet@suse.de
- update version to 20010224.
* Tue Nov 28 2000 mfabian@suse.de
- renamed to man-pages-ko
* Fri Sep 08 2000 mfabian@suse.de
- bash man-page was not included because it was already
gzipped in the original tarball and my script searched
only for unzipped man-pages.
* Fri Sep 08 2000 mfabian@suse.de
- used %%{_mandir} instead of /usr/share/man
* Thu Sep 07 2000 mfabian@suse.de
- new package ldpmanko, spec file based on ldpmanja