devhelp/devhelp.spec

109 lines
2.7 KiB
RPMSpec
Raw Normal View History

Summary: API document browser
Name: devhelp
Version: 0.8.1
Release: 1.1
License: GPL
Group: Development/Tools
Url: http://www.imendio.com/projects/devhelp/
Source: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-root
Requires: gtk2 >= 2.2.0
Requires: libgnomeui >= 2.2.0
Requires: gtkhtml2 >= 2.0.0
Requires: gnome-vfs2 >= 2.2.0
BuildRequires: gtk2-devel >= 2.2.0
BuildRequires: libgnomeui-devel >= 2.2.0
BuildRequires: gtkhtml2-devel >= 2.2.0
BuildRequires: gnome-vfs2-devel >= 2.2.0
BuildRequires: intltool
BuildRequires: gettext
BuildRequires: desktop-file-utils
%description
A API document browser for GNOME 2.
%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.
%prep
%setup -q
%build
intltoolize
%configure --with-html-widget=gtkhtml2
make
%install
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
%makeinstall PREFIX=$RPM_BUILD_ROOT%{_prefix} install
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
find ${RPM_BUILD_ROOT} -type f -name "*.la" -exec rm -f {} ';'
find ${RPM_BUILD_ROOT} -type f -name "*.a" -exec rm -f {} ';'
%find_lang %name
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README INSTALL
%{_bindir}/devhelp
%{_libdir}/libdevhelp*.so.*
%{_datadir}/applications/*.desktop
%{_datadir}/devhelp
%{_datadir}/pixmaps/*
%{_datadir}/mime-info/devhelp.mime
%{_datadir}/mime-info/devhelp.keys
%files devel
%defattr(-,root,root)
%{_prefix}/include/devhelp-1.0
%{_libdir}/libdevhelp*.so
%{_libdir}/pkgconfig/*
%changelog
* 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.
* 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