%define _requires_exceptions libnspr4\\|libplc4\\|libplds4\\|libnss\\|libsmime3\\|libsoftokn\\|libssl3\\|libgtkembedmoz\\|libxpcom %define lib_major 0 %define api_version 1 %define libname %mklibname %{name}- %{api_version} %{lib_major} %define libnamedev %mklibname -d %{name}- %{api_version} %define xulrunner 1.9 %define xullibname %mklibname xulrunner %xulrunner %define xulver %(rpm -q --queryformat %%{VERSION} %xullibname) Summary: API documentation browser for developers Name: devhelp Version: 0.21 %define subrel 10 Release: %mkrel 3 License: GPLv2+ Group: Development/Other URL: http://developer.imendio.com/projects/devhelp Source0: http://ftp.gnome.org/pub/GNOME/sources/devhelp/%{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot Requires: %xullibname = %xulver BuildRequires: libwnck-devel BuildRequires: gtk+2-devel >= 2.3.1 BuildRequires: libglade2.0-devel BuildRequires: libGConf2-devel BuildRequires: xulrunner-devel-unstable >= %xulrunner BuildRequires: ImageMagick BuildRequires: intltool BuildRequires: desktop-file-utils Requires(post): desktop-file-utils Requires(postun): desktop-file-utils %description Devhelp is an API documentation browser for GNOME 2. It works natively with Gtk-doc (System used in GTK+ and GNOME for documentating APIs) and it is possible to create books for other documentation as well. %package -n %{libname} Summary: Dynamic libraries for devhelp Group: %{group} Requires: %{name} >= %{version} %description -n %{libname} this package contains dynamic libraries for devhelp. %package -n %{libnamedev} Summary: Static libraries, include files for devhelp Group: Development/GNOME and GTK+ Provides: %{name}-devel = %{version}-%{release} Provides: lib%{name}-%{api_version}-devel = %{version}-%{release} Requires: %{libname} = %{version}-%{release} Requires: %{name} = %{version}-%{release} Obsoletes: %mklibname -d %{name}- 1 0 %description -n %{libnamedev} Static library and headers file for devhelp. %package -n %{name}-plugins Summary: Gedit Plugins for Devhelp Group: Editors Requires: gedit %description -n %{name}-plugins Gedit plugins to use with Devhelp. %prep %setup -q %build %configure2_5x --with-gecko=libxul-embedding %make %install rm -rf %{buildroot} %makeinstall_std desktop-file-install --vendor="" \ --remove-category="Application" \ --add-category="X-MandrivaLinux-MoreApplications-Development-Tools" \ --dir $RPM_BUILD_ROOT%{_datadir}/applications $RPM_BUILD_ROOT%{_datadir}/applications/devhelp.desktop # owns this dir mkdir -p %{buildroot}%{_datadir}/%{name}/books %find_lang %{name} %clean rm -rf %{buildroot} %post %define schemas devhelp %post_install_gconf_schemas %schemas %preun %preun_uninstall_gconf_schemas %schemas %postun %if %mdkversion < 200900 %post -n %{libname} -p /sbin/ldconfig %endif %if %mdkversion < 200900 %postun -n %{libname} -p /sbin/ldconfig %endif %files -f %{name}.lang %defattr(-, root, root) %doc AUTHORS COPYING ChangeLog NEWS README INSTALL %_sysconfdir/gconf/schemas/devhelp.schemas %{_bindir}/* %{_datadir}/applications/* %{_datadir}/devhelp %{_datadir}/icons/hicolor/* %files -n %{libname} %defattr(-, root, root) %{_libdir}/libdevhelp-%{api_version}.so.%{lib_major}* %files -n %{libnamedev} %defattr(-, root, root) %{_libdir}/*.so %{_libdir}/*a %{_libdir}/pkgconfig/* %{_includedir}/devhelp-1.0 %files -n %{name}-plugins %defattr(-, root, root) %{_libdir}/gedit-2/plugins/ %changelog * Sat Sep 19 2009 Oden Eriksson <oeriksson@mandriva.com> 0.21-3.10mdv2009.0 - rebuilt for firefox-3.0.14 * Fri Aug 07 2009 Eugeni Dodonov <eugeni@mandriva.com> 0.21-3.9mdv2009.0 rebuild for new firefox * Wed Jul 29 2009 Eugeni Dodonov <eugeni@mandriva.com> 0.21-3.8mdv2009.0 - build for updates * Mon Jun 15 2009 Eugeni Dodonov <eugeni@mandriva.com> 0.21-3.7mdv2009.0 - build for updates * Thu May 07 2009 Gustavo De Nardin <gustavodn@mandriva.com> 0.21-3.6mdv2009.0 - rebuild for new firefox-3.0.10/xulrunner-1.9.0.10 * Tue Mar 31 2009 Gustavo De Nardin <gustavodn@mandriva.com> 0.21-3.5mdv2009.0 - build for xulrunner 1.9.0.8 update * Thu Mar 12 2009 Oden Eriksson <oeriksson@mandriva.com> 0.21-3.4mdv2009.0 - rebuilt for firefox 3.0.7 update * Fri Feb 13 2009 Gustavo De Nardin <gustavodn@mandriva.com> 0.21-3.3mdv2009.0 - build for firefox 3.0.6 update * Wed Dec 17 2008 Vincent Danen <vdanen@mandriva.com> 0.21-3.2mdv2009.0 - rebuild for xulrunner 1.9.0.5 update * Fri Nov 14 2008 Gustavo De Nardin <gustavodn@mandriva.com> 0.21-3.1mdv2009.0 - rebuild for xulrunner 1.9.0.4 update * Mon Sep 29 2008 Götz Waschk <waschk@mandriva.org> 0.21-3mdv2009.0 + Revision: 289229 - rebuild for new xulrunner * Fri Sep 26 2008 Tiago Salem <salem@mandriva.com.br> 0.21-2mdv2009.0 + Revision: 288707 - add strict version requires to xulrunner * Mon Sep 22 2008 Götz Waschk <waschk@mandriva.org> 0.21-1mdv2009.0 + Revision: 286809 - new version * Mon Sep 08 2008 Götz Waschk <waschk@mandriva.org> 0.20-1mdv2009.0 + Revision: 282634 - new version - drop patches - fix xulrunner build - update license * Wed Jul 30 2008 Götz Waschk <waschk@mandriva.org> 0.19.1-7mdv2009.0 + Revision: 254927 - build with xulrunner * Wed Jul 16 2008 Oden Eriksson <oeriksson@mandriva.com> 0.19.1-6mdv2009.0 + Revision: 236369 - rebuilt for mozilla-firefox-2.0.0.16 * Thu Jul 03 2008 Tiago Salem <salem@mandriva.com.br> 0.19.1-5mdv2009.0 + Revision: 231245 - Rebuild for firefox 2.0.0.15 + Pixel <pixel@mandriva.com> - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers + Funda Wang <fundawang@mandriva.org> - fix url * Mon May 26 2008 Götz Waschk <waschk@mandriva.org> 0.19.1-4mdv2009.0 + Revision: 211317 - new version * Wed Apr 30 2008 Funda Wang <fundawang@mandriva.org> 0.19-4mdv2009.0 + Revision: 199366 - rebuild with latest FF * Wed Mar 26 2008 Götz Waschk <waschk@mandriva.org> 0.19-3mdv2008.1 + Revision: 190444 - rebuild for firefox 2.0.0.13 * Sat Feb 09 2008 Funda Wang <fundawang@mandriva.org> 0.19-2mdv2008.1 + Revision: 164624 - rebuild for new FF * Thu Feb 07 2008 Götz Waschk <waschk@mandriva.org> 0.19-1mdv2008.1 + Revision: 163554 - new version * Wed Jan 30 2008 Götz Waschk <waschk@mandriva.org> 0.18-1mdv2008.1 + Revision: 160191 - new version * Mon Jan 07 2008 Götz Waschk <waschk@mandriva.org> 0.17-1mdv2008.1 + Revision: 146329 - new version + Olivier Blin <oblin@mandriva.com> - restore BuildRoot + Thierry Vignaud <tvignaud@mandriva.com> - kill re-definition of %%buildroot on Pixel's request * Wed Dec 12 2007 Götz Waschk <waschk@mandriva.org> 0.16.1-4mdv2008.1 + Revision: 117693 - rebuild for new firefox * Thu Nov 08 2007 Götz Waschk <waschk@mandriva.org> 0.16.1-3mdv2008.1 + Revision: 106854 - rebuild for new firefox * Thu Oct 18 2007 Funda Wang <fundawang@mandriva.org> 0.16.1-2mdv2008.1 + Revision: 99852 - rebuild against FF 2.0.0.7 * Sat Oct 06 2007 Götz Waschk <waschk@mandriva.org> 0.16.1-1mdv2008.1 + Revision: 95659 - new version * Mon Sep 10 2007 Götz Waschk <waschk@mandriva.org> 0.16-1mdv2008.0 + Revision: 84196 - new version * Wed Aug 01 2007 Götz Waschk <waschk@mandriva.org> 0.15-3mdv2008.0 + Revision: 57615 - new devel name * Tue Jun 19 2007 Götz Waschk <waschk@mandriva.org> 0.15-2mdv2008.0 + Revision: 41353 - new version * Wed May 16 2007 Götz Waschk <waschk@mandriva.org> 0.14-1mdv2008.0 + Revision: 27199 - new version - fix file list - drop oldskool menu * Fri Mar 23 2007 Götz Waschk <waschk@mandriva.org> 0.13-3mdv2007.1 + Revision: 148369 - rebuild for new firefox * Wed Feb 28 2007 Götz Waschk <waschk@mandriva.org> 0.13-2mdv2007.1 + Revision: 126930 - rebuild - new version - drop patch - fix build * Fri Jan 12 2007 Frederic Crozat <fcrozat@mandriva.com> 0.12-7mdv2007.1 + Revision: 107781 - Rebuild with FF 2.0.0.1 * Tue Oct 17 2006 Götz Waschk <waschk@mandriva.org> 0.12-6mdv2006.0 + Revision: 65544 - Import devhelp * Tue Oct 17 2006 Götz Waschk <waschk@mandriva.org> 0.12-6mdv2007.1 - unpack patch - fix buildrequires * Sat Sep 16 2006 Frederic Crozat <fcrozat@mandriva.com> 0.12-5mdv2007.0 - Fix menu category - Rebuild with latest firefox * Wed Sep 13 2006 Frederic Crozat <fcrozat@mandriva.com> 0.12-4mdv2007.0 - Patch1 (CVS): various bug fixes from CVS * Sat Aug 05 2006 Jerome Soyer <saispo@mandriva.org> 0.12-3mdv2007.0 - Rebuild for latest FF * Mon Jul 31 2006 Jerome Soyer <saispo@mandriva.org> 0.12-2mdv2007.0 - Rebuild for latest FF * Sun Jul 30 2006 Jerome Soyer <saispo@mandriva.org> 0.12-1mdv2007.0 - New release 0.12 * Mon Jun 26 2006 trem <trem@mandriva.org> 0.11-5mdv2007.0 - rebuild with latest FF * Sat Jun 10 2006 Frederic Crozat <fcrozat@mandriva.com> 0.11-4mdv2007.0 - rebuild with latest FF * Sat May 06 2006 Götz Waschk <waschk@mandriva.org> 0.11-3mdk - fix buildrequires * Fri May 05 2006 Frederic Crozat <fcrozat@mandriva.com> 0.11-2mdk - Rebuild with latest firefox * Sat Apr 29 2006 Jerome Soyer <saispo@mandriva.org> 0.11-1mdk - New release 0.11 * Sat Apr 22 2006 Frederic Crozat <fcrozat@mandriva.com> 0.10-8mdk - Rebuild with latest firefox * Mon Feb 06 2006 Oden Eriksson <oeriksson@mandriva.com> 0.10-7mdk - rebuild * Tue Jan 10 2006 Frederic Crozat <fcrozat@mandriva.com> 0.10-6mdk - mkrel - Rebuild with FF 1.5 - replace hardcoded version of firefox with the one available at compile time * Wed Oct 26 2005 Frederic Crozat <fcrozat@mandriva.com> 0.10-5mdk - Rebuild with FF 1.0.7 * Sat Jul 30 2005 Frederic Crozat <fcrozat@mandriva.com> 0.10-4mdk - Rebuild with FF 1.0.6 * Thu May 26 2005 Frederic Crozat <fcrozat@mandriva.com> 0.10-3mdk - Rebuild with FF 1.0.4 * Fri May 20 2005 Lenny Cartier <lenny@mandrakesoft.com> 0.10-2mdk - used requires_exceptions to be able to install (nspr & moz provide pb) * Tue May 10 2005 Frederic Crozat <fcrozat@mandriva.com> 0.10-1mdk - Release 0.10 * Fri Mar 25 2005 Frederic Crozat <fcrozat@mandrakesoft.com> 0.9.3-7mdk - Rebuild with firefox 1.0.2 * Wed Mar 02 2005 Frederic Crozat <fcrozat@mandrakesoft.com> 0.9.3-6mdk - Rebuild with firefox 1.0.1 * Tue Feb 22 2005 Frederic Crozat <fcrozat@mandrakesoft.com> 0.9.3-5mdk - Patch0: allow build with firefox - Build with firefox * Wed Jan 05 2005 Frederic Crozat <fcrozat@mandrakesoft.com> 0.9.3-4mdk - Rebuild with latest howl * Mon Dec 20 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 0.9.3-3mdk - Rebuild with mozilla 1.7.5 * Mon Nov 22 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 0.9.3-2mdk - Rebuild with mozilla 1.7.3 (Mdk bug #12460) * Sat Oct 23 2004 Götz Waschk <waschk@linux-mandrake.com> 0.9.3-1mdk - drop patch - New release 0.9.3 * Tue Sep 28 2004 Goetz Waschk <waschk@linux-mandrake.com> 0.9.2-1mdk - New release 0.9.2 * Fri Aug 27 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 0.9.1-3mdk - Fix menu * Thu Aug 19 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 0.9.1-2mdk - Rebuild with mozilla 1.7.2 * Mon Jul 26 2004 Götz Waschk <waschk@linux-mandrake.com> 0.9.1-1mdk - drop patch 1 - fix source URL - New release 0.9.1 * Wed Jul 21 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 0.9-5mdk - Rebuild against mozilla 1.7 final * Sun Jun 06 2004 Abel Cheung <deaddog@deaddog.org> 0.9-4mdk - Rebuild with new gcc * Mon May 31 2004 Abel Cheung <deaddog@deaddog.org> 0.9-3mdk - [DIRM] - enable libtoolize * Sat May 01 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 0.9-2mdk - Patch0 : add includes for latest mozilla - Enforce mozilla dependency, so we notice when mozilla release has changed * Thu Apr 08 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 0.9-1mdk - Release 0.9 (with Götz help) - add gconf schemas - needs new gtk - requires mozilla instead of gtkhtml