]>
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 |
02481bd8 | 4 | Version: 3.6.0 |
d4ef35d3 | 5 | Release: 2 |
0328db91 | 6 | License: GPL v2+ |
20782b1d | 7 | Group: X11/Applications |
02481bd8 ŁK |
8 | Source0: http://ftp.gnome.org/pub/GNOME/sources/devhelp/3.6/%{name}-%{version}.tar.xz |
9 | # Source0-md5: 8076f10f493be38cef55e770db2579c5 | |
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 | |
02481bd8 | 16 | BuildRequires: glib2-devel >= 1:2.32.0 |
647c8443 | 17 | BuildRequires: gnome-common >= 2.24.0 |
02481bd8 | 18 | BuildRequires: gtk+3-devel >= 3.4.0 |
f58c5523 | 19 | BuildRequires: gtk-webkit3-devel >= 1.6.0 |
647c8443 | 20 | BuildRequires: intltool >= 0.40.0 |
f58c5523 | 21 | BuildRequires: libtool >= 2:2.2 |
0328db91 | 22 | BuildRequires: pkgconfig |
2153a520 | 23 | BuildRequires: python >= 2.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 |
2153a520 | 29 | Requires(post,preun): GConf2 >= 2.24.0 |
16f64fd4 | 30 | Requires(post,postun): gtk-update-icon-cache |
64a66d5b | 31 | Requires: %{name}-libs = %{version}-%{release} |
f58c5523 | 32 | Requires: gtk-webkit3 >= 1.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 |
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} |
02481bd8 ŁK |
60 | Requires: glib2-devel >= 1:2.32.0 |
61 | Requires: gtk+3-devel >= 3.4.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 |
2153a520 MB |
87 | Requires: libpeas-loader-python |
88 | Requires: python-pygobject >= 2.27.91 | |
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 |
20782b1d AM |
100 | |
101 | %build | |
647c8443 | 102 | %{__intltoolize} |
0574367f | 103 | %{__libtoolize} |
647c8443 | 104 | %{__aclocal} |
0574367f | 105 | %{__autoconf} |
106 | %{__autoheader} | |
107 | %{__automake} | |
b42350d2 | 108 | %configure \ |
90adff81 | 109 | --enable-static \ |
8bacc6fc MB |
110 | --disable-schemas-install \ |
111 | --disable-silent-rules | |
20782b1d AM |
112 | %{__make} |
113 | ||
114 | %install | |
115 | rm -rf $RPM_BUILD_ROOT | |
35ab6b2c | 116 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/gconf \ |
621cc9d4 | 117 | $RPM_BUILD_ROOT%{_datadir}/%{name}/{books,specs} |
20782b1d AM |
118 | |
119 | %{__make} install \ | |
944db8de | 120 | DESTDIR=$RPM_BUILD_ROOT |
20782b1d | 121 | |
2153a520 MB |
122 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gedit/plugins/*.py \ |
123 | $RPM_BUILD_ROOT%{_libdir}/*.la | |
2dc813cf | 124 | |
20782b1d AM |
125 | %find_lang %{name} |
126 | ||
127 | %clean | |
128 | rm -rf $RPM_BUILD_ROOT | |
129 | ||
a5373a6b | 130 | %post |
2dc813cf | 131 | %gconf_schema_install devhelp.schemas |
18f8e10b | 132 | %update_icon_cache hicolor |
a5373a6b | 133 | |
2dc813cf | 134 | %preun |
135 | %gconf_schema_uninstall devhelp.schemas | |
a5373a6b | 136 | |
18f8e10b | 137 | %postun |
138 | %update_icon_cache hicolor | |
139 | ||
2f4b9d55 | 140 | %post libs -p /sbin/ldconfig |
141 | %postun libs -p /sbin/ldconfig | |
1609a537 | 142 | |
20782b1d AM |
143 | %files -f %{name}.lang |
144 | %defattr(644,root,root,755) | |
edc65cdd | 145 | %doc AUTHORS NEWS README TODO |
f883acb4 | 146 | %attr(755,root,root) %{_bindir}/devhelp |
9a1ccdd3 | 147 | %{_datadir}/%{name} |
f883acb4 MB |
148 | %{_desktopdir}/devhelp.desktop |
149 | %{_iconsdir}/hicolor/*/apps/*.png | |
18f8e10b | 150 | %{_sysconfdir}/gconf/schemas/devhelp.schemas |
1609a537 | 151 | |
64a66d5b | 152 | %files libs |
153 | %defattr(644,root,root,755) | |
2153a520 | 154 | %attr(755,root,root) %{_libdir}/libdevhelp-3.so.*.*.* |
02481bd8 | 155 | %attr(755,root,root) %ghost %{_libdir}/libdevhelp-3.so.1 |
64a66d5b | 156 | |
1609a537 | 157 | %files devel |
158 | %defattr(644,root,root,755) | |
2153a520 MB |
159 | %attr(755,root,root) %{_libdir}/libdevhelp-3.so |
160 | %{_pkgconfigdir}/libdevhelp-3.0.pc | |
161 | %{_includedir}/devhelp-3.0 | |
1609a537 | 162 | |
163 | %files static | |
164 | %defattr(644,root,root,755) | |
2153a520 | 165 | %{_libdir}/libdevhelp-3.a |
e7c0fa80 | 166 | |
c1597d56 | 167 | %files -n gedit-plugin-devhelp |
e7c0fa80 | 168 | %defattr(644,root,root,755) |
2153a520 MB |
169 | %{_libdir}/gedit/plugins/devhelp.plugin |
170 | %{_libdir}/gedit/plugins/devhelp.py[co] |