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