1 %define minmozver 5:1.7
2 Summary: DevHelp is a developer's help program for GNOME
3 Summary(pl): Program pomocy dla programistów GNOME
8 Group: X11/Applications
9 Source0: http://ftp.gnome.org/pub/gnome/sources/%{name}/0.9/%{name}-%{version}.tar.bz2
10 # Source0-md5: 71833b565e83d5f23d012b2691d73b29
11 Patch0: %{name}-bookdir.patch
12 Patch1: %{name}-mozilla.patch
13 Patch2: %{name}-mozilla_includes.patch
14 Patch3: %{name}-desktop.patch
15 URL: http://www.imendio.com/projects/devhelp/
16 BuildRequires: GConf2-devel
17 BuildRequires: autoconf
18 BuildRequires: automake
19 BuildRequires: gnome-common >= 2.8.0
20 BuildRequires: gnome-vfs2-devel >= 2.4.0
21 BuildRequires: gtk+2-devel >= 2:2.4.4
22 BuildRequires: libglade2-devel >= 2.0.0
23 BuildRequires: libgnomeui-devel >= 2.4.0
24 BuildRequires: libtool
25 BuildRequires: mozilla-devel >= %{minmozver}
26 BuildRequires: zlib-devel
27 Requires(post,postun): GConf2
28 Requires: %{name}-libs = %{version}-%{release}
29 Requires: mozilla = %(rpm -q --qf '%{EPOCH}:%{VERSION}' --whatprovides mozilla)
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 # can be provided by mozilla or mozilla-embedded
33 %define _noautoreqdep libgtkembedmoz.so libxpcom.so
36 DevHelp is a developer's help program for GNOME.
39 Program pomocy dla programistów GNOME.
42 Summary: Library to embed Devhelp in other applications
43 Summary(pl): Biblioteka do osadzania Devhelp w innych aplikacjach
47 Library of Devhelp for embedding into other applications..
49 %description libs -l pl
50 Biblioteka Devhelp do osadzania w innych aplikacjach..
53 Summary: Headers for Devhelp library
54 Summary(pl): Pliki nag³ówkowe biblioteki Devhelp
55 Group: Development/Libraries
56 Requires: %{name}-libs = %{version}-%{release}
59 Headers for Devhelp library.
61 %description devel -l pl
62 Pliki nag³ówkowe biblioteki Devhelp.
65 Summary: Static Devhelp library
66 Summary(pl): Statyczna biblioteka Devhelp
67 Group: Development/Libraries
68 Requires: %{name}-devel = %{version}-%{release}
71 Static version of Devhelp library.
73 %description static -l pl
74 Statyczna biblioteka Devhelp.
90 --disable-install-schemas
94 rm -rf $RPM_BUILD_ROOT
95 install -d $RPM_BUILD_ROOT%{_sysconfdir}/gconf \
96 $RPM_BUILD_ROOT%{_datadir}/%{name}/{books,specs}
99 DESTDIR=$RPM_BUILD_ROOT
101 rm -r $RPM_BUILD_ROOT%{_datadir}/locale/no
106 rm -rf $RPM_BUILD_ROOT
109 %gconf_schema_install
112 %gconf_schema_install
114 %post libs -p /sbin/ldconfig
115 %postun libs -p /sbin/ldconfig
117 %files -f %{name}.lang
118 %defattr(644,root,root,755)
119 %doc AUTHORS ChangeLog NEWS README TODO
120 %attr(755,root,root) %{_bindir}/devhelp*
122 %{_datadir}/mime-info/*
123 %{_desktopdir}/*.desktop
125 %{_sysconfdir}/gconf/schemas/*
128 %defattr(644,root,root,755)
129 %attr(755,root,root) %{_libdir}/lib*.so.*.*
132 %defattr(644,root,root,755)
133 %attr(755,root,root) %{_libdir}/lib*.so
135 %{_pkgconfigdir}/*.pc
139 %defattr(644,root,root,755)