%define libname lib%{name} %define majver %(echo %version | cut -d. -f1-2) Name: devhelp Version: 2.32.0 Release: 1mamba Summary: API documentation browser for developers Group: Development/Tools Vendor: openmamba Distribution: openmamba Packager: gil URL: http://developer.imendio.com/projects/devhelp Source: http://ftp.acc.umu.se/pub/GNOME/sources/devhelp/%{majver}/devhelp-%{version}.tar.gz License: GPL BuildRequires: desktop-file-utils BuildRequires: xulrunner-devel BuildRequires: libnspr-devel BuildRequires: ImageMagick BuildRequires: intltool BuildRequires: GConf-devel BuildRequires: glibc-devel BuildRequires: libgcc BuildRequires: libglade-devel BuildRequires: libstartup-notification-devel BuildRequires: libstdc++6-devel BuildRequires: libxml2-devel BuildRequires: ORBit2-devel ## AUTOBUILDREQ-BEGIN BuildRequires: GConf-devel BuildRequires: gedit-devel BuildRequires: glibc-devel BuildRequires: libatk-devel BuildRequires: libcairo-devel BuildRequires: libfontconfig-devel BuildRequires: libfreetype-devel BuildRequires: libglib-devel BuildRequires: libgtk-devel BuildRequires: libpango-devel BuildRequires: libsoup-devel BuildRequires: libunique-devel BuildRequires: libwebkit-gtk-devel BuildRequires: libwnck-devel BuildRequires: libz-devel ## AUTOBUILDREQ-END BuildRequires: libpython26-devel BuildRoot: %{_tmppath}/%{name}-%{version}-root %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: Development/Libraries Requires: %{name} >= %{version} %description -n %{libname} this package contains dynamic libraries for devhelp. %package -n %{libname}-devel Summary: Static libraries, include files for devhelp Group: Development/Libraries Provides: %{libname}-devel = %{version}-%{release} Requires: %{name} = %{version}-%{release} %description -n %{libname}-devel Static library and headers file for devhelp. %package gedit-plugins Summary: Gedit Plugins for Devhelp Group: Applications/Text Requires: gedit Obsoletes: %{name}-plugins Provides: %{name}-plugins %description gedit-plugins Gedit plugins to use with Devhelp. %prep %setup -q for p in $(find . -name "*.py"); do sed -i 's|#!/usr/bin/python|#!%{__python26}|' $p sed -i 's|#!/usr/bin/env python|#!%{__python26}|' $p sed -i 's|#!python|#!%{__python26}|' $p sed -i 's|#!/usr/local/bin/python2.1|#!%{__python26}|' $p sed -i 's|#!/usr/local/bin/python|#!%{__python26}|' $p done %build %configure \ --disable-install-schemas \ PYTHON=%{__python26} # \ # --with-mozilla=libxul-embedding %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall %find_lang %{name} %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %pre if [ "$1" -gt 1 ]; then export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/devhelp.schemas > /dev/null || : fi %preun if [ "$1" -eq 0 ]; then export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/devhelp.schemas > /dev/null || : fi %post -n %{libname} -p /sbin/ldconfig %post export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/devhelp.schemas > /dev/null || : touch --no-create %{_datadir}/icons/hicolor >&/dev/null || : %postun if [ $1 -eq 0 ]; then gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || : fi %postun -n %{libname} -p /sbin/ldconfig %posttrans gtk-update-icon-cache %{_datadir}/icons/hicolor >&/dev/null || : %files -f %{name}.lang %defattr(-,root,root) %{_sysconfdir}/gconf/schemas/devhelp.schemas %{_bindir}/devhelp %{_datadir}/icons/hicolor/*/apps/devhelp.png %{_datadir}/icons/hicolor/scalable/apps/devhelp.svg %{_datadir}/applications/devhelp.desktop %dir %{_datadir}/devhelp %{_datadir}/devhelp/assistant/assistant.css %{_datadir}/devhelp/assistant/assistant.js %{_datadir}/devhelp/devhelp.defaults %{_datadir}/devhelp/ui/devhelp.builder %{_datadir}/devhelp/dtd/devhelp-1.dtd #%dir %{_datadir}/devhelp/images #%{_datadir}/devhelp/images/*.png %dir %{_datadir}/devhelp/ui %{_datadir}/devhelp/ui/window.ui %doc AUTHORS COPYING ChangeLog NEWS README %files -n %{libname} %defattr(-, root, root) %{_libdir}/*.so.* %files -n %{libname}-devel %defattr(-, root, root) %dir %{_includedir}/devhelp-*/devhelp %{_includedir}/devhelp-*/devhelp/*.h %{_libdir}/libdevhelp-*.la %{_libdir}/libdevhelp-*.so %{_exec_prefix}/lib/pkgconfig/*.pc %files gedit-plugins %defattr(-, root, root) %{_libdir}/gedit-2/plugins/devhelp.gedit-plugin %{_libdir}/gedit-2/plugins/devhelp/*.py* %changelog * Fri Oct 08 2010 gil 2.32.0-1mamba - update to 2.32.0 * Sat Jul 03 2010 gil 2.30.1-2mamba - changed xulrunner with libwebkit-gtk support * Mon Jun 21 2010 Automatic Build System 2.30.1-1mamba - automatic update to 2.30.1 by autodist * Sun May 30 2010 Automatic Build System 2.30.0-1mamba - automatic update to 2.30.0 by autodist * Sun Sep 27 2009 Silvan Calarco 2.28.0-1mamba - update to 2.28.0 * Sun Sep 27 2009 Silvan Calarco 0.22-1mamba - update to 0.22 * Mon Nov 24 2008 Silvan Calarco 0.21-1mamba - update to 0.21 * Sat Oct 04 2008 gil 0.20-1mamba - update to 0.20 * Thu Jul 31 2008 gil 0.18-1mamba - package created by autospec