File devhelp.spec of Package devhelp

#
# spec file for package devhelp (Version 0.21)
#
# 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:           devhelp
%define xulrunner_version 190
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  gconf2-devel
BuildRequires:  gtk2-devel
BuildRequires:  intltool
BuildRequires:  libglade2-devel
BuildRequires:  libwnck-devel
BuildRequires:  perl-XML-Parser
BuildRequires:  shared-mime-info
BuildRequires:  update-desktop-files
Summary:        Developer's Help Program for GNOME
#'
Version:        0.21
Release:        1
License:        GPL v2 or later
Group:          Development/Tools/Other
Url:            http://developer.imendio.com/wiki/Devhelp
Source:         %{name}-%{version}.tar.bz2
Patch0:         devhelp-nspr-includes.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if %suse_version > 1010 || 0%{?opensuse_bs}
BuildRequires:  mozilla-xulrunner%{xulrunner_version}-devel
Requires:       mozilla-xulrunner%{xulrunner_version}
%else
%if %suse_version == 1010
BuildRequires:  gecko-sdk
Requires:       mozilla-xulrunner
%else
BuildRequires:  gecko-sdk
Requires:       mozilla
%endif
%endif
%if %suse_version > 1020
Requires:       %{name}-lang = %{version}
%endif
%gconf_schemas_prereq

%description
Devhelp Features - Full indexing of books in XML

- HTML viewer (GtkHTML2)

- Search by function, struct, macro, and more

- Auto completion

- Command line search with nice Emacs integration



Authors:
--------
    Johan Dahlin      <zilch.am@home.se>
    Mikael Hallendal  <micke@codefactory.se>
    Richard Hult      <rhult@codefactory.se>

%package devel
License:        GPL v2 or later
Summary:        Developer's Help Program For GNOME
#'
Group:          Development/Tools/Other
AutoReqProv:    on
Requires:       %{name} = %{version} gconf2-devel libglade2-devel libxml2-devel libwnck-devel gtk2-devel orbit2-devel
%if %suse_version > 1010 || 0%{?opensuse_bs}
Requires:       mozilla-xulrunner%{xulrunner_version}-devel
%else
Requires:       gecko-sdk
%endif

%description devel
Devhelp Features - Full indexing of books in XML.

- HTML viewer (GtkHTML2).

- Search by function, struct, macro, and more.

- Auto completion.

- Commandline search, with nice emacs integration.



Authors:
--------
    Johan Dahlin      <zilch.am@home.se>
    Mikael Hallendal  <micke@codefactory.se>
    Richard Hult      <rhult@codefactory.se>

%lang_package
%prep
%setup -q
%patch0 -p1

%build
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
export CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
autoreconf -fi
%configure \
    --disable-static
%__make %{?jobs:-j%jobs}

%install
%makeinstall
# glibmm2 needs this
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/devhelp/books
%suse_update_desktop_file -G "Developer Help" %name Documentation
%find_lang %{name}
%find_gconf_schemas
%if %suse_version > 1020
%fdupes $RPM_BUILD_ROOT
%endif

%clean
rm -rf %{buildroot}

%pre -f %{name}.schemas_pre

%post -p /sbin/ldconfig
%posttrans -f %{name}.schemas_posttrans

%preun -f %{name}.schemas_preun

%postun -p /sbin/ldconfig

%files -f %{name}.schemas_list
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README INSTALL
%{_bindir}/devhelp
%{_datadir}/applications/devhelp.desktop
%{_datadir}/devhelp
%{_datadir}/icons/hicolor/*/apps/*.*
%{_libdir}/*.so.*
%dir %{_libdir}/gedit-2
%dir %{_libdir}/gedit-2/plugins
%{_libdir}/gedit-2/plugins/*
%{_sysconfdir}/gconf/schemas/* 

%files lang -f %{name}.lang

%files devel
%defattr(-, root, root)
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/*.*a
%{_libdir}/pkgconfig/*.pc

%changelog
* Tue Sep 23 2008 maw@suse.de
- Update to version 0.20.1:
  + Updated translations.
* Fri Sep 12 2008 maw@suse.de
- Update to version 0.20.0:
  + Bugs fixed: bgo#499050, bgo#537093, and bgo#539624
  + Updated translations
- Drop devhelp-xul19.patch and devhelp-bnc411497-xul19-crash.patch,
  because they have been upstreamed
- Add devhelp-nspr-includes.patch.
* Sat Aug 30 2008 mboman@novell.com
- Updated to version 0.19.1:
  + Add a GType for the DhLink boxed type.
  + Updated translations.
* Fri Jul 25 2008 vuntz@novell.com
- Add devhelp-bnc411497-xul19-crash.patch to fix crashes with xulrunner 1.9
  when copying or searching (bnc#411497, bnc#410592)
* Wed May 21 2008 maw@suse.de
- Add devhelp-xul19.patch (bnc#391839).
* Fri Mar 21 2008 jpr@suse.de
- Remove obsolete -devel requires
- Remove obsolete version check
* Mon Mar 03 2008 maw@suse.de
- Update to version 0.19:
  + Use proper size icon for close buttons in tabs (bgo#510984)
  + Polish the new Zoom UI (bgo #508510 and bgo#508513)
  + Specify an icon for the GEdit plugin (bgo#512000)
  + Updated translations
- Own %%{_datadir}/devhelp/books.
* Thu Feb 28 2008 ro@suse.de
- do not buildrequire gedit, add needed directories to filelist
  instead (caused a buildcycle across all of GNOME)
* Tue Jan 29 2008 maw@suse.de
- Update to version 0.17:
  + Dont run new instance on new display (bgo#354895)
  + New icons from Andreas Nilsson (bgo#463131)
  + Add zoom actions (bgo#144517)
  + Add close buttons to tabs (bgo#479306)
  + Fix build against xyulrunner 1.9 (bgo#499050)
  + Remove obsolete dependencies (libgnomeui and gnome-vfs,
  bgo#484896) and make libwnck optional
  + Use po/LINGUAS (bgo#464108)
  + Updated translations.
* Mon Sep 17 2007 sbrabec@suse.cz
- Updated to version 0.16:
  * Changed keybinding in GEdit plugin from F7 to F2 to avoid a
  conflict with GTK+ 2.12
  * Use theme colors for gecko 1.9 and later
  * Call g_thread_init
  * Add --focus-search command line option
  * Add typeahead searching
  * Update information about where books should be installed
  * Add missing mnemonics
  * Make deprecated keywords grey
  * Only search for books in the XDG data/home directories
  * Add advanced (book/page) search options
  * Improve libdevhelp
  * Add --version option
  * Fix mnemomics
  * Add a very simple gedit plugin
  * Add quit menu item
  * Build fixes and clean ups
  * Lots of Gecko build fixes and improvements
  * Open external links in browser
  * UI tweaks
  * Shiny new icon
  * Read books installed in XDG data dirs
  * Use correct category in desktop file
  * Tab support
  * Support for multiple windows
  * Parse the new gtk-doc format
  * Reuse devhelp windows from the current workspace only
  * Sync the contents tree with the actual selection
  * Smart case searching
  * Use book title + html title as window title
  * Improve build against various mozilla-derivates
  * updated translations
* Thu Aug 09 2007 maw@suse.de
- Add a %%files section for the -lang subpackage
- s#%%run_ldconfig#/sbin/ldconfig# in %%post and %%postun.
* Mon Aug 06 2007 mauro@suse.de
- Split out a -lang subpackage.
- Added %%fdupes stuff
* Wed Feb 07 2007 sbrabec@suse.cz
- Do not build unusable static libraries (#238552).
* Wed Jan 03 2007 sbrabec@suse.cz
- Prefix changed to /usr.
- Spec file cleanup.
* Wed Dec 20 2006 jhargadon@suse.de
- added gconf2 as a PreReq in the specfile (#225739)
* Thu Nov 30 2006 sbrabec@suse.cz
- Fixed xulrunner dependencies for older products.
* Tue Nov 07 2006 sbrabec@suse.cz
- Use exact xulrunner version 181 (#216100).
* Tue Sep 05 2006 aj@suse.de
- Cleanup BuildRequires.
* Fri Jul 07 2006 lrupp@suse.de
- Fixed mozilla/xulrunner/xulrunner180 dependencies
* Thu Apr 13 2006 jpr@suse.de
- Guard against initializing threads twice (#165486)
* Fri Feb 17 2006 sreeves@suse.de
- Update .desktop file (Name, GenericName, Comment, DocPath)
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Wed Nov 16 2005 sbrabec@suse.cz
- Fixed mozilla/xulrunner dependencies.
* Tue Oct 11 2005 ro@suse.de
- use mozilla-devel-packages in nfb
- try xulrunner if nothing else is found
* Tue Aug 16 2005 sbrabec@suse.cz
- Moved /opt/gnome/share/devhelp to gnome-filesystem.
- Fixed devel dependencies.
* Fri Aug 12 2005 sbrabec@suse.cz
- Fixed requirement to not require symbols provided only by
  mozilla-nss and mozilla-nspr packages (#98002).
- Fixed devel requirements.
* Wed May 11 2005 sbrabec@suse.cz
- Updated to version 0.10.
* Thu Apr 28 2005 sbrabec@suse.cz
- Install missing translation files.
* Fri Feb 18 2005 sbrabec@suse.cz
- Updated to version 0.9.3.
* Wed Oct 27 2004 mmj@suse.de
- Locale rename no to nb
* Wed Oct 13 2004 sbrabec@suse.cz
- Use gnome2-devel-packages in neededforbuild.
* Thu Sep 09 2004 clahey@suse.de
- Run ldconfig.
- Merge .spec files for pre and post 9.1.
* Tue Sep 07 2004 sbrabec@suse.cz
- Generated shared mime info.
* Wed May 12 2004 clahey@suse.de
- Added gnome-keyring-devel builddep.
* Thu Mar 18 2004 adrian@suse.de
- move menu entry into Documentation menu
* Fri Feb 20 2004 sbrabec@suse.cz
- Updated to version 0.8.1.
* Sat Jan 10 2004 adrian@suse.de
- builad as user
* Mon Jul 14 2003 sbrabec@suse.cz
- GNOME prefix change to /opt/gnome.
* Mon Jun 30 2003 sbrabec@suse.cz
- Updated to version 0.7.
* Thu Jun 19 2003 ro@suse.de
- added directory to filelist
* Mon Jun 02 2003 ro@suse.de
- run full autoreconf for new libtool
* Tue May 27 2003 sbrabec@suse.cz
- Initial SuSE version.