]>
Commit | Line | Data |
---|---|---|
18f8e10b | 1 | Summary: API documentation browser for GNOME |
4188d237 | 2 | Summary(pl.UTF-8): Przeglądarka dokumentacji API dla GNOME |
20782b1d | 3 | Name: devhelp |
735b8878 MB |
4 | Version: 0.13 |
5 | Release: 1 | |
0328db91 | 6 | License: GPL v2+ |
20782b1d | 7 | Group: X11/Applications |
735b8878 MB |
8 | Source0: http://ftp.gnome.org/pub/GNOME/sources/devhelp/0.13/%{name}-%{version}.tar.bz2 |
9 | # Source0-md5: 230c05c1e13ba6ae44c94e034ea77348 | |
40506027 | 10 | Patch0: %{name}-bookdir.patch |
2aa010a2 MG |
11 | Patch1: %{name}-mozilla_includes.patch |
12 | Patch2: %{name}-desktop.patch | |
f6af5a2c | 13 | URL: http://www.imendio.com/projects/devhelp/ |
735b8878 | 14 | BuildRequires: GConf2-devel >= 2.16.0 |
0574367f | 15 | BuildRequires: autoconf |
6dae5128 | 16 | BuildRequires: automake |
18f8e10b | 17 | BuildRequires: gnome-common >= 2.12.0 |
735b8878 MB |
18 | BuildRequires: gnome-vfs2-devel >= 2.16.3 |
19 | BuildRequires: gtk+2-devel >= 2:2.10.9 | |
18f8e10b | 20 | BuildRequires: libglade2-devel >= 1:2.6.0 |
0574367f | 21 | BuildRequires: libtool |
735b8878 | 22 | BuildRequires: libwnck-devel >= 2.16.3 |
5c3f0bd8 | 23 | BuildRequires: xulrunner-devel >= 1.8.0.4 |
0328db91 | 24 | BuildRequires: pkgconfig |
1cf29e7b | 25 | BuildRequires: python |
18f8e10b | 26 | BuildRequires: rpmbuild(macros) >= 1.311 |
9a1ccdd3 | 27 | BuildRequires: zlib-devel |
735b8878 MB |
28 | Requires(post,preun): GConf2 >= 2.16.0 |
29 | Requires(post,postun): gtk+2 | |
f51d3604 | 30 | Requires(post,postun): hicolor-icon-theme |
64a66d5b | 31 | Requires: %{name}-libs = %{version}-%{release} |
735b8878 | 32 | %requires_eq xulrunner |
20782b1d AM |
33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
34 | ||
99082f43 | 35 | # can be provided by mozilla or mozilla-embedded |
36 | %define _noautoreqdep libgtkembedmoz.so libxpcom.so | |
37 | ||
20782b1d | 38 | %description |
18f8e10b | 39 | API documentation browser for GNOME. |
20782b1d | 40 | |
d20ab5a4 JR |
41 | %description -l pl.UTF-8 |
42 | Przeglądarka dokumentacji API dla GNOME. | |
20782b1d | 43 | |
64a66d5b | 44 | %package libs |
45 | Summary: Library to embed Devhelp in other applications | |
4188d237 | 46 | Summary(pl.UTF-8): Biblioteka do osadzania Devhelp w innych aplikacjach |
64a66d5b | 47 | Group: Libraries |
48 | ||
49 | %description libs | |
18f8e10b | 50 | Library of Devhelp for embedding into other applications. |
64a66d5b | 51 | |
d20ab5a4 | 52 | %description libs -l pl.UTF-8 |
18f8e10b | 53 | Biblioteka Devhelp do osadzania w innych aplikacjach. |
64a66d5b | 54 | |
1609a537 | 55 | %package devel |
64a66d5b | 56 | Summary: Headers for Devhelp library |
4188d237 | 57 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Devhelp |
64a66d5b | 58 | Group: Development/Libraries |
59 | Requires: %{name}-libs = %{version}-%{release} | |
1609a537 | 60 | |
61 | %description devel | |
64a66d5b | 62 | Headers for Devhelp library. |
1609a537 | 63 | |
d20ab5a4 JR |
64 | %description devel -l pl.UTF-8 |
65 | Pliki nagłówkowe biblioteki Devhelp. | |
1609a537 | 66 | |
67 | %package static | |
64a66d5b | 68 | Summary: Static Devhelp library |
4188d237 | 69 | Summary(pl.UTF-8): Statyczna biblioteka Devhelp |
64a66d5b | 70 | Group: Development/Libraries |
71 | Requires: %{name}-devel = %{version}-%{release} | |
1609a537 | 72 | |
73 | %description static | |
64a66d5b | 74 | Static version of Devhelp library. |
1609a537 | 75 | |
d20ab5a4 | 76 | %description static -l pl.UTF-8 |
64a66d5b | 77 | Statyczna biblioteka Devhelp. |
1609a537 | 78 | |
e7c0fa80 MG |
79 | %package -n gedit2-plugin-devhelp |
80 | Summary: Devhelp plugin for Gedit editor | |
4188d237 | 81 | Summary(pl.UTF-8): Wtyczka devhelpa dla edytora Gedit |
1cf29e7b | 82 | Group: X11/Applications |
249ab429 | 83 | Requires: %{name} = %{version}-%{release} |
e7c0fa80 MG |
84 | Requires: gedit2 |
85 | ||
86 | %description -n gedit2-plugin-devhelp | |
18f8e10b | 87 | Allows to browse API documentation in Gedit. |
e7c0fa80 | 88 | |
d20ab5a4 JR |
89 | %description -n gedit2-plugin-devhelp -l pl.UTF-8 |
90 | Umożliwia przeglądanie dokumentacji API w Gedit. | |
e7c0fa80 | 91 | |
20782b1d AM |
92 | %prep |
93 | %setup -q | |
c145ed5a | 94 | %patch0 -p1 |
0574367f | 95 | %patch1 -p1 |
a5e11f92 | 96 | %patch2 -p1 |
20782b1d AM |
97 | |
98 | %build | |
0574367f | 99 | %{__libtoolize} |
2aa010a2 | 100 | %{__aclocal} -I m4 |
0574367f | 101 | %{__autoconf} |
102 | %{__autoheader} | |
103 | %{__automake} | |
b42350d2 | 104 | %configure \ |
20782b1d AM |
105 | --disable-install-schemas |
106 | %{__make} | |
107 | ||
108 | %install | |
109 | rm -rf $RPM_BUILD_ROOT | |
35ab6b2c | 110 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/gconf \ |
621cc9d4 | 111 | $RPM_BUILD_ROOT%{_datadir}/%{name}/{books,specs} |
20782b1d AM |
112 | |
113 | %{__make} install \ | |
944db8de | 114 | DESTDIR=$RPM_BUILD_ROOT |
20782b1d | 115 | |
2dc813cf | 116 | rm -rf $RPM_BUILD_ROOT%{_datadir}/mime-info |
18f8e10b | 117 | rm -f $RPM_BUILD_ROOT%{_libdir}/gedit-2/plugins/%{name}/*.py |
2dc813cf | 118 | |
20782b1d AM |
119 | %find_lang %{name} |
120 | ||
121 | %clean | |
122 | rm -rf $RPM_BUILD_ROOT | |
123 | ||
a5373a6b | 124 | %post |
2dc813cf | 125 | %gconf_schema_install devhelp.schemas |
18f8e10b | 126 | %update_icon_cache hicolor |
a5373a6b | 127 | |
2dc813cf | 128 | %preun |
129 | %gconf_schema_uninstall devhelp.schemas | |
a5373a6b | 130 | |
18f8e10b | 131 | %postun |
132 | %update_icon_cache hicolor | |
133 | ||
2f4b9d55 | 134 | %post libs -p /sbin/ldconfig |
135 | %postun libs -p /sbin/ldconfig | |
1609a537 | 136 | |
20782b1d AM |
137 | %files -f %{name}.lang |
138 | %defattr(644,root,root,755) | |
4743b658 | 139 | %doc AUTHORS ChangeLog NEWS README TODO |
a5373a6b | 140 | %attr(755,root,root) %{_bindir}/devhelp* |
9a1ccdd3 | 141 | %{_datadir}/%{name} |
769eb951 | 142 | %{_desktopdir}/*.desktop |
92f78795 | 143 | %{_iconsdir}/hicolor/*/apps/* |
18f8e10b | 144 | %{_sysconfdir}/gconf/schemas/devhelp.schemas |
1609a537 | 145 | |
64a66d5b | 146 | %files libs |
147 | %defattr(644,root,root,755) | |
148 | %attr(755,root,root) %{_libdir}/lib*.so.*.* | |
149 | ||
1609a537 | 150 | %files devel |
151 | %defattr(644,root,root,755) | |
64a66d5b | 152 | %attr(755,root,root) %{_libdir}/lib*.so |
153 | %{_libdir}/lib*.la | |
154 | %{_pkgconfigdir}/*.pc | |
155 | %{_includedir}/* | |
1609a537 | 156 | |
157 | %files static | |
158 | %defattr(644,root,root,755) | |
64a66d5b | 159 | %{_libdir}/lib*.a |
e7c0fa80 MG |
160 | |
161 | %files -n gedit2-plugin-devhelp | |
162 | %defattr(644,root,root,755) | |
1cf29e7b | 163 | %dir %{_libdir}/gedit-2/plugins/%{name} |
18f8e10b | 164 | %{_libdir}/gedit-2/plugins/%{name}.gedit-plugin |
e7c0fa80 | 165 | %{_libdir}/gedit-2/plugins/%{name}/*.py[oc] |