X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=yelp.spec;h=926d6379adc0e6a7c8928cb946c2d331fd515121;hb=52d46eaf720a92e369f82240e39a98b249bc644b;hp=1ce2de97915cae0db5160e2020a1a370f0da7703;hpb=dbf5935bf4fd187e2d7f9f32862585f8e26b2dd4;p=packages%2Fyelp.git diff --git a/yelp.spec b/yelp.spec index 1ce2de9..926d637 100644 --- a/yelp.spec +++ b/yelp.spec @@ -1,74 +1,111 @@ Summary: A system documentation reader from the GNOME project Summary(pl.UTF-8): Czytnik dokumentacji z projektu GNOME Name: yelp -Version: 2.30.2 -Release: 8 +Version: 3.38.2 +Release: 1 License: GPL v2 Group: X11/Applications -Source0: http://ftp.gnome.org/pub/GNOME/sources/yelp/2.30/%{name}-%{version}.tar.bz2 -# Source0-md5: d745dafd0c134e726511894621d9b050 -Patch0: %{name}-libxul.patch -URL: http://live.gnome.org/Yelp -BuildRequires: GConf2-devel >= 2.26.0 -BuildRequires: autoconf -BuildRequires: automake >= 1:1.9 +Source0: https://download.gnome.org/sources/yelp/3.38/%{name}-%{version}.tar.xz +# Source0-md5: e36148a18c7e7203d69c9eab616cc096 +URL: https://wiki.gnome.org/Apps/Yelp +BuildRequires: appstream-glib-devel +BuildRequires: autoconf >= 2.63 +BuildRequires: automake >= 1:1.11.2 BuildRequires: bzip2-devel -BuildRequires: dbus-glib-devel >= 0.74 -BuildRequires: gettext-devel -BuildRequires: gnome-common >= 2.24.0 -BuildRequires: gnome-doc-utils >= 0.20.0 -BuildRequires: gtk+2-devel >= 2:2.18.0 -BuildRequires: intltool >= 0.37.0 -BuildRequires: libbeagle-devel >= 0.3.0 -BuildRequires: libtool +BuildRequires: gettext-tools >= 0.19.8 +BuildRequires: glib2-devel >= 1:2.38.0 +BuildRequires: gtk+3-devel >= 3.13.3 +BuildRequires: gtk-doc >= 1.13 +BuildRequires: gtk-webkit4-devel >= 2.20.0 +BuildRequires: itstool >= 1.2.0 +BuildRequires: libtool >= 2:2.2.6 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: xorg-lib-libSM-devel -BuildRequires: xulrunner-devel >= 2:2.0 -BuildRequires: zlib-devel -Requires(post,postun): gtk-update-icon-cache -Requires(post,postun): hicolor-icon-theme -Requires(post,preun): GConf2 +BuildRequires: rpmbuild(macros) >= 1.752 +BuildRequires: sqlite3-devel >= 3 +BuildRequires: tar >= 1:1.22 +BuildRequires: xz +BuildRequires: xz-devel >= 1:4.9 +BuildRequires: yelp-xsl >= 3.28.0 +Requires(post,postun): desktop-file-utils +Requires(post,postun): glib2 >= 1:2.38.0 +Requires: %{name}-libs = %{version}-%{release} +Requires: docbook-dtd412-xml +Requires: docbook-dtd42-xml +Requires: docbook-dtd43-xml +Requires: docbook-dtd44-xml Requires: docbook-style-xsl >= 1.55.0 -Requires: gnome-doc-utils >= 0.20.0 -Requires: scrollkeeper -%requires_eq_to xulrunner xulrunner-devel -# sr@Latn vs. sr@latin -Conflicts: glibc-misc < 6:2.7 +Requires: yelp-xsl >= 3.38.0 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 help/documentation browser. It is designed to help -you browse all the documentation on your system in one central tool. +Yelp is the default help browser for the GNOME desktop. Yelp provides +a simple graphical interface for viewing DocBook, HTML, man, and info +formatted documentation. %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. +Yelp jest domyślną przeglądarką pomocy dla biurka GNOME. Dostarcza +prosty graficzny interfejs do oglądania dokumentacji w formatach +DocBook, HTML, man i info. + +%package libs +Summary: yelp library +Summary(pl.UTF-8): Biblioteka yelp +Group: Libraries + +%description libs +yelp library. + +%description libs -l pl.UTF-8 +Biblioteka yelp. + +%package devel +Summary: Header files for yelp library +Summary(pl.UTF-8): Pliki nagłówkowe biblioteki yelp +Group: Development/Libraries +Requires: %{name}-libs = %{version}-%{release} +Requires: glib2-devel >= 1:2.38.0 +Requires: gtk+3-devel >= 3.13.3 +Requires: gtk-webkit4-devel >= 2.20.0 +Requires: libxml2-devel >= 1:2.6.31 +Requires: libxslt-devel >= 1.1.22 + +%description devel +Header files for yelp library. + +%description devel -l pl.UTF-8 +Pliki nagłówkowe biblioteki yelp. + +%package apidocs +Summary: yelp library API documentation +Summary(pl.UTF-8): Dokumentacja API biblioteki yelp +Group: Documentation +Requires: gtk-doc-common +%{?noarchpackage} + +%description apidocs +yelp library API documentation. + +%description apidocs -l pl.UTF-8 +Dokumentacja API biblioteki yelp. %prep %setup -q -%patch0 -p1 %build -%{__intltoolize} %{__libtoolize} %{__aclocal} -I m4 %{__autoconf} %{__autoheader} %{__automake} -%configure -%{__make} -j1 \ - CFLAGS="%{rpmcflags} -DI_KNOW_RARIAN_0_8_IS_UNSTABLE" +%configure \ + --disable-silent-rules \ + --disable-schemas-compile \ + --disable-static \ + --disable-gtk-doc \ + --with-html-dir=%{_gtkdocdir} +%{__make} %install rm -rf $RPM_BUILD_ROOT @@ -76,27 +113,51 @@ rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT +%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la +%{__rm} $RPM_BUILD_ROOT%{_libdir}/yelp/web-extensions/*.la + %find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT %post -%gconf_schema_install yelp.schemas -%update_icon_cache hicolor - -%preun -%gconf_schema_uninstall yelp.schemas +%update_desktop_database_post +%glib_compile_schemas %postun -%update_icon_cache hicolor +%update_desktop_database_postun +%glib_compile_schemas + +%post libs -p /sbin/ldconfig +%postun libs -p /sbin/ldconfig %files -f %{name}.lang %defattr(644,root,root,755) -%doc README ChangeLog NEWS TODO AUTHORS +%doc AUTHORS NEWS README TODO %attr(755,root,root) %{_bindir}/gnome-help %attr(755,root,root) %{_bindir}/yelp +%{_datadir}/glib-2.0/schemas/org.gnome.yelp.gschema.xml +%{_datadir}/metainfo/yelp.appdata.xml %{_datadir}/yelp +%{_datadir}/yelp-xsl/xslt/common/domains/yelp.xml %{_desktopdir}/yelp.desktop -%{_iconsdir}/hicolor/*/*/yelp-icon-big.png -%{_sysconfdir}/gconf/schemas/yelp.schemas +%{_iconsdir}/hicolor/scalable/apps/org.gnome.Yelp.svg +%{_iconsdir}/hicolor/symbolic/apps/org.gnome.Yelp-symbolic.svg + +%files libs +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/libyelp.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libyelp.so.0 +%dir %{_libdir}/yelp +%dir %{_libdir}/yelp/web-extensions +%attr(755,root,root) %{_libdir}/yelp/web-extensions/libyelpwebextension.so + +%files devel +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/libyelp.so +%{_includedir}/libyelp + +%files apidocs +%defattr(644,root,root,755) +%{_gtkdocdir}/libyelp