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