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