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

#
# spec file for package docbook-css-stylesheets (Version 0.4)
#
# 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:           docbook-css-stylesheets
License:        BSD 3-Clause; Public Domain, Freeware; X11/MIT
Group:          Productivity/Publishing/DocBook
AutoReqProv:    on
BuildArch:      noarch
Summary:        DocBook CSS Stylesheets
Version:        0.4
Release:        137
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 in
software that supports XML styled with CSS2, for example, a recent
Mozilla or Firefox browser. For more complex modifications of your XML
document use the DocBook XSL stylesheets.



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
* 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