]>
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 |
df0258e6 | 4 | Version: 3.12.1 |
6e0d896a | 5 | Release: 2 |
0328db91 | 6 | License: GPL v2+ |
20782b1d | 7 | Group: X11/Applications |
590df518 | 8 | Source0: http://ftp.gnome.org/pub/GNOME/sources/devhelp/3.12/%{name}-%{version}.tar.xz |
df0258e6 | 9 | # Source0-md5: 893629a721d63ceacf4fd7b6233b30cb |
40506027 | 10 | Patch0: %{name}-bookdir.patch |
39f04eae | 11 | Patch1: %{name}-use-python3.patch |
f6af5a2c | 12 | URL: http://www.imendio.com/projects/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 |
590df518 | 18 | BuildRequires: gtk+3-devel >= 3.10.0 |
b279d815 | 19 | BuildRequires: gtk-webkit3-devel >= 2.0.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} |
590df518 | 32 | Requires: gtk-webkit3 >= 2.0.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 |
64a66d5b | 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 |
f883acb4 | 58 | Group: X11/Development/Libraries |
64a66d5b | 59 | Requires: %{name}-libs = %{version}-%{release} |
590df518 MB |
60 | Requires: glib2-devel >= 1:2.38.0 |
61 | Requires: gtk+3-devel >= 3.10.0 | |
1609a537 | 62 | |
63 | %description devel | |
64a66d5b | 64 | Headers for Devhelp library. |
1609a537 | 65 | |
d20ab5a4 JR |
66 | %description devel -l pl.UTF-8 |
67 | Pliki nagłówkowe biblioteki Devhelp. | |
1609a537 | 68 | |
69 | %package static | |
64a66d5b | 70 | Summary: Static Devhelp library |
4188d237 | 71 | Summary(pl.UTF-8): Statyczna biblioteka Devhelp |
f883acb4 | 72 | Group: X11/Development/Libraries |
64a66d5b | 73 | Requires: %{name}-devel = %{version}-%{release} |
1609a537 | 74 | |
75 | %description static | |
64a66d5b | 76 | Static version of Devhelp library. |
1609a537 | 77 | |
d20ab5a4 | 78 | %description static -l pl.UTF-8 |
64a66d5b | 79 | Statyczna biblioteka Devhelp. |
1609a537 | 80 | |
c1597d56 | 81 | %package -n gedit-plugin-devhelp |
e7c0fa80 | 82 | Summary: Devhelp plugin for Gedit editor |
4188d237 | 83 | Summary(pl.UTF-8): Wtyczka devhelpa dla edytora Gedit |
1cf29e7b | 84 | Group: X11/Applications |
249ab429 | 85 | Requires: %{name} = %{version}-%{release} |
c1597d56 | 86 | Requires: gedit |
b4e77d9c | 87 | Requires: libpeas-loader-python3 |
39f04eae | 88 | Requires: python3-pygobject3 |
8777def3 | 89 | Obsoletes: gedit2-plugin-devhelp |
e7c0fa80 | 90 | |
c1597d56 | 91 | %description -n gedit-plugin-devhelp |
d088438f | 92 | Plugin that allows to browse API documentation in Gedit. |
e7c0fa80 | 93 | |
c1597d56 | 94 | %description -n gedit-plugin-devhelp -l pl.UTF-8 |
d088438f | 95 | Wtyczka umożliwiająca przeglądanie dokumentacji API w edytorze Gedit. |
e7c0fa80 | 96 | |
20782b1d AM |
97 | %prep |
98 | %setup -q | |
c145ed5a | 99 | %patch0 -p1 |
39f04eae | 100 | %patch1 -p1 |
20782b1d AM |
101 | |
102 | %build | |
647c8443 | 103 | %{__intltoolize} |
0574367f | 104 | %{__libtoolize} |
b279d815 | 105 | %{__aclocal} -I m4 |
0574367f | 106 | %{__autoconf} |
107 | %{__autoheader} | |
108 | %{__automake} | |
b42350d2 | 109 | %configure \ |
90adff81 | 110 | --enable-static \ |
8bacc6fc | 111 | --disable-silent-rules |
20782b1d AM |
112 | %{__make} |
113 | ||
114 | %install | |
115 | rm -rf $RPM_BUILD_ROOT | |
b4e77d9c | 116 | install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/{books,references,specs} |
20782b1d AM |
117 | |
118 | %{__make} install \ | |
944db8de | 119 | DESTDIR=$RPM_BUILD_ROOT |
20782b1d | 120 | |
39f04eae | 121 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
2dc813cf | 122 | |
20782b1d AM |
123 | %find_lang %{name} |
124 | ||
125 | %clean | |
126 | rm -rf $RPM_BUILD_ROOT | |
127 | ||
a5373a6b | 128 | %post |
b4e77d9c | 129 | %glib_compile_schemas |
18f8e10b | 130 | %update_icon_cache hicolor |
a5373a6b | 131 | |
18f8e10b | 132 | %postun |
b4e77d9c | 133 | %glib_compile_schemas |
18f8e10b | 134 | %update_icon_cache hicolor |
135 | ||
2f4b9d55 | 136 | %post libs -p /sbin/ldconfig |
137 | %postun libs -p /sbin/ldconfig | |
1609a537 | 138 | |
20782b1d AM |
139 | %files -f %{name}.lang |
140 | %defattr(644,root,root,755) | |
edc65cdd | 141 | %doc AUTHORS NEWS README TODO |
f883acb4 | 142 | %attr(755,root,root) %{_bindir}/devhelp |
9a1ccdd3 | 143 | %{_datadir}/%{name} |
f883acb4 MB |
144 | %{_desktopdir}/devhelp.desktop |
145 | %{_iconsdir}/hicolor/*/apps/*.png | |
b4e77d9c MB |
146 | %{_datadir}/GConf/gsettings/devhelp.convert |
147 | %{_datadir}/glib-2.0/schemas/org.gnome.devhelp.gschema.xml | |
590df518 | 148 | %{_datadir}/appdata/devhelp.appdata.xml |
1609a537 | 149 | |
64a66d5b | 150 | %files libs |
151 | %defattr(644,root,root,755) | |
2153a520 | 152 | %attr(755,root,root) %{_libdir}/libdevhelp-3.so.*.*.* |
b4e77d9c | 153 | %attr(755,root,root) %ghost %{_libdir}/libdevhelp-3.so.2 |
64a66d5b | 154 | |
1609a537 | 155 | %files devel |
156 | %defattr(644,root,root,755) | |
2153a520 MB |
157 | %attr(755,root,root) %{_libdir}/libdevhelp-3.so |
158 | %{_pkgconfigdir}/libdevhelp-3.0.pc | |
159 | %{_includedir}/devhelp-3.0 | |
1609a537 | 160 | |
161 | %files static | |
162 | %defattr(644,root,root,755) | |
2153a520 | 163 | %{_libdir}/libdevhelp-3.a |
e7c0fa80 | 164 | |
c1597d56 | 165 | %files -n gedit-plugin-devhelp |
e7c0fa80 | 166 | %defattr(644,root,root,755) |
39f04eae | 167 | %{_libdir}/gedit/plugins/__pycache__ |
2153a520 | 168 | %{_libdir}/gedit/plugins/devhelp.plugin |
39f04eae | 169 | %{_libdir}/gedit/plugins/devhelp.py |