File gnome-doc-utils.spec of Package gnome-doc-utils

#
# spec file for package gnome-doc-utils (Version 0.5.3)
#
# Copyright (c) 2006 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:         gnome-doc-utils
BuildRequires: glib2-devel intltool libxslt-devel perl-XML-Parser python
%define prefix   /opt/gnome
%define sysconfdir /etc%{prefix}
License:      LGPL
Group:        System/GUI/GNOME
Autoreqprov:  on
Version:      0.10.3
Release:      1.0
Summary:      A Collection of Documentation Utilities for GNOME
Source:       ftp://ftp.gnome.org/pub/GNOME/sources/gnome-doc-utils/0.8/%{name}-%{version}.tar.bz2
Patch1:       gnome-doc-utils-permissive.patch
URL:          http://www.gnome.org
BuildRoot:    %{_tmppath}/%{name}-%{version}-build
Requires:     libxml2-python
PreReq:       filesystem gconf2 /usr/bin/touch
# -devel Requires:     libxml2-devel
#BuildArch:      noarch

%description
The gnome-doc-utils package is a collection of documentation utilities
for the GNOMEproject. Notably, it contains utilities for building
documentation and all auxiliary files in your source tree. It also
contains the DocBook XSLT stylesheets that were once distributed with
Yelp. Starting with GNOME 2.8, Yelp requires gnome-doc-utils for XSLT.
It also contains the Python program xml2po that extracts translatable
content from XML documents and outputs gettext-compatible POT files.
For simple tags, it works out-of-the-box. For complicated tags, provide
a list of all tags that are considered "final" (tags with contents that
should be put into one "message" in the POT file), "ignored" (skipped
over), and "space preserving".

Sane defaults are available for DocBook documents and other common
document types (like GNOME Summaries and XHTML). For other kinds of
documents, it is possible to use -a (--automatic-tags) to choose
suitable translatable pieces.



Authors:
--------
    Shaun McCance <shaunm@gnome.org>

%package devel
Summary:        A Collection of Documentation Utilities for GNOME
Group:          System/GUI/GNOME
AutoReqProv:    on
Requires:       %{name} = %{version} libxml2-devel

%description devel
The gnome-doc-utils package is a collection of documentation utilities
for the GNOME project.	Notably, it contains utilities for building
documentation and all auxiliary files in your source tree. It also
contains the DocBook XSLT stylesheets that were once distributed with
Yelp.  Starting with GNOME 2.8, Yelp requires gnome-doc-utils for XSLT.

It also contains the Python program xml2po that extracts translatable
content from XML documents and outputs gettext-compatible POT files.
For simple tags, it works out-of-the-box. For complicated tags, provide
a list of all tags that are considered "final" (tags with contents that
should be put into one "message" in the POT file), "ignored" (skipped
over), and "space preserving".

Sane defaults are available for DocBook documents and other common
document types (like GNOME Summaries and XHTML).  For other kinds of
documents, it is possible to use -a (--automatic-tags) to choose
suitable translatable pieces.



Authors:
--------
    Shaun McCance <shaunm@gnome.org>

%debug_package
%prep
%setup -q
%patch1

%build
#autoconf
#automake
CFLAGS="$RPM_OPT_FLAGS -g -Wall" \
  ./configure \
    --prefix=%prefix \
    --libdir=%prefix/%{_lib} \
    --libexecdir=%{prefix}/lib/gnome-applets \
    --sysconfdir=%sysconfdir \
    --disable-scrollkeeper \
    --mandir=%prefix/share/man \
    --localstatedir=/var/lib
make 

%install
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
make -i install DESTDIR=$RPM_BUILD_ROOT
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README
%defattr (-, root, root)
%{prefix}/bin/*
%{prefix}/%_lib/pkgconfig/*
%{prefix}/share/aclocal/gnome-doc-utils.m4
%{prefix}/share/gnome-doc-utils
%{prefix}/share/xml
%{prefix}/share/omf/*
%{prefix}/share/locale/*
%{prefix}/share/gnome/help/gnome-doc-xslt/
%{prefix}/share/gnome/help/gnome-doc-make/
%{prefix}/share/xml2po/
%{prefix}/share/man/man1/*


%files devel
%defattr (-, root, root)
%{prefix}/%_lib/pkgconfig/*.pc

%changelog -n gnome-doc-utils
* Mon Jan 24 2005 - clahey@suse.de
- Initial import.
openSUSE Build Service is sponsored by