File scribus-templates.spec of Package scribus-templates

#
# spec file for package scribus-templates (Version 1.2)
#
# 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:           scribus-templates
BuildRequires:  scribus shared-mime-info
%define _name scribus-temp-all
Version:        1.2
Release:        311
Url:            http://www.scribus.net/
Group:          Productivity/Publishing/Other
License:        GPL v2 or later
Summary:        Extra Document Templates for Scribus
Source:         http://web2.altmuehlnet.de/fschmid/%{_name}-%{version}.tar.bz2
Source1:        README.SuSE
Patch:          %{_name}-datadir+destdir.patch
AutoReqProv:    on
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       scribus ghostscript-fonts-std
#Recommends:  bitstream-vera artifex-fonts
BuildArch:      noarch

%description
This package includes additional templates for Scribus.



Authors:
--------
    Petr Van&#283;k <petr@yarpen.cz>
    Riku Leino <tsoots@welho.com>

%prep
%setup -n %{_name}-%{version}
cp -a %SOURCE1 .
# This patch was autogenerated by:
# for i in $(find -name Makefile.am) ; do sed 's%\(INSTALL_DATA\|mkinstalldirs\)\(.* \)$(prefix)/share%\1\2$(DESTDIR)$(datadir)%g' <$i >$i~ ; Ci $i ; mv $i~ $i ; done
%patch

%build
autoreconf -f -i
./configure\
	--prefix=/usr
make

%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
rm -rf $RPM_BUILD_ROOT/usr/share/scribus/templates/br1
rm -rf $RPM_BUILD_ROOT/usr/share/scribus/templates/nl1
rm -rf $RPM_BUILD_ROOT/usr/share/scribus/templates/nl2
rm -rf $RPM_BUILD_ROOT/usr/share/scribus/templates/textbased

%clean
rm -rf $RPM_BUILD_ROOT

%post

%files
%defattr (-, root, root)
%doc AUTHORS COPYING README README.SuSE
/usr/share/scribus/templates/*

%changelog
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Nov 16 2005 ro@suse.de
- added shared-mime-info to nfb
* Thu Oct 13 2005 sbrabec@suse.cz
- Do not require bitstream-vera not present in OpenSuSE (#128030).
* Wed Jan 19 2005 ro@suse.de
- removed also textbased stuff (also in main package)
* Sun Jan 16 2005 ro@suse.de
- fix typo in specfile
* Fri Jan 14 2005 ro@suse.de
- fix file conflicts
* Tue Aug 31 2004 sbrabec@suse.cz
- Added Requires for fonts and note about Artifex fonts.
* Mon Aug 30 2004 sbrabec@suse.cz
- New SuSE package, version 1.2.
openSUSE Build Service is sponsored by