X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=yelp.spec;h=c7c1a1b94f1c6313d34a63ac6b35e9134b9751e8;hb=aee6e36774da03a7bb4c4b1e13d69f59c4346475;hp=0033a097c8d49cd0a6b731b55621c927979edf43;hpb=6238347121a45522f71b91cd7e175f167b65ff29;p=packages%2Fyelp.git diff --git a/yelp.spec b/yelp.spec index 0033a09..c7c1a1b 100644 --- a/yelp.spec +++ b/yelp.spec @@ -1,58 +1,83 @@ -# TODO: -# move stylesheets to /usr/share/sgml -# use more generic stylesheet location -# remove docbook dtds and stylesheets from package and use system xml catalog -Summary: A system documentation reader from the Gnome project -Summary(pl): Czytnik dokumentacji z projektu GNOME +Summary: A system documentation reader from the GNOME project +Summary(pl.UTF-8): Czytnik dokumentacji z projektu GNOME Name: yelp -Version: 2.3.4 +Version: 2.24.0 Release: 1 -License: GPL +License: GPL v2 Group: X11/Applications -Source0: http://ftp.gnome.org/pub/gnome/sources/%{name}/2.3/%{name}-%{version}.tar.bz2 -# Source0-md5: 45221f8861337c460d17ad30ac2ed041 -Patch0: %{name}-pixmapsdir.patch -URL: http://www.gnome.org/ -BuildRequires: GConf2-devel >= 2.1.90 -BuildRequires: ORBit2-devel >= 2.6.0 +Source0: http://ftp.gnome.org/pub/GNOME/sources/yelp/2.24/%{name}-%{version}.tar.bz2 +# Source0-md5: 15eb2f538d970600c1e0a461f7d88b55 +# http://bugzilla.gnome.org/show_bug.cgi?id=552128 +Patch0: %{name}-libxul.patch +URL: http://live.gnome.org/Yelp +BuildRequires: GConf2-devel >= 2.22.0 BuildRequires: autoconf -BuildRequires: automake +BuildRequires: automake >= 1:1.9 BuildRequires: bzip2-devel -BuildRequires: glib2-devel >= 2.2.0 -BuildRequires: gnome-vfs2-devel >= 2.2.0 -BuildRequires: libgnome-devel >= 2.1.90 -BuildRequires: libgnomeui-devel >= 2.1.90 -BuildRequires: libgtkhtml-devel >= 2.2.0 +BuildRequires: dbus-glib-devel >= 0.74 +BuildRequires: gettext-devel +BuildRequires: gnome-common >= 2.20.0 +BuildRequires: gnome-doc-utils >= 0.12.1 +BuildRequires: gnome-vfs2-devel >= 2.22.0 +BuildRequires: gtk+2-devel >= 2:2.12.8 +BuildRequires: intltool >= 0.37.0 +BuildRequires: libbeagle-devel >= 0.3.0 +BuildRequires: libglade2-devel >= 1:2.6.2 +BuildRequires: libgnomeui-devel >= 2.22.0 BuildRequires: libtool -BuildRequires: libxslt-devel >= 1.0.24 -BuildRequires: pkgconfig >= 0.12.0 -BuildRequires: rpm-build >= 4.1-10 +BuildRequires: libxml2-devel >= 1:2.6.31 +BuildRequires: libxslt-devel >= 1.1.22 +BuildRequires: pkgconfig >= 1:0.15.0 +BuildRequires: rarian-devel >= 0.7.0 +BuildRequires: rpmbuild(macros) >= 1.311 +BuildRequires: startup-notification-devel >= 0.8 +BuildRequires: xulrunner-devel >= 1.9-5 +BuildRequires: zlib-devel +Requires(post,postun): gtk+2 +Requires(post,postun): hicolor-icon-theme +Requires(post,preun): GConf2 Requires: docbook-style-xsl >= 1.55.0 -Requires: gnome-vfs2 >= 2.2.0 +Requires: gnome-doc-utils >= 0.12.1 +Requires: gnome-vfs2 >= 2.22.0 +Requires: libgnomeui >= 2.22.0 Requires: scrollkeeper -Requires(post): GConf2 +%requires_eq_to xulrunner xulrunner-devel +# sr@Latn vs. sr@latin +Conflicts: glibc-misc < 6:2.7 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) +# can be provided by mozilla or mozilla-embedded +%define _noautoreqdep libgtkembedmoz.so libgtksuperwin.so libxpcom.so +# we have strict deps for it +%define _noautoreq libxpcom.so + %description -Yelp is the Gnome 2 help/documentation browser. It is designed to help +Yelp is the GNOME help/documentation browser. It is designed to help you browse all the documentation on your system in one central tool. -%description -l pl -Yelp jest przegl±dark± pomocy i dokumentacji GNOME 2. Ma pomagaæ w -przegl±daniu ca³ej dokumentacji systemu w jednym, centralnym -narzêdziu. +%description -l pl.UTF-8 +Yelp jest przeglądarką pomocy i dokumentacji GNOME. Umożliwia +przeglądanie całej dokumentacji systemu za pomocą jednego, centralnego +narzędzia. %prep -%setup -q +%setup -q %patch0 -p1 +# fix locale names +sed -i -e s#nds@NFE#nds# po/LINGUAS +mv po/nds{@NFE,}.po + %build +%{__intltoolize} %{__libtoolize} -%{__aclocal} -I %{_aclocaldir}/gnome2-macros +%{__aclocal} -I m4 %{__autoconf} +%{__autoheader} %{__automake} %configure -%{__make} +%{__make} -j1 \ + CFLAGS="%{rpmcflags} -DI_KNOW_RARIAN_0_8_IS_UNSTABLE" %install rm -rf $RPM_BUILD_ROOT @@ -60,23 +85,27 @@ rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT -%find_lang %{name} --with-gnome --all-name +%find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT -%post -%gconf_schema_install +%post +%gconf_schema_install yelp.schemas +%update_icon_cache hicolor + +%preun +%gconf_schema_uninstall yelp.schemas + +%postun +%update_icon_cache hicolor %files -f %{name}.lang %defattr(644,root,root,755) %doc README ChangeLog NEWS TODO AUTHORS -%attr(755,root,root) %{_bindir}/* -%{_datadir}/%{name} -%{_libdir}/bonobo/servers/* -%attr(755,root,root) %{_libdir}/%{name}-db2html -%attr(755,root,root) %{_libdir}/%{name}-info2html -%attr(755,root,root) %{_libdir}/%{name}-man2html -%{_datadir}/sgml/docbook/%{name} -%{_pixmapsdir}/%{name} -%{_desktopdir}/* +%attr(755,root,root) %{_bindir}/gnome-help +%attr(755,root,root) %{_bindir}/yelp +%{_datadir}/yelp +%{_desktopdir}/yelp.desktop +%{_iconsdir}/hicolor/*/*/yelp-icon-big.png +%{_sysconfdir}/gconf/schemas/yelp.schemas