- Incorporate suggestions from package review.

This commit is contained in:
Matthew Barnes 2007-02-04 16:16:06 +00:00
parent 37e79028ee
commit 0ee6425a7e

View File

@ -4,12 +4,13 @@
Name: devhelp Name: devhelp
Version: 0.13 Version: 0.13
Release: 1%{?dist} Release: 2%{?dist}
License: GPL License: GPL
Group: Development/Tools Group: Development/Tools
Summary: API document browser Summary: API document browser
Source: devhelp-%{version}.tar.bz2 URL: http://developer.imendio.com/projects/devhelp
BuildRoot: %{_tmppath}/devhelp-%{version}-root Source: http://ftp.gnome.org/pub/GNOME/sources/devhelp/%{version}/devhelp-%{version}.tar.bz2
BuildRoot: %{_tmppath}/devhelp-%{version}-%{release}-root
### Dependencies ### ### Dependencies ###
@ -18,22 +19,13 @@ Requires(preun): GConf2 >= 2.14
Requires(post): GConf2 >= 2.14 Requires(post): GConf2 >= 2.14
Requires: gecko-libs = %{gecko_ver} Requires: gecko-libs = %{gecko_ver}
Requires: gnome-vfs2 >= 2.2.0
Requires: gtk2 >= 2.2.0
Requires: libglade2 >= 2.2.0
Requires: libgnomeui >= 2.2.0
### Build Dependencies ### ### Build Dependencies ###
BuildRequires: GConf2-devel >= 2.6.0
BuildRequires: desktop-file-utils >= 0.3 BuildRequires: desktop-file-utils >= 0.3
BuildRequires: gecko-devel = %{gecko_ver} BuildRequires: gecko-devel = %{gecko_ver}
BuildRequires: gettext BuildRequires: gettext
BuildRequires: glib2-devel >= 2.9.5
BuildRequires: gnome-vfs2-devel >= 2.2.0
BuildRequires: gtk2-devel >= 2.2.0
BuildRequires: intltool BuildRequires: intltool
BuildRequires: libglade2-devel >= 2.2.0
BuildRequires: libgnomeui-devel >= 2.2.0 BuildRequires: libgnomeui-devel >= 2.2.0
BuildRequires: libwnck-devel >= 2.10.0 BuildRequires: libwnck-devel >= 2.10.0
@ -51,13 +43,13 @@ Requires: libwnck-devel >= 2.10.0
Requires: pkgconfig Requires: pkgconfig
%description devel %description devel
Library of Devhelp for embedding into other applications. Library of Devhelp for embedding into other applications
%prep %prep
%setup -q -n devhelp-%{version} %setup -q -n devhelp-%{version}
%build %build
%configure %configure --disable-static
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
@ -74,7 +66,6 @@ desktop-file-install --vendor gnome \
$RPM_BUILD_ROOT%{_datadir}/applications/devhelp.desktop $RPM_BUILD_ROOT%{_datadir}/applications/devhelp.desktop
find ${RPM_BUILD_ROOT} -type f -name "*.la" -exec rm -f {} ';' find ${RPM_BUILD_ROOT} -type f -name "*.la" -exec rm -f {} ';'
find ${RPM_BUILD_ROOT} -type f -name "*.a" -exec rm -f {} ';'
rm $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/icon-theme.cache rm $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/icon-theme.cache
@ -97,7 +88,7 @@ if [ "$1" -eq 0 ]; then
gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/devhelp.schemas > /dev/null || : gconftool-2 --makefile-uninstall-rule %{_sysconfdir}/gconf/schemas/devhelp.schemas > /dev/null || :
fi fi
%post %post -p /sbin/ldconfig
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/devhelp.schemas > /dev/null || : gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/devhelp.schemas > /dev/null || :
touch --no-create %{_datadir}/icons/hicolor touch --no-create %{_datadir}/icons/hicolor
@ -105,7 +96,7 @@ if [ -x /usr/bin/gtk-update-icon-cache ]; then
gtk-update-icon-cache -q %{_datadir}/icons/hicolor gtk-update-icon-cache -q %{_datadir}/icons/hicolor
fi fi
%postun %postun -p /sbin/ldconfig
touch --no-create %{_datadir}/icons/hicolor touch --no-create %{_datadir}/icons/hicolor
if [ -x /usr/bin/gtk-update-icon-cache ]; then if [ -x /usr/bin/gtk-update-icon-cache ]; then
gtk-update-icon-cache -q %{_datadir}/icons/hicolor gtk-update-icon-cache -q %{_datadir}/icons/hicolor
@ -134,6 +125,9 @@ fi
%{_libdir}/pkgconfig/* %{_libdir}/pkgconfig/*
%changelog %changelog
* Sun Feb 04 2007 Matthew Barnes <mbarnes@redhat.com> - 0.13-2.fc7
- Incorporate suggestions from package review.
* Sat Feb 03 2007 Matthew Barnes <mbarnes@redhat.com> - 0.13-1.fc7 * Sat Feb 03 2007 Matthew Barnes <mbarnes@redhat.com> - 0.13-1.fc7
- Update to 0.13 - Update to 0.13
- Clean up the spec file. - Clean up the spec file.