File tei-roma.spec of Package tei-roma

# spec file for package tei-roma (Version 2.11)
# 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

# norootforbuild

Name:           tei-roma
Summary:        TEI Schema or DTD Generator
Version:        2.11
Release:        57
License:        GPL v2 or later
Group:          Productivity/Publishing/XML
Patch:          roma-dir.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
Requires:       /usr/bin/xsltproc trang perl
BuildRequires:  unzip

Roma is a shell script and XSL stylesheets for building a customized
TEI schema or DTD.  It uses xsltproc, trang, and Perl.

%define INSTALL install -m755 -s
%define INSTALL_SCRIPT install -m755
%define INSTALL_DIR install -d -m755
%define INSTALL_DATA install -m644
%define xml_dir %{_datadir}/xml
%define xml_mod_dir %{xml_dir}/tei
%define xml_mod_style_dir %{xml_mod_dir}
%define xml_mod_style_prod_dir %{xml_mod_style_dir}/rahtz
%define xml_mod_style_prod_ver_dir %{xml_mod_style_prod_dir}/%{version}

%setup -q
# unzip -q -a %{SOURCE0}
%patch -p 1
/bin/chmod -Rf a+rX,g-w,o-w .


%{INSTALL_DIR} $RPM_BUILD_ROOT%{xml_mod_dir}
make release
(cd release; tar cf - . ) | (cd $RPM_BUILD_ROOT/%{xml_mod_dir}; tar xf - )
mkdir -p $RPM_BUILD_ROOT%{_bindir} \
cp -p roma.1 $RPM_BUILD_ROOT%{_mandir}/man1
# chmod 755 $RPM_BUILD_ROOT%{_bindir}/roma


%defattr(644, root, root, 755)
%dir %{xml_mod_dir}
%attr(755, root, root) %{xml_mod_dir}/%name/
%attr(755, root, root) %{xml_mod_dir}/%name/roma/res/
%attr(755, root, root) %{_bindir}/roma

* Thu Nov 29 2007
- Update to version 2.11.
* Mon Apr 02 2007
- Update to version 2.8.
- Install the roma man page.
* Thu Mar 29 2007
- Fix BuildRequires
* Fri Jan 12 2007
- Remove /usr/share/xml from the files list.
* Wed Jan 25 2006
- converted neededforbuild to BuildRequires
* Wed Nov 16 2005
- New package: Version 1.7.10.
openSUSE Build Service is sponsored by