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