File conglomerate.spec of Package conglomerate

#
# spec file for package conglomerate (Version 0.9.1)
#
# Copyright (c) 2008 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:           conglomerate
BuildRequires:  enchant-devel fdupes gnutls-devel gtk-doc gtksourceview18-devel intltool libglade2-devel libgnomeprintui-devel libgnomeui-devel libwnck-devel libxslt-devel perl-XML-Parser scrollkeeper sgml-skel shared-mime-info update-desktop-files
Summary:        XML Editor for GNOME
Version:        0.9.1
Release:        281
Requires:       %{name}-lang = %{version}
Group:          Productivity/Publishing/XML
License:        GPL v2 or later
Url:            http://www.conglomerate.org/
Source0:        %{name}-%{version}.tar.bz2
Patch:          conglomerate-desktop.patch
Patch2:         conglomerate-readme-xds.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
AutoReqProv:    on
%gconf_schemas_prereq

%description
Conglomerate is a user-friendly XML editor for DocBook and other
document types. It aims to hide the complexity and jargon of XML behind
a friendly GUI.



Authors:
--------
    David Malcolm <david@davemalcolm.demon.co.uk>

%package doc
License:        GPL v2 or later
Summary:        Documentation for Conglomerate
Group:          Productivity/Publishing/XML
Requires:       %{name} = %{version}

%description doc 
This package contains the documentation for Conglomerate, a
user-friendly XML editor for DocBook and other document types.



Authors:
--------
    David Malcolm <david@davemalcolm.demon.co.uk>

%lang_package
%prep
%setup -q
%patch -p 1
%patch2
rename no nb po/no.*
sed -i "/^ALL_LINGUAS/s/ no / nb /" configure.in

%build
# - Add enchant and enchant-devel to neededforbuild.
# for the moment do not enable: enchant enchant-devel
# needed for conglomerate-0.9.1:
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
autoreconf -f -i
intltoolize --force
# FIXME: GTKDOC_CFLAGS:
# Silently ignored compilation of uninstalled gtk-doc scanners without RPM_OPT_FLAGS.
%configure\
	--disable-scrollkeeper\
	--disable-schemas-install\
	--enable-printing
make %{?jobs:-j%jobs}

%install
%makeinstall
DESTDIR=$RPM_BUILD_ROOT mime-info-to-mime
%suse_update_desktop_file -N "Conglomerate" %name Utility TextEditor
%find_lang %{name}
%find_gconf_schemas
cat %{name}.schemas_list >%{name}.lst
rm -r $RPM_BUILD_ROOT%{_datadir}/mime-info $RPM_BUILD_ROOT%{_datadir}/application-registry
%fdupes $RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%pre -f %{name}.schemas_pre

%post
if test -x usr/bin/update-mime-database ; then
  usr/bin/update-mime-database usr/share/mime >/dev/null
fi
%posttrans -f %{name}.schemas_posttrans

%postun
if test -x usr/bin/update-mime-database ; then
  usr/bin/update-mime-database usr/share/mime >/dev/null
fi

%preun -f %{name}.schemas_preun

%files -f %{name}.lst
%defattr(-, root, root)
%{_bindir}/*
%{_datadir}/applications/*.desktop
%{_datadir}/%{name}
%{_datadir}/pixmaps/*
%{_datadir}/omf/conglomerate
%{_datadir}/mime/packages/*.xml

%files lang -f %{name}.lang

%files doc
%defattr(-, root, root)
%{_datadir}/gtk-doc/html/conglomerate

%changelog
* Wed Oct 15 2008 maw@novell.com
- Run intltoolize.
* Thu Nov 01 2007 sbrabec@suse.cz
- Build with gtksourceview18.
* Thu Oct 11 2007 sbrabec@suse.cz
- Removed bogus dependency on mDNSResponder.
* Tue Aug 28 2007 stbinner@suse.de
- fix .desktop file: don't repeat GenericName content within Name
* Mon Aug 06 2007 maw@suse.de
- Split out a -lang subpackage
- Use %%fdupes.
* Wed Mar 07 2007 sbrabec@suse.cz
- Created -doc subpackage (#248813).
* Thu Jan 04 2007 sbrabec@suse.cz
- Prefix changed to /usr.
- Spec file cleanup.
* Wed Aug 02 2006 danw@suse.de
- intltoolize before autoreconf'ing to avoid version skew between
  configure macros and po/Makefile.in.in
* Fri Mar 31 2006 danw@suse.de
- Fix a bug in one of its XML support files that causes a warning
  at startup. #155949
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Thu Aug 04 2005 sbrabec@suse.cz
- Updated to version 0.9.1.
* Thu Apr 14 2005 sbrabec@suse.cz
- Added audiofile-devel to neededforbuild.
* Fri Feb 18 2005 sbrabec@suse.cz
- Updated to version 0.9.0.
* Tue Feb 01 2005 meissner@suse.de
- 0 -> NULL in 2 gtk calls.
* Mon Nov 22 2004 ke@suse.de
- Fix desktop file.
* Fri Nov 05 2004 ke@suse.de
- Update to version 0.7.16.
- Drop obsolete patches.
* Thu Oct 28 2004 ke@suse.de
- Update to version 0.7.15:
  * Update and new translations.
  * Enhancements: Allow to add arbitrary XML elements, better namespace
  support, support CDATA section, show XPath in the status line, speedup
  by disabling some overzealous internal self-testing, etc.
  * Many bug fixes (various memory leaks, i18n work, improvements to the
  example files, etc.).
- Stop supplying fo-*.c files.
- Remove expat from neededforbuild.
* Tue Oct 19 2004 ke@suse.de
- Rename 'no' locale directory to 'nb' [#27748].
* Mon Oct 11 2004 ro@suse.de
- added libgpg-error, libgcrypt to neededforbuild
* Mon Sep 13 2004 ke@suse.de
- Drop obsolete docs patch; reported by Christian Meyer [#45060].
- conglomerate-0.7.14-desktop.patch: Fix Catagories statement to make it
  appear in the Gnome menue system.
* Tue Sep 07 2004 sbrabec@suse.cz
- Fixed mime info and generated shared mime info.
* Thu Jun 24 2004 ke@suse.de
- Update to version 0.7.14.
* Tue Jun 22 2004 ke@suse.de
- Update to version 0.7.13; many a lot enhancements and fixes.
- Add missing fo-*.c files from CVS.
- Build the docs, but disable parts of them.
* Tue May 25 2004 ke@suse.de
- Remove libgtop-devel form neededforbuild.
* Fri May 21 2004 ke@suse.de
- Fix gconf schema installation (thanks to Stanislav Brabec).
* Wed Mar 17 2004 sbrabec@suse.cz
- Fixed scrollkeeper calling conventions (#36215).
* Fri Feb 20 2004 sbrabec@suse.cz
- Fixed names of GNOME2 packages.
* Thu Feb 19 2004 ke@suse.de
- Update to version 0.7.12.
- Also call scrollkeeper-update at update time.
* Mon Feb 16 2004 ke@suse.de
- Call scrollkeeper-update as needed.
- PreReq: scrollkeeper.
* Thu Feb 05 2004 ke@suse.de
- Update to version 0.7.11.
* Sat Jan 10 2004 adrian@suse.de
- build as user
* Thu Jan 08 2004 ke@suse.de
- Update to version 0.7.10.
* Wed Dec 17 2003 ke@suse.de
- Update to version 0.7.7.
- Adjust file list.
* Mon Nov 03 2003 ke@suse.de
- Update to version 0.7.6.
* Fri Oct 17 2003 schwab@suse.de
- Fix a whole pile of missing declarations.
* Wed Oct 15 2003 ke@suse.de
- Update to version 0.7.5.
* Tue Aug 12 2003 adrian@suse.de
- add Categories
* Mon Jul 14 2003 sbrabec@suse.cz
- GNOME prefix change to /opt/gnome.
* Fri Jun 27 2003 ke@suse.de
- New package: version 0.5.4.
openSUSE Build Service is sponsored by