]> git.pld-linux.org Git - packages/devhelp.git/blame - devhelp.spec
- updated to 0.21
[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
d63ad7bb
MB
4Version: 0.21
5Release: 1
0328db91 6License: GPL v2+
20782b1d 7Group: X11/Applications
d63ad7bb
MB
8Source0: http://ftp.gnome.org/pub/GNOME/sources/devhelp/0.21/%{name}-%{version}.tar.bz2
9# Source0-md5: 24ad71080dde0778cb42c30575b5aca6
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
9e58ff6a 27BuildRequires: xulrunner-devel >= 1.9-5
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
613d69e6 104%patch2 -p1
20782b1d
AM
105
106%build
0574367f 107%{__libtoolize}
2aa010a2 108%{__aclocal} -I m4
0574367f 109%{__autoconf}
110%{__autoheader}
111%{__automake}
b42350d2 112%configure \
90adff81 113 --enable-static \
d63ad7bb 114 --with-gecko=libxul-embedding \
20782b1d
AM
115 --disable-install-schemas
116%{__make}
117
118%install
119rm -rf $RPM_BUILD_ROOT
35ab6b2c 120install -d $RPM_BUILD_ROOT%{_sysconfdir}/gconf \
621cc9d4 121 $RPM_BUILD_ROOT%{_datadir}/%{name}/{books,specs}
20782b1d
AM
122
123%{__make} install \
944db8de 124 DESTDIR=$RPM_BUILD_ROOT
20782b1d 125
2dc813cf 126rm -rf $RPM_BUILD_ROOT%{_datadir}/mime-info
18f8e10b 127rm -f $RPM_BUILD_ROOT%{_libdir}/gedit-2/plugins/%{name}/*.py
2dc813cf 128
20782b1d
AM
129%find_lang %{name}
130
131%clean
132rm -rf $RPM_BUILD_ROOT
133
a5373a6b 134%post
2dc813cf 135%gconf_schema_install devhelp.schemas
464f31c2 136%update_desktop_database_post
18f8e10b 137%update_icon_cache hicolor
a5373a6b 138
2dc813cf 139%preun
140%gconf_schema_uninstall devhelp.schemas
a5373a6b 141
18f8e10b 142%postun
464f31c2 143%update_desktop_database_postun
18f8e10b 144%update_icon_cache hicolor
145
2f4b9d55 146%post libs -p /sbin/ldconfig
147%postun libs -p /sbin/ldconfig
1609a537 148
20782b1d
AM
149%files -f %{name}.lang
150%defattr(644,root,root,755)
4743b658 151%doc AUTHORS ChangeLog NEWS README TODO
f883acb4 152%attr(755,root,root) %{_bindir}/devhelp
9a1ccdd3 153%{_datadir}/%{name}
f883acb4
MB
154%{_desktopdir}/devhelp.desktop
155%{_iconsdir}/hicolor/*/apps/*.png
156%{_iconsdir}/hicolor/scalable/apps/*.svg
18f8e10b 157%{_sysconfdir}/gconf/schemas/devhelp.schemas
1609a537 158
64a66d5b 159%files libs
160%defattr(644,root,root,755)
7aa4c7a3 161%attr(755,root,root) %{_libdir}/libdevhelp-1.so.*.*.*
f883acb4 162%attr(755,root,root) %ghost %{_libdir}/libdevhelp-1.so.0
64a66d5b 163
1609a537 164%files devel
165%defattr(644,root,root,755)
7aa4c7a3
MB
166%attr(755,root,root) %{_libdir}/libdevhelp-1.so
167%{_libdir}/libdevhelp-1.la
168%{_pkgconfigdir}/libdevhelp-1.0.pc
169%{_includedir}/devhelp-1.0
1609a537 170
171%files static
172%defattr(644,root,root,755)
7aa4c7a3 173%{_libdir}/libdevhelp-1.a
e7c0fa80
MG
174
175%files -n gedit2-plugin-devhelp
176%defattr(644,root,root,755)
1cf29e7b 177%dir %{_libdir}/gedit-2/plugins/%{name}
18f8e10b 178%{_libdir}/gedit-2/plugins/%{name}.gedit-plugin
e7c0fa80 179%{_libdir}/gedit-2/plugins/%{name}/*.py[oc]
This page took 0.124444 seconds and 4 git commands to generate.