File libreoffice-templates-ru.spec of Package libreoffice-templates-ru
#
# spec file for package libreoffice-templates-ru
#
# Copyright (c) 2011 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: libreoffice-templates-ru
License: LGPLv3
Group: Productivity/Office/Suite
AutoReqProv: on
Provides: locale(libreoffice:ru) locale(OpenOffice_org:ru)
# compat stuff
Provides: OpenOffice_org-templates-ru = %version
Obsoletes: OpenOffice_org-templates-ru <= %version
Version: 3.3
Release: 1.<RELEASE2>
Summary: Russian Templates for LibreOffice
Source0: ooo-templates-ru-3.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
A collection of Russian templates for LibreOffice.
Collected by EGD <egd dot free at gmail dot com>
%prep
%setup -q -n ooo-templates-ru-3
%build
%install
install -m 755 -d $RPM_BUILD_ROOT/usr/share/templates/libreoffice/ru
cp -a templates/* $RPM_BUILD_ROOT/usr/share/templates/libreoffice/ru
# compat stuff
install -m 755 -d $RPM_BUILD_ROOT/usr/share/templates/ooo/
for dir in `find $RPM_BUILD_ROOT/usr/share/templates/libreoffice/ -type d -printf "%%P \n"` ; do
echo "~$RPM_BUILD_ROOT/usr/share/templates/ooo/$dir~"
mkdir -p $RPM_BUILD_ROOT/usr/share/templates/ooo/$dir
done
for file in `find $RPM_BUILD_ROOT/usr/share/templates/libreoffice/ -type f -printf "%%P "` ; do
ln -sf /usr/share/templates/libreoffice/$file $RPM_BUILD_ROOT/usr/share/templates/ooo/$file
done
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc README.txt lgpl-3.0.txt
/usr/share/templates/
%changelog