2004-09-09 04:11:34 +00:00
|
|
|
%define mozver %(rpm -q mozilla --qf "%%{name} = %%{epoch}:%%{version}")
|
|
|
|
ExclusiveArch: i386 x86_64 ppc s390
|
|
|
|
|
2004-09-09 04:10:14 +00:00
|
|
|
Summary: API document browser
|
|
|
|
Name: devhelp
|
2004-09-09 04:11:34 +00:00
|
|
|
Version: 0.9
|
|
|
|
Release: 3
|
2004-09-09 04:10:14 +00:00
|
|
|
License: GPL
|
|
|
|
Group: Development/Tools
|
2004-09-09 04:10:40 +00:00
|
|
|
Url: http://www.imendio.com/projects/devhelp/
|
|
|
|
Source: %{name}-%{version}.tar.bz2
|
2004-09-09 04:11:34 +00:00
|
|
|
Patch1: devhelp-0.9-ld-library-path.patch
|
2004-09-09 04:10:14 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
|
|
Requires: gtk2 >= 2.2.0
|
|
|
|
Requires: libgnomeui >= 2.2.0
|
|
|
|
Requires: gnome-vfs2 >= 2.2.0
|
2004-09-09 04:11:34 +00:00
|
|
|
Requires: libglade2 >= 2.2.0
|
|
|
|
Requires: %mozver
|
2004-09-09 04:10:14 +00:00
|
|
|
|
|
|
|
BuildRequires: gtk2-devel >= 2.2.0
|
|
|
|
BuildRequires: libgnomeui-devel >= 2.2.0
|
|
|
|
BuildRequires: gnome-vfs2-devel >= 2.2.0
|
2004-09-09 04:11:34 +00:00
|
|
|
BuildRequires: libglade2-devel >= 2.2.0
|
|
|
|
BuildRequires: mozilla-devel >= 1.6
|
|
|
|
BuildRequires: mozilla
|
2004-09-09 04:10:14 +00:00
|
|
|
BuildRequires: intltool
|
2004-09-09 04:10:40 +00:00
|
|
|
BuildRequires: gettext
|
|
|
|
BuildRequires: desktop-file-utils
|
2004-09-09 04:10:14 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
A API document browser for GNOME 2.
|
|
|
|
|
2004-09-09 04:10:40 +00:00
|
|
|
%package devel
|
|
|
|
Summary: Library to embed Devhelp in other applications.
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %name = %{PACKAGE_VERSION}
|
|
|
|
Requires: gtk2-devel >= 2.2.0
|
|
|
|
Requires: libgnomeui-devel >= 2.2.0
|
|
|
|
Requires: gnome-vfs2-devel >= 2.2.0
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Library of Devhelp for embedding into other applications.
|
|
|
|
|
2004-09-09 04:10:14 +00:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2004-09-09 04:11:34 +00:00
|
|
|
%patch1 -p1 -b .ld-library-path
|
2004-09-09 04:10:14 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
intltoolize
|
|
|
|
%configure --with-html-widget=gtkhtml2
|
|
|
|
|
|
|
|
make
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2004-09-09 04:11:34 +00:00
|
|
|
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
|
2004-09-09 04:10:14 +00:00
|
|
|
%makeinstall PREFIX=$RPM_BUILD_ROOT%{_prefix} install
|
2004-09-09 04:11:34 +00:00
|
|
|
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
|
2004-09-09 04:10:14 +00:00
|
|
|
|
|
|
|
desktop-file-install --vendor gnome \
|
|
|
|
--delete-original \
|
|
|
|
--dir $RPM_BUILD_ROOT%{_datadir}/applications \
|
|
|
|
--add-category X-Red-Hat-Base \
|
|
|
|
$RPM_BUILD_ROOT%{_datadir}/applications/devhelp.desktop
|
|
|
|
|
2004-09-09 04:10:40 +00:00
|
|
|
find ${RPM_BUILD_ROOT} -type f -name "*.la" -exec rm -f {} ';'
|
|
|
|
find ${RPM_BUILD_ROOT} -type f -name "*.a" -exec rm -f {} ';'
|
|
|
|
|
2004-09-09 04:10:14 +00:00
|
|
|
%find_lang %name
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2004-09-09 04:11:34 +00:00
|
|
|
%post
|
|
|
|
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
|
|
|
SCHEMAS="devhelp.schemas"
|
|
|
|
for S in $SCHEMAS; do
|
|
|
|
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S > /dev/null
|
|
|
|
done
|
|
|
|
|
2004-09-09 04:10:14 +00:00
|
|
|
%files -f %{name}.lang
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc AUTHORS COPYING ChangeLog NEWS README INSTALL
|
|
|
|
|
|
|
|
%{_bindir}/devhelp
|
2004-09-09 04:11:34 +00:00
|
|
|
%{_bindir}/devhelp-bin
|
2004-09-09 04:10:40 +00:00
|
|
|
%{_libdir}/libdevhelp*.so.*
|
2004-09-09 04:10:14 +00:00
|
|
|
|
|
|
|
%{_datadir}/applications/*.desktop
|
|
|
|
%{_datadir}/devhelp
|
|
|
|
%{_datadir}/pixmaps/*
|
|
|
|
%{_datadir}/mime-info/devhelp.mime
|
|
|
|
%{_datadir}/mime-info/devhelp.keys
|
2004-09-09 04:11:34 +00:00
|
|
|
%{_sysconfdir}/gconf/schemas/*.schemas
|
2004-09-09 04:10:14 +00:00
|
|
|
|
2004-09-09 04:10:40 +00:00
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_prefix}/include/devhelp-1.0
|
|
|
|
%{_libdir}/libdevhelp*.so
|
|
|
|
%{_libdir}/pkgconfig/*
|
|
|
|
|
2004-09-09 04:10:14 +00:00
|
|
|
%changelog
|
2004-09-09 04:11:34 +00:00
|
|
|
* Wed Apr 21 2004 Colin Walters <walters@redhat.com> 0.9-3
|
|
|
|
- Update patch to avoid (unlikely) security issue noticed
|
|
|
|
by Jeremy Katz.
|
|
|
|
|
|
|
|
* Mon Apr 15 2004 Colin Walters <walters@redhat.com> 0.9-2
|
|
|
|
- Apply patch from George Karabin <gkarabin@pobox.com> to
|
|
|
|
export LD_LIBRARY_PATH (closes bug 120220).
|
|
|
|
|
|
|
|
* Fri Apr 2 2004 Mark McLoughlin <markmc@redhat.com> 0.9-1
|
|
|
|
- Update to 0.9
|
|
|
|
- Install the schemas correctly
|
|
|
|
- Package /usr/bin/devhelp-bin
|
|
|
|
- Update requires/buildrequires
|
|
|
|
- Only build on platforms where mozilla is available
|
|
|
|
|
2004-09-09 04:10:40 +00:00
|
|
|
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
|
|
|
* Thu Feb 26 2004 Alexander Larsson <alexl@redhat.com> 0.8.1-1
|
|
|
|
- update to 0.8.1
|
|
|
|
|
|
|
|
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
|
|
|
* Mon Dec 1 2003 Jonathan Blandford <jrb@redhat.com> 0.7.0-1
|
|
|
|
- new version
|
|
|
|
- Remove .la and .a files.
|
|
|
|
|
2004-09-09 04:10:14 +00:00
|
|
|
* Wed Jul 30 2003 Jonathan Blandford <jrb@redhat.com>
|
|
|
|
- remove original devhelp desktop file.
|
|
|
|
|
|
|
|
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
|
|
|
|
- rebuilt
|
|
|
|
|
|
|
|
* Sat May 24 2003 Florian La Roche <Florian.LaRoche@redhat.de>
|
|
|
|
- add find_lang
|