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