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