Summary: Tools to create, manage, and publish documentation for Yelp
Summary(pl.UTF-8): Narzędzia do tworzenia, zarządzania i publikowania dokumentacji dla Yelpa
Name: yelp-tools
-Version: 3.38.0
+Version: 40.0
Release: 1
License: GPL v2+ with exceptions
Group: Libraries
-Source0: http://ftp.gnome.org/pub/GNOME/sources/yelp-tools/3.38/%{name}-%{version}.tar.xz
-# Source0-md5: 44ed3d4824a0a96ef45a13a1c79850a1
+Source0: https://download.gnome.org/sources/yelp-tools/40/%{name}-%{version}.tar.xz
+# Source0-md5: fb55d5c79a11be9dea1fdd4d49409a06
Patch0: %{name}-sh.patch
URL: https://wiki.gnome.org/Apps/Yelp
-BuildRequires: autoconf >= 2.50
-BuildRequires: automake >= 1:1.9
BuildRequires: itstool
BuildRequires: libxml2-progs >= 1:2.6.12
BuildRequires: libxslt-progs >= 1.1.8
+BuildRequires: meson >= 0.50.0
+BuildRequires: ninja >= 1.5
BuildRequires: pkgconfig
+BuildRequires: python3 >= 1:3
+BuildRequires: python3-lxml
BuildRequires: tar >= 1:1.22
BuildRequires: xz
-BuildRequires: yelp-xsl >= 3.18.0
+BuildRequires: yelp-xsl >= 40
Requires: itstool
Requires: libxml2-progs >= 1:2.6.12
Requires: libxslt-progs >= 1.1.8
-Requires: yelp-xsl >= 3.38.0
+Requires: yelp-xsl >= 40
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%patch0 -p1
%build
-%{__aclocal}
-%{__autoconf}
-%{__automake}
-%configure
-%{__make}
+%meson build \
+ -Dhelp=true
+
+%ninja_build -C build
%install
rm -rf $RPM_BUILD_ROOT
-%{__make} install \
- DESTDIR=$RPM_BUILD_ROOT
+%ninja_install -C build
+
+%find_lang %{name} --with-gnome
%clean
rm -rf $RPM_BUILD_ROOT
-%files
+%files -f %{name}.lang
%defattr(644,root,root,755)
-%doc AUTHORS COPYING ChangeLog NEWS README
+%doc AUTHORS COPYING MAINTAINERS NEWS README
%attr(755,root,root) %{_bindir}/yelp-build
%attr(755,root,root) %{_bindir}/yelp-check
%attr(755,root,root) %{_bindir}/yelp-new