]>
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 |
1c31a4a4 | 4 | Version: 2.32.0 |
16f64fd4 | 5 | Release: 2 |
0328db91 | 6 | License: GPL v2+ |
20782b1d | 7 | Group: X11/Applications |
1c31a4a4 MB |
8 | Source0: http://ftp.gnome.org/pub/GNOME/sources/devhelp/2.32/%{name}-%{version}.tar.bz2 |
9 | # Source0-md5: c6690a45609caa00ecd9cd92f7d28915 | |
40506027 | 10 | Patch0: %{name}-bookdir.patch |
f6af5a2c | 11 | URL: http://www.imendio.com/projects/devhelp/ |
647c8443 MB |
12 | BuildRequires: GConf2-devel >= 2.24.0 |
13 | BuildRequires: autoconf >= 2.60 | |
3be2333b | 14 | BuildRequires: automake >= 1:1.9 |
7aa4c7a3 | 15 | BuildRequires: gettext-devel |
647c8443 MB |
16 | BuildRequires: gnome-common >= 2.24.0 |
17 | BuildRequires: gtk+2-devel >= 2:2.14.0 | |
f9b496fb | 18 | BuildRequires: gtk-webkit-devel >= 1.1.13 |
647c8443 | 19 | BuildRequires: intltool >= 0.40.0 |
0574367f | 20 | BuildRequires: libtool |
bce797a8 | 21 | BuildRequires: libunique-devel >= 1.0 |
647c8443 | 22 | BuildRequires: libwnck-devel >= 2.24.0 |
0328db91 | 23 | BuildRequires: pkgconfig |
1cf29e7b | 24 | BuildRequires: python |
0192a9ae | 25 | BuildRequires: rpm-pythonprov |
18f8e10b | 26 | BuildRequires: rpmbuild(macros) >= 1.311 |
9a1ccdd3 | 27 | BuildRequires: zlib-devel |
16f64fd4 | 28 | Requires(post,postun): gtk-update-icon-cache |
f51d3604 | 29 | Requires(post,postun): hicolor-icon-theme |
7aa4c7a3 | 30 | Requires(post,preun): GConf2 >= 2.20.0 |
64a66d5b | 31 | Requires: %{name}-libs = %{version}-%{release} |
ead4e980 | 32 | # sr@Latn vs. sr@latin |
33 | Conflicts: glibc-misc < 6:2.7 | |
20782b1d AM |
34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
35 | ||
20782b1d | 36 | %description |
18f8e10b | 37 | API documentation browser for GNOME. |
20782b1d | 38 | |
d20ab5a4 JR |
39 | %description -l pl.UTF-8 |
40 | Przeglądarka dokumentacji API dla GNOME. | |
20782b1d | 41 | |
64a66d5b | 42 | %package libs |
43 | Summary: Library to embed Devhelp in other applications | |
4188d237 | 44 | Summary(pl.UTF-8): Biblioteka do osadzania Devhelp w innych aplikacjach |
f883acb4 | 45 | Group: X11/Libraries |
64a66d5b | 46 | |
47 | %description libs | |
18f8e10b | 48 | Library of Devhelp for embedding into other applications. |
64a66d5b | 49 | |
d20ab5a4 | 50 | %description libs -l pl.UTF-8 |
18f8e10b | 51 | Biblioteka Devhelp do osadzania w innych aplikacjach. |
64a66d5b | 52 | |
1609a537 | 53 | %package devel |
64a66d5b | 54 | Summary: Headers for Devhelp library |
4188d237 | 55 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Devhelp |
f883acb4 | 56 | Group: X11/Development/Libraries |
64a66d5b | 57 | Requires: %{name}-libs = %{version}-%{release} |
647c8443 MB |
58 | Requires: gtk+2-devel >= 2:2.14.0 |
59 | Requires: libwnck-devel >= 2.24.0 | |
1609a537 | 60 | |
61 | %description devel | |
64a66d5b | 62 | Headers for Devhelp library. |
1609a537 | 63 | |
d20ab5a4 JR |
64 | %description devel -l pl.UTF-8 |
65 | Pliki nagłówkowe biblioteki Devhelp. | |
1609a537 | 66 | |
67 | %package static | |
64a66d5b | 68 | Summary: Static Devhelp library |
4188d237 | 69 | Summary(pl.UTF-8): Statyczna biblioteka Devhelp |
f883acb4 | 70 | Group: X11/Development/Libraries |
64a66d5b | 71 | Requires: %{name}-devel = %{version}-%{release} |
1609a537 | 72 | |
73 | %description static | |
64a66d5b | 74 | Static version of Devhelp library. |
1609a537 | 75 | |
d20ab5a4 | 76 | %description static -l pl.UTF-8 |
64a66d5b | 77 | Statyczna biblioteka Devhelp. |
1609a537 | 78 | |
e7c0fa80 MG |
79 | %package -n gedit2-plugin-devhelp |
80 | Summary: Devhelp plugin for Gedit editor | |
4188d237 | 81 | Summary(pl.UTF-8): Wtyczka devhelpa dla edytora Gedit |
1cf29e7b | 82 | Group: X11/Applications |
249ab429 | 83 | Requires: %{name} = %{version}-%{release} |
e7c0fa80 MG |
84 | Requires: gedit2 |
85 | ||
86 | %description -n gedit2-plugin-devhelp | |
18f8e10b | 87 | Allows to browse API documentation in Gedit. |
e7c0fa80 | 88 | |
d20ab5a4 JR |
89 | %description -n gedit2-plugin-devhelp -l pl.UTF-8 |
90 | Umożliwia przeglądanie dokumentacji API w Gedit. | |
e7c0fa80 | 91 | |
20782b1d AM |
92 | %prep |
93 | %setup -q | |
c145ed5a | 94 | %patch0 -p1 |
20782b1d AM |
95 | |
96 | %build | |
647c8443 | 97 | %{__intltoolize} |
0574367f | 98 | %{__libtoolize} |
647c8443 | 99 | %{__aclocal} |
0574367f | 100 | %{__autoconf} |
101 | %{__autoheader} | |
102 | %{__automake} | |
b42350d2 | 103 | %configure \ |
90adff81 | 104 | --enable-static \ |
8bacc6fc MB |
105 | --disable-schemas-install \ |
106 | --disable-silent-rules | |
20782b1d AM |
107 | %{__make} |
108 | ||
109 | %install | |
110 | rm -rf $RPM_BUILD_ROOT | |
35ab6b2c | 111 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/gconf \ |
621cc9d4 | 112 | $RPM_BUILD_ROOT%{_datadir}/%{name}/{books,specs} |
20782b1d AM |
113 | |
114 | %{__make} install \ | |
944db8de | 115 | DESTDIR=$RPM_BUILD_ROOT |
20782b1d | 116 | |
3b7e6c76 | 117 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gedit-2/plugins/%{name}/*.py |
2dc813cf | 118 | |
20782b1d AM |
119 | %find_lang %{name} |
120 | ||
121 | %clean | |
122 | rm -rf $RPM_BUILD_ROOT | |
123 | ||
a5373a6b | 124 | %post |
2dc813cf | 125 | %gconf_schema_install devhelp.schemas |
18f8e10b | 126 | %update_icon_cache hicolor |
a5373a6b | 127 | |
2dc813cf | 128 | %preun |
129 | %gconf_schema_uninstall devhelp.schemas | |
a5373a6b | 130 | |
18f8e10b | 131 | %postun |
132 | %update_icon_cache hicolor | |
133 | ||
2f4b9d55 | 134 | %post libs -p /sbin/ldconfig |
135 | %postun libs -p /sbin/ldconfig | |
1609a537 | 136 | |
20782b1d AM |
137 | %files -f %{name}.lang |
138 | %defattr(644,root,root,755) | |
4743b658 | 139 | %doc AUTHORS ChangeLog NEWS README TODO |
f883acb4 | 140 | %attr(755,root,root) %{_bindir}/devhelp |
9a1ccdd3 | 141 | %{_datadir}/%{name} |
f883acb4 MB |
142 | %{_desktopdir}/devhelp.desktop |
143 | %{_iconsdir}/hicolor/*/apps/*.png | |
144 | %{_iconsdir}/hicolor/scalable/apps/*.svg | |
18f8e10b | 145 | %{_sysconfdir}/gconf/schemas/devhelp.schemas |
1609a537 | 146 | |
64a66d5b | 147 | %files libs |
148 | %defattr(644,root,root,755) | |
1c31a4a4 MB |
149 | %attr(755,root,root) %{_libdir}/libdevhelp-2.so.*.*.* |
150 | %attr(755,root,root) %ghost %{_libdir}/libdevhelp-2.so.1 | |
64a66d5b | 151 | |
1609a537 | 152 | %files devel |
153 | %defattr(644,root,root,755) | |
1c31a4a4 MB |
154 | %attr(755,root,root) %{_libdir}/libdevhelp-2.so |
155 | %{_libdir}/libdevhelp-2.la | |
156 | %{_pkgconfigdir}/libdevhelp-2.0.pc | |
157 | %{_includedir}/devhelp-2.0 | |
1609a537 | 158 | |
159 | %files static | |
160 | %defattr(644,root,root,755) | |
1c31a4a4 | 161 | %{_libdir}/libdevhelp-2.a |
e7c0fa80 MG |
162 | |
163 | %files -n gedit2-plugin-devhelp | |
164 | %defattr(644,root,root,755) | |
1cf29e7b | 165 | %dir %{_libdir}/gedit-2/plugins/%{name} |
18f8e10b | 166 | %{_libdir}/gedit-2/plugins/%{name}.gedit-plugin |
e7c0fa80 | 167 | %{_libdir}/gedit-2/plugins/%{name}/*.py[oc] |