File docbook-css-stylesheets.spec of Package docbook-css-stylesheets

#
# spec file for package docbook-css-stylesheets (Version 0.4)
#
# 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:           docbook-css-stylesheets
License:        BSD License and BSD-like, Public Domain, Freeware
Group:          Productivity/Publishing/DocBook
Autoreqprov:    on
BuildArchitectures: noarch
Summary:        DocBook CSS Stylesheets
Version:        0.4
Release:        37
Source0:        http://www.badgers-in-foil.co.uk/projects/docbook-css/docbook-css-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
URL:            http://www.badgers-in-foil.co.uk/projects/docbook-css/

%description
These cascading stylesheets allow you to view a DocBook XML document
formatted in software that supports XML styled with CSS2, for example,
a recent Mozilla or Firefox browser.



Authors:
--------
    David Holroyd <dave@badgers-in-foil.co.uk>

%define INSTALL install -m755 -s
%define INSTALL_DIR install -d -m755
%define INSTALL_DATA install -m644
%define INSTALL_SCRIPT install -m755 -o root -g root
%define xml_dir %{_datadir}/xml
%define xml_mod_dir %{xml_dir}/docbook
%define xml_mod_dtd_dir %{xml_mod_dir}/dtd
%define xml_mod_custom_dir %{xml_mod_dir}/custom
%define xml_mod_style_dir %{xml_mod_dir}/stylesheet
%define xml_mod_style_prod_dir %{xml_mod_style_dir}/css
%prep
%setup -q -n docbook-css-%{version}

%build

%install
export RPM_BUILD_ROOT
if [ ! "x" = "x$RPM_BUILD_ROOT" ]; then
  rm -fr $RPM_BUILD_ROOT
  %{INSTALL_DIR} $RPM_BUILD_ROOT
fi
# doc_dir=$RPM_BUILD_ROOT%{_defaultdocdir}/%{name}
%{INSTALL_DIR} $RPM_BUILD_ROOT%{xml_mod_style_prod_dir}/%{version}
cp -a [[:lower:]]* $RPM_BUILD_ROOT%{xml_mod_style_prod_dir}/%{version}
pushd $RPM_BUILD_ROOT%{xml_mod_style_prod_dir}
ln -sf %{version} current
popd

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%dir %{xml_mod_style_dir}
%dir %{xml_mod_style_prod_dir}
%{xml_mod_style_prod_dir}/%{version}
%dir %{xml_mod_style_prod_dir}/current

%changelog -n docbook-css-stylesheets
* Thu Jan 11 2007 - ke@suse.de
- Remove /usr/share/xml from the files list.
* Wed Jan 25 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
* Tue Nov 23 2004 - ke@suse.de
- Update to version 0.4.
* Fri Nov 19 2004 - ke@suse.de
- New package: version 0.3.
openSUSE Build Service is sponsored by