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