]>
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 |
6f5236a3 | 4 | Version: 3.4.1 |
2153a520 | 5 | Release: 1 |
0328db91 | 6 | License: GPL v2+ |
20782b1d | 7 | Group: X11/Applications |
f58c5523 | 8 | Source0: http://ftp.gnome.org/pub/GNOME/sources/devhelp/3.4/%{name}-%{version}.tar.xz |
6f5236a3 | 9 | # Source0-md5: d9428af3d308c1f97c2a2eebe6b451c0 |
40506027 | 10 | Patch0: %{name}-bookdir.patch |
f6af5a2c | 11 | URL: http://www.imendio.com/projects/devhelp/ |
647c8443 | 12 | BuildRequires: GConf2-devel >= 2.24.0 |
2153a520 MB |
13 | BuildRequires: autoconf >= 2.64 |
14 | BuildRequires: automake >= 1:1.11 | |
15 | BuildRequires: gettext-devel >= 0.17 | |
647c8443 | 16 | BuildRequires: gnome-common >= 2.24.0 |
2153a520 | 17 | BuildRequires: gtk+3-devel >= 3.0.2 |
f58c5523 | 18 | BuildRequires: gtk-webkit3-devel >= 1.6.0 |
647c8443 | 19 | BuildRequires: intltool >= 0.40.0 |
f58c5523 | 20 | BuildRequires: libtool >= 2:2.2 |
0328db91 | 21 | BuildRequires: pkgconfig |
2153a520 | 22 | BuildRequires: python >= 2.3 |
0192a9ae | 23 | BuildRequires: rpm-pythonprov |
18f8e10b | 24 | BuildRequires: rpmbuild(macros) >= 1.311 |
edc65cdd MB |
25 | BuildRequires: tar >= 1:1.22 |
26 | BuildRequires: xz | |
9a1ccdd3 | 27 | BuildRequires: zlib-devel |
2153a520 | 28 | Requires(post,preun): GConf2 >= 2.24.0 |
16f64fd4 | 29 | Requires(post,postun): gtk-update-icon-cache |
64a66d5b | 30 | Requires: %{name}-libs = %{version}-%{release} |
f58c5523 | 31 | Requires: gtk-webkit3 >= 1.6.0 |
2153a520 | 32 | Requires: hicolor-icon-theme |
ead4e980 | 33 | # sr@Latn vs. sr@latin |
34 | Conflicts: glibc-misc < 6:2.7 | |
20782b1d AM |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
36 | ||
20782b1d | 37 | %description |
18f8e10b | 38 | API documentation browser for GNOME. |
20782b1d | 39 | |
d20ab5a4 JR |
40 | %description -l pl.UTF-8 |
41 | Przeglądarka dokumentacji API dla GNOME. | |
20782b1d | 42 | |
64a66d5b | 43 | %package libs |
44 | Summary: Library to embed Devhelp in other applications | |
4188d237 | 45 | Summary(pl.UTF-8): Biblioteka do osadzania Devhelp w innych aplikacjach |
f883acb4 | 46 | Group: X11/Libraries |
64a66d5b | 47 | |
48 | %description libs | |
18f8e10b | 49 | Library of Devhelp for embedding into other applications. |
64a66d5b | 50 | |
d20ab5a4 | 51 | %description libs -l pl.UTF-8 |
18f8e10b | 52 | Biblioteka Devhelp do osadzania w innych aplikacjach. |
64a66d5b | 53 | |
1609a537 | 54 | %package devel |
64a66d5b | 55 | Summary: Headers for Devhelp library |
4188d237 | 56 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Devhelp |
f883acb4 | 57 | Group: X11/Development/Libraries |
64a66d5b | 58 | Requires: %{name}-libs = %{version}-%{release} |
2153a520 | 59 | Requires: gtk+3-devel >= 3.0.2 |
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 |
f883acb4 | 70 | Group: X11/Development/Libraries |
64a66d5b | 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 | 84 | Requires: gedit2 |
2153a520 MB |
85 | Requires: libpeas-loader-python |
86 | Requires: python-pygobject >= 2.27.91 | |
e7c0fa80 MG |
87 | |
88 | %description -n gedit2-plugin-devhelp | |
d088438f | 89 | Plugin that allows to browse API documentation in Gedit. |
e7c0fa80 | 90 | |
d20ab5a4 | 91 | %description -n gedit2-plugin-devhelp -l pl.UTF-8 |
d088438f | 92 | Wtyczka umożliwiająca przeglądanie dokumentacji API w edytorze Gedit. |
e7c0fa80 | 93 | |
20782b1d AM |
94 | %prep |
95 | %setup -q | |
c145ed5a | 96 | %patch0 -p1 |
20782b1d AM |
97 | |
98 | %build | |
647c8443 | 99 | %{__intltoolize} |
0574367f | 100 | %{__libtoolize} |
647c8443 | 101 | %{__aclocal} |
0574367f | 102 | %{__autoconf} |
103 | %{__autoheader} | |
104 | %{__automake} | |
b42350d2 | 105 | %configure \ |
90adff81 | 106 | --enable-static \ |
8bacc6fc MB |
107 | --disable-schemas-install \ |
108 | --disable-silent-rules | |
20782b1d AM |
109 | %{__make} |
110 | ||
111 | %install | |
112 | rm -rf $RPM_BUILD_ROOT | |
35ab6b2c | 113 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/gconf \ |
621cc9d4 | 114 | $RPM_BUILD_ROOT%{_datadir}/%{name}/{books,specs} |
20782b1d AM |
115 | |
116 | %{__make} install \ | |
944db8de | 117 | DESTDIR=$RPM_BUILD_ROOT |
20782b1d | 118 | |
2153a520 MB |
119 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gedit/plugins/*.py \ |
120 | $RPM_BUILD_ROOT%{_libdir}/*.la | |
2dc813cf | 121 | |
20782b1d AM |
122 | %find_lang %{name} |
123 | ||
124 | %clean | |
125 | rm -rf $RPM_BUILD_ROOT | |
126 | ||
a5373a6b | 127 | %post |
2dc813cf | 128 | %gconf_schema_install devhelp.schemas |
18f8e10b | 129 | %update_icon_cache hicolor |
a5373a6b | 130 | |
2dc813cf | 131 | %preun |
132 | %gconf_schema_uninstall devhelp.schemas | |
a5373a6b | 133 | |
18f8e10b | 134 | %postun |
135 | %update_icon_cache hicolor | |
136 | ||
2f4b9d55 | 137 | %post libs -p /sbin/ldconfig |
138 | %postun libs -p /sbin/ldconfig | |
1609a537 | 139 | |
20782b1d AM |
140 | %files -f %{name}.lang |
141 | %defattr(644,root,root,755) | |
edc65cdd | 142 | %doc AUTHORS NEWS README TODO |
f883acb4 | 143 | %attr(755,root,root) %{_bindir}/devhelp |
9a1ccdd3 | 144 | %{_datadir}/%{name} |
f883acb4 MB |
145 | %{_desktopdir}/devhelp.desktop |
146 | %{_iconsdir}/hicolor/*/apps/*.png | |
18f8e10b | 147 | %{_sysconfdir}/gconf/schemas/devhelp.schemas |
1609a537 | 148 | |
64a66d5b | 149 | %files libs |
150 | %defattr(644,root,root,755) | |
2153a520 MB |
151 | %attr(755,root,root) %{_libdir}/libdevhelp-3.so.*.*.* |
152 | %attr(755,root,root) %ghost %{_libdir}/libdevhelp-3.so.0 | |
64a66d5b | 153 | |
1609a537 | 154 | %files devel |
155 | %defattr(644,root,root,755) | |
2153a520 MB |
156 | %attr(755,root,root) %{_libdir}/libdevhelp-3.so |
157 | %{_pkgconfigdir}/libdevhelp-3.0.pc | |
158 | %{_includedir}/devhelp-3.0 | |
1609a537 | 159 | |
160 | %files static | |
161 | %defattr(644,root,root,755) | |
2153a520 | 162 | %{_libdir}/libdevhelp-3.a |
e7c0fa80 MG |
163 | |
164 | %files -n gedit2-plugin-devhelp | |
165 | %defattr(644,root,root,755) | |
2153a520 MB |
166 | %{_libdir}/gedit/plugins/devhelp.plugin |
167 | %{_libdir}/gedit/plugins/devhelp.py[co] |