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