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