]>
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 |
35282fab | 4 | Version: 0.19.1 |
613d69e6 | 5 | Release: 3 |
0328db91 | 6 | License: GPL v2+ |
20782b1d | 7 | Group: X11/Applications |
3b1b39c6 | 8 | Source0: http://ftp.gnome.org/pub/GNOME/sources/devhelp/0.19/%{name}-%{version}.tar.bz2 |
35282fab | 9 | # Source0-md5: 6c12a272a94ac9cfc1dc6234590b46d8 |
40506027 | 10 | Patch0: %{name}-bookdir.patch |
2aa010a2 | 11 | Patch1: %{name}-mozilla_includes.patch |
613d69e6 | 12 | Patch2: %{name}-libxul.patch |
f6af5a2c | 13 | URL: http://www.imendio.com/projects/devhelp/ |
081208c2 | 14 | BuildRequires: GConf2-devel >= 2.20.0 |
0574367f | 15 | BuildRequires: autoconf |
3be2333b | 16 | BuildRequires: automake >= 1:1.9 |
7aa4c7a3 | 17 | BuildRequires: gettext-devel |
f883acb4 MB |
18 | BuildRequires: gnome-common >= 2.20.0 |
19 | BuildRequires: gtk+2-devel >= 2:2.12.5 | |
20 | BuildRequires: intltool >= 0.37.0 | |
7aa4c7a3 | 21 | BuildRequires: libglade2-devel >= 1:2.6.2 |
0574367f | 22 | BuildRequires: libtool |
f883acb4 | 23 | BuildRequires: libwnck-devel >= 2.20.3 |
0328db91 | 24 | BuildRequires: pkgconfig |
1cf29e7b | 25 | BuildRequires: python |
18f8e10b | 26 | BuildRequires: rpmbuild(macros) >= 1.311 |
7aa4c7a3 MB |
27 | BuildRequires: sed >= 4.0 |
28 | BuildRequires: xulrunner-devel >= 1.8.0.4 | |
9a1ccdd3 | 29 | BuildRequires: zlib-devel |
464f31c2 | 30 | Requires(post,postun): desktop-file-utils |
735b8878 | 31 | Requires(post,postun): gtk+2 |
f51d3604 | 32 | Requires(post,postun): hicolor-icon-theme |
7aa4c7a3 | 33 | Requires(post,preun): GConf2 >= 2.20.0 |
64a66d5b | 34 | Requires: %{name}-libs = %{version}-%{release} |
9ec5e121 | 35 | %requires_eq_to xulrunner xulrunner-devel |
ead4e980 | 36 | # sr@Latn vs. sr@latin |
37 | Conflicts: glibc-misc < 6:2.7 | |
20782b1d AM |
38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
39 | ||
99082f43 | 40 | # can be provided by mozilla or mozilla-embedded |
41 | %define _noautoreqdep libgtkembedmoz.so libxpcom.so | |
6a34f24e MB |
42 | # we have strict deps for it |
43 | %define _noautoreq libxpcom.so | |
99082f43 | 44 | |
20782b1d | 45 | %description |
18f8e10b | 46 | API documentation browser for GNOME. |
20782b1d | 47 | |
d20ab5a4 JR |
48 | %description -l pl.UTF-8 |
49 | Przeglądarka dokumentacji API dla GNOME. | |
20782b1d | 50 | |
64a66d5b | 51 | %package libs |
52 | Summary: Library to embed Devhelp in other applications | |
4188d237 | 53 | Summary(pl.UTF-8): Biblioteka do osadzania Devhelp w innych aplikacjach |
f883acb4 | 54 | Group: X11/Libraries |
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} |
f883acb4 | 67 | Requires: gtk+2-devel >= 2:2.12.5 |
7aa4c7a3 | 68 | Requires: libwnck-devel >= 2.20.0 |
1609a537 | 69 | |
70 | %description devel | |
64a66d5b | 71 | Headers for Devhelp library. |
1609a537 | 72 | |
d20ab5a4 JR |
73 | %description devel -l pl.UTF-8 |
74 | Pliki nagłówkowe biblioteki Devhelp. | |
1609a537 | 75 | |
76 | %package static | |
64a66d5b | 77 | Summary: Static Devhelp library |
4188d237 | 78 | Summary(pl.UTF-8): Statyczna biblioteka Devhelp |
f883acb4 | 79 | Group: X11/Development/Libraries |
64a66d5b | 80 | Requires: %{name}-devel = %{version}-%{release} |
1609a537 | 81 | |
82 | %description static | |
64a66d5b | 83 | Static version of Devhelp library. |
1609a537 | 84 | |
d20ab5a4 | 85 | %description static -l pl.UTF-8 |
64a66d5b | 86 | Statyczna biblioteka Devhelp. |
1609a537 | 87 | |
e7c0fa80 MG |
88 | %package -n gedit2-plugin-devhelp |
89 | Summary: Devhelp plugin for Gedit editor | |
4188d237 | 90 | Summary(pl.UTF-8): Wtyczka devhelpa dla edytora Gedit |
1cf29e7b | 91 | Group: X11/Applications |
249ab429 | 92 | Requires: %{name} = %{version}-%{release} |
e7c0fa80 MG |
93 | Requires: gedit2 |
94 | ||
95 | %description -n gedit2-plugin-devhelp | |
18f8e10b | 96 | Allows to browse API documentation in Gedit. |
e7c0fa80 | 97 | |
d20ab5a4 JR |
98 | %description -n gedit2-plugin-devhelp -l pl.UTF-8 |
99 | Umożliwia przeglądanie dokumentacji API w Gedit. | |
e7c0fa80 | 100 | |
20782b1d AM |
101 | %prep |
102 | %setup -q | |
c145ed5a | 103 | %patch0 -p1 |
0574367f | 104 | %patch1 -p1 |
613d69e6 | 105 | %patch2 -p1 |
20782b1d | 106 | |
f883acb4 | 107 | sed -i -e 's#sr@Latn#sr@latin#' po/LINGUAS |
7aa4c7a3 | 108 | mv po/sr@{Latn,latin}.po |
9979247f | 109 | |
20782b1d | 110 | %build |
0574367f | 111 | %{__libtoolize} |
2aa010a2 | 112 | %{__aclocal} -I m4 |
0574367f | 113 | %{__autoconf} |
114 | %{__autoheader} | |
115 | %{__automake} | |
b42350d2 | 116 | %configure \ |
90adff81 | 117 | --enable-static \ |
20782b1d AM |
118 | --disable-install-schemas |
119 | %{__make} | |
120 | ||
121 | %install | |
122 | rm -rf $RPM_BUILD_ROOT | |
35ab6b2c | 123 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/gconf \ |
621cc9d4 | 124 | $RPM_BUILD_ROOT%{_datadir}/%{name}/{books,specs} |
20782b1d AM |
125 | |
126 | %{__make} install \ | |
944db8de | 127 | DESTDIR=$RPM_BUILD_ROOT |
20782b1d | 128 | |
2dc813cf | 129 | rm -rf $RPM_BUILD_ROOT%{_datadir}/mime-info |
18f8e10b | 130 | rm -f $RPM_BUILD_ROOT%{_libdir}/gedit-2/plugins/%{name}/*.py |
2dc813cf | 131 | |
20782b1d AM |
132 | %find_lang %{name} |
133 | ||
134 | %clean | |
135 | rm -rf $RPM_BUILD_ROOT | |
136 | ||
a5373a6b | 137 | %post |
2dc813cf | 138 | %gconf_schema_install devhelp.schemas |
464f31c2 | 139 | %update_desktop_database_post |
18f8e10b | 140 | %update_icon_cache hicolor |
a5373a6b | 141 | |
2dc813cf | 142 | %preun |
143 | %gconf_schema_uninstall devhelp.schemas | |
a5373a6b | 144 | |
18f8e10b | 145 | %postun |
464f31c2 | 146 | %update_desktop_database_postun |
18f8e10b | 147 | %update_icon_cache hicolor |
148 | ||
2f4b9d55 | 149 | %post libs -p /sbin/ldconfig |
150 | %postun libs -p /sbin/ldconfig | |
1609a537 | 151 | |
20782b1d AM |
152 | %files -f %{name}.lang |
153 | %defattr(644,root,root,755) | |
4743b658 | 154 | %doc AUTHORS ChangeLog NEWS README TODO |
f883acb4 | 155 | %attr(755,root,root) %{_bindir}/devhelp |
9a1ccdd3 | 156 | %{_datadir}/%{name} |
f883acb4 MB |
157 | %{_desktopdir}/devhelp.desktop |
158 | %{_iconsdir}/hicolor/*/apps/*.png | |
159 | %{_iconsdir}/hicolor/scalable/apps/*.svg | |
18f8e10b | 160 | %{_sysconfdir}/gconf/schemas/devhelp.schemas |
1609a537 | 161 | |
64a66d5b | 162 | %files libs |
163 | %defattr(644,root,root,755) | |
7aa4c7a3 | 164 | %attr(755,root,root) %{_libdir}/libdevhelp-1.so.*.*.* |
f883acb4 | 165 | %attr(755,root,root) %ghost %{_libdir}/libdevhelp-1.so.0 |
64a66d5b | 166 | |
1609a537 | 167 | %files devel |
168 | %defattr(644,root,root,755) | |
7aa4c7a3 MB |
169 | %attr(755,root,root) %{_libdir}/libdevhelp-1.so |
170 | %{_libdir}/libdevhelp-1.la | |
171 | %{_pkgconfigdir}/libdevhelp-1.0.pc | |
172 | %{_includedir}/devhelp-1.0 | |
1609a537 | 173 | |
174 | %files static | |
175 | %defattr(644,root,root,755) | |
7aa4c7a3 | 176 | %{_libdir}/libdevhelp-1.a |
e7c0fa80 MG |
177 | |
178 | %files -n gedit2-plugin-devhelp | |
179 | %defattr(644,root,root,755) | |
1cf29e7b | 180 | %dir %{_libdir}/gedit-2/plugins/%{name} |
18f8e10b | 181 | %{_libdir}/gedit-2/plugins/%{name}.gedit-plugin |
e7c0fa80 | 182 | %{_libdir}/gedit-2/plugins/%{name}/*.py[oc] |