File xmanja.spec of Package xmanja

#
# spec file for package xmanja (Version 0.7)
#
# 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:           xmanja
License:        X11/MIT
Group:          Documentation/Man
Autoreqprov:    on
Provides:       locale(xorg-x11:ja)
Version:        0.7
Release:        338
URL:            http://xjman.dsl.gr.jp/
Source0:        http://xjman.dsl.gr.jp/dist/xjman-0.7.tar.bz2
Source1:        license.txt
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Summary:        Japanese online manuals for X11
Summary(ja):  XFree86 のオンラインマニュアル、 日本語版
BuildArchitectures: noarch
# %description -l ja
# XFree86 のオンラインマニュアル、 日本語版

%description
Japanese online manuals for X11



Authors:
--------
    X Japanese Documentation Project <xjman-ml@dsl.gr.jp>

%prep
%setup -n xjman

%build
cp %{SOURCE1} license.txt

%install
[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
for i in man? ; do
  mkdir -p $RPM_BUILD_ROOT/usr/share/man/ja/$i
  install -m 644 $i/* $RPM_BUILD_ROOT/usr/share/man/ja/$i
done
# install Japanese WindowMaker man-pages in /usr/share/man
# because that's where the English ones are
mkdir -p $RPM_BUILD_ROOT/usr/share/man/ja/man1/
install -m 644 non-xfree86/WindowMaker/*.1x $RPM_BUILD_ROOT/usr/share/man/ja/man1/
# conflicts with man-pages-ja package:
rm $RPM_BUILD_ROOT/usr/share/man/ja/man4/mouse.4*

%clean 
#[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;

%files
%defattr(-,root,root)
%doc README license.txt ChangeLog
%dir /usr/share/man/ja/
%doc /usr/share/man/ja/*

%changelog -n xmanja
* Mon Jan 29 2007 - mfabian@suse.de
- remove /usr/share/man/ja/man4/mouse.4.gz because it conflicts
  with the man-pages-ja package.
* Thu Jan 25 2007 - sndirsch@suse.de
- move from /usr/X11R6 to /usr
* Tue Feb 28 2006 - mfabian@suse.de
- add "Provides: locale(xorg-x11:ja)".
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Feb 04 2004 - hmacht@suse.de
- added option # norootforbuild in specfile
* Fri Jun 13 2003 - mfabian@suse.de
- fix "directory now owned by any package".
* Fri Mar 15 2002 - mfabian@suse.de
- update to 0.7 (covers XFree86 4.1.0. previous version was for
  XFree86 3.3.6)
* Fri Aug 11 2000 - mfabian@suse.de
- new package xmanja-0.5