]>
Commit | Line | Data |
---|---|---|
38bceebd MB |
1 | # Conditional build: |
2 | %bcond_without apidocs # disable gtk-doc | |
3 | %bcond_without static_libs # static library | |
4 | ||
18f8e10b | 5 | Summary: API documentation browser for GNOME |
4188d237 | 6 | Summary(pl.UTF-8): Przeglądarka dokumentacji API dla GNOME |
20782b1d | 7 | Name: devhelp |
38bceebd | 8 | Version: 3.24.0 |
960ebbdc | 9 | Release: 1 |
0328db91 | 10 | License: GPL v2+ |
20782b1d | 11 | Group: X11/Applications |
38bceebd MB |
12 | Source0: http://ftp.gnome.org/pub/GNOME/sources/devhelp/3.24/%{name}-%{version}.tar.xz |
13 | # Source0-md5: 5aeabfd755e73082344ae46c2f8f6d66 | |
40506027 | 14 | Patch0: %{name}-bookdir.patch |
39f04eae | 15 | Patch1: %{name}-use-python3.patch |
c394ba8c | 16 | URL: https://wiki.gnome.org/Apps/Devhelp |
2153a520 | 17 | BuildRequires: autoconf >= 2.64 |
38bceebd MB |
18 | BuildRequires: automake >= 1:1.14 |
19 | BuildRequires: gettext-tools >= 0.19.7 | |
590df518 | 20 | BuildRequires: glib2-devel >= 1:2.38.0 |
647c8443 | 21 | BuildRequires: gnome-common >= 2.24.0 |
38bceebd | 22 | BuildRequires: gobject-introspection-devel >= 1.30.0 |
956a73fb | 23 | BuildRequires: gtk+3-devel >= 3.20.0 |
38bceebd | 24 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.25} |
2f9a8381 | 25 | BuildRequires: gtk-webkit4-devel >= 2.6.0 |
f58c5523 | 26 | BuildRequires: libtool >= 2:2.2 |
0328db91 | 27 | BuildRequires: pkgconfig |
39f04eae | 28 | BuildRequires: python3 >= 1:3.3 |
0192a9ae | 29 | BuildRequires: rpm-pythonprov |
18f8e10b | 30 | BuildRequires: rpmbuild(macros) >= 1.311 |
edc65cdd MB |
31 | BuildRequires: tar >= 1:1.22 |
32 | BuildRequires: xz | |
9a1ccdd3 | 33 | BuildRequires: zlib-devel |
22aa8d08 | 34 | Requires(post,postun): glib2 >= 1:2.38.0 |
16f64fd4 | 35 | Requires(post,postun): gtk-update-icon-cache |
64a66d5b | 36 | Requires: %{name}-libs = %{version}-%{release} |
2f9a8381 | 37 | Requires: gtk-webkit4 >= 2.6.0 |
2153a520 | 38 | Requires: hicolor-icon-theme |
ead4e980 | 39 | # sr@Latn vs. sr@latin |
40 | Conflicts: glibc-misc < 6:2.7 | |
20782b1d AM |
41 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
42 | ||
20782b1d | 43 | %description |
18f8e10b | 44 | API documentation browser for GNOME. |
20782b1d | 45 | |
d20ab5a4 JR |
46 | %description -l pl.UTF-8 |
47 | Przeglądarka dokumentacji API dla GNOME. | |
20782b1d | 48 | |
64a66d5b | 49 | %package libs |
50 | Summary: Library to embed Devhelp in other applications | |
4188d237 | 51 | Summary(pl.UTF-8): Biblioteka do osadzania Devhelp w innych aplikacjach |
f883acb4 | 52 | Group: X11/Libraries |
c394ba8c | 53 | Requires: glib2 >= 1:2.38.0 |
956a73fb | 54 | Requires: gtk+3 >= 3.20.0 |
2f9a8381 | 55 | Requires: gtk-webkit4 >= 2.6.0 |
64a66d5b | 56 | |
57 | %description libs | |
18f8e10b | 58 | Library of Devhelp for embedding into other applications. |
64a66d5b | 59 | |
d20ab5a4 | 60 | %description libs -l pl.UTF-8 |
18f8e10b | 61 | Biblioteka Devhelp do osadzania w innych aplikacjach. |
64a66d5b | 62 | |
1609a537 | 63 | %package devel |
64a66d5b | 64 | Summary: Headers for Devhelp library |
4188d237 | 65 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Devhelp |
f883acb4 | 66 | Group: X11/Development/Libraries |
64a66d5b | 67 | Requires: %{name}-libs = %{version}-%{release} |
590df518 | 68 | Requires: glib2-devel >= 1:2.38.0 |
956a73fb | 69 | Requires: gtk+3-devel >= 3.20.0 |
2f9a8381 | 70 | Requires: gtk-webkit4-devel >= 2.6.0 |
1609a537 | 71 | |
72 | %description devel | |
64a66d5b | 73 | Headers for Devhelp library. |
1609a537 | 74 | |
d20ab5a4 JR |
75 | %description devel -l pl.UTF-8 |
76 | Pliki nagłówkowe biblioteki Devhelp. | |
1609a537 | 77 | |
78 | %package static | |
64a66d5b | 79 | Summary: Static Devhelp library |
4188d237 | 80 | Summary(pl.UTF-8): Statyczna biblioteka Devhelp |
f883acb4 | 81 | Group: X11/Development/Libraries |
64a66d5b | 82 | Requires: %{name}-devel = %{version}-%{release} |
1609a537 | 83 | |
84 | %description static | |
64a66d5b | 85 | Static version of Devhelp library. |
1609a537 | 86 | |
d20ab5a4 | 87 | %description static -l pl.UTF-8 |
64a66d5b | 88 | Statyczna biblioteka Devhelp. |
1609a537 | 89 | |
38bceebd MB |
90 | %package apidocs |
91 | Summary: Devhelp API documetation | |
92 | Summary(pl.UTF-8): Dokumentacja API Devhelp | |
93 | Group: Documentation | |
94 | Requires: gtk-doc-common | |
95 | %if "%{_rpmversion}" >= "5" | |
96 | BuildArch: noarch | |
97 | %endif | |
98 | ||
99 | %description apidocs | |
100 | Devhelp API documetation. | |
101 | ||
102 | %description apidocs -l pl.UTF-8 | |
103 | Dokumentacja API Devhelp. | |
104 | ||
c1597d56 | 105 | %package -n gedit-plugin-devhelp |
e7c0fa80 | 106 | Summary: Devhelp plugin for Gedit editor |
4188d237 | 107 | Summary(pl.UTF-8): Wtyczka devhelpa dla edytora Gedit |
1cf29e7b | 108 | Group: X11/Applications |
249ab429 | 109 | Requires: %{name} = %{version}-%{release} |
c394ba8c JB |
110 | # python3 based gedit |
111 | Requires: gedit >= 3.8 | |
b4e77d9c | 112 | Requires: libpeas-loader-python3 |
c394ba8c JB |
113 | Requires: python3 >= 1:3.3 |
114 | Requires: python3-pygobject3 >= 3 | |
8777def3 | 115 | Obsoletes: gedit2-plugin-devhelp |
e7c0fa80 | 116 | |
c1597d56 | 117 | %description -n gedit-plugin-devhelp |
d088438f | 118 | Plugin that allows to browse API documentation in Gedit. |
e7c0fa80 | 119 | |
c1597d56 | 120 | %description -n gedit-plugin-devhelp -l pl.UTF-8 |
d088438f | 121 | Wtyczka umożliwiająca przeglądanie dokumentacji API w edytorze Gedit. |
e7c0fa80 | 122 | |
20782b1d AM |
123 | %prep |
124 | %setup -q | |
c145ed5a | 125 | %patch0 -p1 |
39f04eae | 126 | %patch1 -p1 |
20782b1d AM |
127 | |
128 | %build | |
0574367f | 129 | %{__libtoolize} |
b279d815 | 130 | %{__aclocal} -I m4 |
0574367f | 131 | %{__autoconf} |
132 | %{__autoheader} | |
133 | %{__automake} | |
b42350d2 | 134 | %configure \ |
38bceebd MB |
135 | %{__enable_disable apidocs gtk-doc} \ |
136 | %{__enable_disable static_libs static} \ | |
137 | %{?with_apidocs:--with-html-dir=%{_gtkdocdir}} \ | |
8bacc6fc | 138 | --disable-silent-rules |
20782b1d AM |
139 | %{__make} |
140 | ||
141 | %install | |
142 | rm -rf $RPM_BUILD_ROOT | |
b4e77d9c | 143 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/{books,references,specs} |
20782b1d AM |
144 | |
145 | %{__make} install \ | |
944db8de | 146 | DESTDIR=$RPM_BUILD_ROOT |
20782b1d | 147 | |
39f04eae | 148 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
2dc813cf | 149 | |
20782b1d AM |
150 | %find_lang %{name} |
151 | ||
152 | %clean | |
153 | rm -rf $RPM_BUILD_ROOT | |
154 | ||
a5373a6b | 155 | %post |
b4e77d9c | 156 | %glib_compile_schemas |
18f8e10b | 157 | %update_icon_cache hicolor |
a5373a6b | 158 | |
18f8e10b | 159 | %postun |
b4e77d9c | 160 | %glib_compile_schemas |
18f8e10b | 161 | %update_icon_cache hicolor |
162 | ||
2f4b9d55 | 163 | %post libs -p /sbin/ldconfig |
164 | %postun libs -p /sbin/ldconfig | |
1609a537 | 165 | |
20782b1d AM |
166 | %files -f %{name}.lang |
167 | %defattr(644,root,root,755) | |
edc65cdd | 168 | %doc AUTHORS NEWS README TODO |
f883acb4 | 169 | %attr(755,root,root) %{_bindir}/devhelp |
9a1ccdd3 | 170 | %{_datadir}/%{name} |
2f9a8381 | 171 | %{_desktopdir}/org.gnome.Devhelp.desktop |
c394ba8c JB |
172 | %{_iconsdir}/hicolor/*x*/apps/devhelp.png |
173 | %{_iconsdir}/hicolor/symbolic/apps/devhelp-symbolic.svg | |
b4e77d9c MB |
174 | %{_datadir}/GConf/gsettings/devhelp.convert |
175 | %{_datadir}/glib-2.0/schemas/org.gnome.devhelp.gschema.xml | |
2f9a8381 MB |
176 | %{_datadir}/appdata/org.gnome.Devhelp.appdata.xml |
177 | %{_datadir}/dbus-1/services/org.gnome.Devhelp.service | |
178 | %{_mandir}/man1/devhelp.1* | |
1609a537 | 179 | |
64a66d5b | 180 | %files libs |
181 | %defattr(644,root,root,755) | |
2153a520 | 182 | %attr(755,root,root) %{_libdir}/libdevhelp-3.so.*.*.* |
38bceebd MB |
183 | %attr(755,root,root) %ghost %{_libdir}/libdevhelp-3.so.3 |
184 | %{_libdir}/girepository-1.0/Devhelp-3.0.typelib | |
64a66d5b | 185 | |
1609a537 | 186 | %files devel |
187 | %defattr(644,root,root,755) | |
2153a520 | 188 | %attr(755,root,root) %{_libdir}/libdevhelp-3.so |
38bceebd | 189 | %{_datadir}/gir-1.0/Devhelp-3.0.gir |
2153a520 MB |
190 | %{_pkgconfigdir}/libdevhelp-3.0.pc |
191 | %{_includedir}/devhelp-3.0 | |
1609a537 | 192 | |
193 | %files static | |
194 | %defattr(644,root,root,755) | |
2153a520 | 195 | %{_libdir}/libdevhelp-3.a |
e7c0fa80 | 196 | |
38bceebd MB |
197 | %if %{with apidocs} |
198 | %files apidocs | |
199 | %defattr(644,root,root,755) | |
200 | %{_gtkdocdir}/devhelp-3 | |
201 | %endif | |
202 | ||
c1597d56 | 203 | %files -n gedit-plugin-devhelp |
e7c0fa80 | 204 | %defattr(644,root,root,755) |
39f04eae | 205 | %{_libdir}/gedit/plugins/__pycache__ |
2153a520 | 206 | %{_libdir}/gedit/plugins/devhelp.plugin |
39f04eae | 207 | %{_libdir}/gedit/plugins/devhelp.py |