]>
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 |
081208c2 | 4 | Version: 0.16.1 |
ead4e980 | 5 | Release: 3 |
0328db91 | 6 | License: GPL v2+ |
20782b1d | 7 | Group: X11/Applications |
3be2333b | 8 | Source0: http://ftp.gnome.org/pub/GNOME/sources/devhelp/0.16/%{name}-%{version}.tar.bz2 |
081208c2 | 9 | # Source0-md5: e464a7305dddeec224ae08e30bf38e58 |
40506027 | 10 | Patch0: %{name}-bookdir.patch |
2aa010a2 | 11 | Patch1: %{name}-mozilla_includes.patch |
f6af5a2c | 12 | URL: http://www.imendio.com/projects/devhelp/ |
081208c2 | 13 | BuildRequires: GConf2-devel >= 2.20.0 |
0574367f | 14 | BuildRequires: autoconf |
3be2333b | 15 | BuildRequires: automake >= 1:1.9 |
90adff81 | 16 | BuildRequires: gnome-common >= 2.18.0 |
82af920d PZ |
17 | BuildRequires: gnome-vfs2-devel >= 2.20.0 |
18 | BuildRequires: gtk+2-devel >= 2:2.12.0 | |
18f8e10b | 19 | BuildRequires: libglade2-devel >= 1:2.6.0 |
0574367f | 20 | BuildRequires: libtool |
82af920d | 21 | BuildRequires: libwnck-devel >= 2.20.0 |
5c3f0bd8 | 22 | BuildRequires: xulrunner-devel >= 1.8.0.4 |
0328db91 | 23 | BuildRequires: pkgconfig |
1cf29e7b | 24 | BuildRequires: python |
18f8e10b | 25 | BuildRequires: rpmbuild(macros) >= 1.311 |
9a1ccdd3 | 26 | BuildRequires: zlib-devel |
081208c2 | 27 | Requires(post,preun): GConf2 >= 2.20.0 |
464f31c2 | 28 | Requires(post,postun): desktop-file-utils |
735b8878 | 29 | Requires(post,postun): gtk+2 |
f51d3604 | 30 | Requires(post,postun): hicolor-icon-theme |
64a66d5b | 31 | Requires: %{name}-libs = %{version}-%{release} |
9ec5e121 | 32 | %requires_eq_to xulrunner xulrunner-devel |
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 | ||
99082f43 | 37 | # can be provided by mozilla or mozilla-embedded |
38 | %define _noautoreqdep libgtkembedmoz.so libxpcom.so | |
6a34f24e MB |
39 | # we have strict deps for it |
40 | %define _noautoreq libxpcom.so | |
99082f43 | 41 | |
20782b1d | 42 | %description |
18f8e10b | 43 | API documentation browser for GNOME. |
20782b1d | 44 | |
d20ab5a4 JR |
45 | %description -l pl.UTF-8 |
46 | Przeglądarka dokumentacji API dla GNOME. | |
20782b1d | 47 | |
64a66d5b | 48 | %package libs |
49 | Summary: Library to embed Devhelp in other applications | |
4188d237 | 50 | Summary(pl.UTF-8): Biblioteka do osadzania Devhelp w innych aplikacjach |
64a66d5b | 51 | Group: Libraries |
52 | ||
53 | %description libs | |
18f8e10b | 54 | Library of Devhelp for embedding into other applications. |
64a66d5b | 55 | |
d20ab5a4 | 56 | %description libs -l pl.UTF-8 |
18f8e10b | 57 | Biblioteka Devhelp do osadzania w innych aplikacjach. |
64a66d5b | 58 | |
1609a537 | 59 | %package devel |
64a66d5b | 60 | Summary: Headers for Devhelp library |
4188d237 | 61 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Devhelp |
64a66d5b | 62 | Group: Development/Libraries |
63 | Requires: %{name}-libs = %{version}-%{release} | |
1609a537 | 64 | |
65 | %description devel | |
64a66d5b | 66 | Headers for Devhelp library. |
1609a537 | 67 | |
d20ab5a4 JR |
68 | %description devel -l pl.UTF-8 |
69 | Pliki nagłówkowe biblioteki Devhelp. | |
1609a537 | 70 | |
71 | %package static | |
64a66d5b | 72 | Summary: Static Devhelp library |
4188d237 | 73 | Summary(pl.UTF-8): Statyczna biblioteka Devhelp |
64a66d5b | 74 | Group: Development/Libraries |
75 | Requires: %{name}-devel = %{version}-%{release} | |
1609a537 | 76 | |
77 | %description static | |
64a66d5b | 78 | Static version of Devhelp library. |
1609a537 | 79 | |
d20ab5a4 | 80 | %description static -l pl.UTF-8 |
64a66d5b | 81 | Statyczna biblioteka Devhelp. |
1609a537 | 82 | |
e7c0fa80 MG |
83 | %package -n gedit2-plugin-devhelp |
84 | Summary: Devhelp plugin for Gedit editor | |
4188d237 | 85 | Summary(pl.UTF-8): Wtyczka devhelpa dla edytora Gedit |
1cf29e7b | 86 | Group: X11/Applications |
249ab429 | 87 | Requires: %{name} = %{version}-%{release} |
e7c0fa80 MG |
88 | Requires: gedit2 |
89 | ||
90 | %description -n gedit2-plugin-devhelp | |
18f8e10b | 91 | Allows to browse API documentation in Gedit. |
e7c0fa80 | 92 | |
d20ab5a4 JR |
93 | %description -n gedit2-plugin-devhelp -l pl.UTF-8 |
94 | Umożliwia przeglądanie dokumentacji API w Gedit. | |
e7c0fa80 | 95 | |
20782b1d AM |
96 | %prep |
97 | %setup -q | |
c145ed5a | 98 | %patch0 -p1 |
0574367f | 99 | %patch1 -p1 |
20782b1d AM |
100 | |
101 | %build | |
0574367f | 102 | %{__libtoolize} |
2aa010a2 | 103 | %{__aclocal} -I m4 |
0574367f | 104 | %{__autoconf} |
105 | %{__autoheader} | |
106 | %{__automake} | |
b42350d2 | 107 | %configure \ |
90adff81 | 108 | --enable-static \ |
20782b1d AM |
109 | --disable-install-schemas |
110 | %{__make} | |
111 | ||
112 | %install | |
113 | rm -rf $RPM_BUILD_ROOT | |
35ab6b2c | 114 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/gconf \ |
621cc9d4 | 115 | $RPM_BUILD_ROOT%{_datadir}/%{name}/{books,specs} |
20782b1d AM |
116 | |
117 | %{__make} install \ | |
944db8de | 118 | DESTDIR=$RPM_BUILD_ROOT |
20782b1d | 119 | |
2dc813cf | 120 | rm -rf $RPM_BUILD_ROOT%{_datadir}/mime-info |
18f8e10b | 121 | rm -f $RPM_BUILD_ROOT%{_libdir}/gedit-2/plugins/%{name}/*.py |
2dc813cf | 122 | |
ead4e980 | 123 | [ -d $RPM_BUILD_ROOT%{_datadir}/locale/sr@latin ] || \ |
124 | mv -f $RPM_BUILD_ROOT%{_datadir}/locale/sr@{Latn,latin} | |
20782b1d AM |
125 | %find_lang %{name} |
126 | ||
127 | %clean | |
128 | rm -rf $RPM_BUILD_ROOT | |
129 | ||
a5373a6b | 130 | %post |
2dc813cf | 131 | %gconf_schema_install devhelp.schemas |
464f31c2 | 132 | %update_desktop_database_post |
18f8e10b | 133 | %update_icon_cache hicolor |
a5373a6b | 134 | |
2dc813cf | 135 | %preun |
136 | %gconf_schema_uninstall devhelp.schemas | |
a5373a6b | 137 | |
18f8e10b | 138 | %postun |
464f31c2 | 139 | %update_desktop_database_postun |
18f8e10b | 140 | %update_icon_cache hicolor |
141 | ||
2f4b9d55 | 142 | %post libs -p /sbin/ldconfig |
143 | %postun libs -p /sbin/ldconfig | |
1609a537 | 144 | |
20782b1d AM |
145 | %files -f %{name}.lang |
146 | %defattr(644,root,root,755) | |
4743b658 | 147 | %doc AUTHORS ChangeLog NEWS README TODO |
a5373a6b | 148 | %attr(755,root,root) %{_bindir}/devhelp* |
9a1ccdd3 | 149 | %{_datadir}/%{name} |
769eb951 | 150 | %{_desktopdir}/*.desktop |
92f78795 | 151 | %{_iconsdir}/hicolor/*/apps/* |
18f8e10b | 152 | %{_sysconfdir}/gconf/schemas/devhelp.schemas |
1609a537 | 153 | |
64a66d5b | 154 | %files libs |
155 | %defattr(644,root,root,755) | |
156 | %attr(755,root,root) %{_libdir}/lib*.so.*.* | |
157 | ||
1609a537 | 158 | %files devel |
159 | %defattr(644,root,root,755) | |
64a66d5b | 160 | %attr(755,root,root) %{_libdir}/lib*.so |
161 | %{_libdir}/lib*.la | |
162 | %{_pkgconfigdir}/*.pc | |
163 | %{_includedir}/* | |
1609a537 | 164 | |
165 | %files static | |
166 | %defattr(644,root,root,755) | |
64a66d5b | 167 | %{_libdir}/lib*.a |
e7c0fa80 MG |
168 | |
169 | %files -n gedit2-plugin-devhelp | |
170 | %defattr(644,root,root,755) | |
1cf29e7b | 171 | %dir %{_libdir}/gedit-2/plugins/%{name} |
18f8e10b | 172 | %{_libdir}/gedit-2/plugins/%{name}.gedit-plugin |
e7c0fa80 | 173 | %{_libdir}/gedit-2/plugins/%{name}/*.py[oc] |