1 Summary: API documentation browser for GNOME
2 Summary(pl): Przegl±darka dokumentacji API dla GNOME
7 Group: X11/Applications
8 Source0: http://ftp.gnome.org/pub/GNOME/sources/devhelp/0.12/%{name}-%{version}.tar.gz
9 # Source0-md5: e211ec1a75dba00d8e71a66e2ab2aec3
10 Patch0: %{name}-bookdir.patch
11 Patch1: %{name}-mozilla_includes.patch
12 Patch2: %{name}-desktop.patch
13 URL: http://www.imendio.com/projects/devhelp/
14 BuildRequires: GConf2-devel >= 2.14.0
15 BuildRequires: autoconf
16 BuildRequires: automake
17 BuildRequires: gnome-common >= 2.12.0
18 BuildRequires: gnome-vfs2-devel >= 2.15.91
19 BuildRequires: gtk+2-devel >= 2:2.10.1
20 BuildRequires: libglade2-devel >= 1:2.6.0
21 BuildRequires: libtool
22 BuildRequires: libwnck-devel >= 2.15.91
23 BuildRequires: mozilla-firefox-devel >= 1.5.0.6
24 BuildRequires: pkgconfig
26 BuildRequires: rpmbuild(macros) >= 1.311
27 BuildRequires: zlib-devel
28 Requires(post,preun): GConf2 >= 2.14.0
29 Requires(post,post): gtk+2 >= 2.10.1
30 Requires: %{name}-libs = %{version}-%{release}
31 %requires_eq mozilla-firefox
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34 # can be provided by mozilla or mozilla-embedded
35 %define _noautoreqdep libgtkembedmoz.so libxpcom.so
38 API documentation browser for GNOME.
41 Przegl±darka dokumentacji API dla GNOME.
44 Summary: Library to embed Devhelp in other applications
45 Summary(pl): Biblioteka do osadzania Devhelp w innych aplikacjach
49 Library of Devhelp for embedding into other applications.
51 %description libs -l pl
52 Biblioteka Devhelp do osadzania w innych aplikacjach.
55 Summary: Headers for Devhelp library
56 Summary(pl): Pliki nag³ówkowe biblioteki Devhelp
57 Group: Development/Libraries
58 Requires: %{name}-libs = %{version}-%{release}
61 Headers for Devhelp library.
63 %description devel -l pl
64 Pliki nag³ówkowe biblioteki Devhelp.
67 Summary: Static Devhelp library
68 Summary(pl): Statyczna biblioteka Devhelp
69 Group: Development/Libraries
70 Requires: %{name}-devel = %{version}-%{release}
73 Static version of Devhelp library.
75 %description static -l pl
76 Statyczna biblioteka Devhelp.
78 %package -n gedit2-plugin-devhelp
79 Summary: Devhelp plugin for Gedit editor
80 Summary(pl): Wtyczka devhelpa dla edytora Gedit
81 Group: X11/Applications
82 Requires: %{name} = %{version}-%{release}
85 %description -n gedit2-plugin-devhelp
86 Allows to browse API documentation in Gedit.
88 %description -n gedit2-plugin-devhelp -l pl
89 Umo¿liwia przegl±danie dokumentacji API w Gedit.
104 --disable-install-schemas
108 rm -rf $RPM_BUILD_ROOT
109 install -d $RPM_BUILD_ROOT%{_sysconfdir}/gconf \
110 $RPM_BUILD_ROOT%{_datadir}/%{name}/{books,specs}
113 DESTDIR=$RPM_BUILD_ROOT
115 rm -rf $RPM_BUILD_ROOT%{_datadir}/mime-info
116 rm -f $RPM_BUILD_ROOT%{_libdir}/gedit-2/plugins/%{name}/*.py
121 rm -rf $RPM_BUILD_ROOT
124 %gconf_schema_install devhelp.schemas
125 %update_icon_cache hicolor
128 %gconf_schema_uninstall devhelp.schemas
131 %update_icon_cache hicolor
133 %post libs -p /sbin/ldconfig
134 %postun libs -p /sbin/ldconfig
136 %files -f %{name}.lang
137 %defattr(644,root,root,755)
138 %doc AUTHORS ChangeLog NEWS README TODO
139 %attr(755,root,root) %{_bindir}/devhelp*
141 %{_desktopdir}/*.desktop
142 %{_iconsdir}/hicolor/*/apps/*
143 %{_sysconfdir}/gconf/schemas/devhelp.schemas
146 %defattr(644,root,root,755)
147 %attr(755,root,root) %{_libdir}/lib*.so.*.*
150 %defattr(644,root,root,755)
151 %attr(755,root,root) %{_libdir}/lib*.so
153 %{_pkgconfigdir}/*.pc
157 %defattr(644,root,root,755)
160 %files -n gedit2-plugin-devhelp
161 %defattr(644,root,root,755)
162 %dir %{_libdir}/gedit-2/plugins/%{name}
163 %{_libdir}/gedit-2/plugins/%{name}.gedit-plugin
164 %{_libdir}/gedit-2/plugins/%{name}/*.py[oc]