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