adapt to new cmake macros

This commit is contained in:
Fabio Valentini 2020-08-01 22:53:12 +02:00
parent 8de504a7c6
commit 1c01325a1e
No known key found for this signature in database
GPG Key ID: 5AC5F572E5D410AF

View File

@ -1,6 +1,6 @@
Name: graphite2
Version: 1.3.14
Release: 4%{?dist}
Release: 5%{?dist}
Summary: Font rendering capabilities for complex non-Roman writing systems
License: (LGPLv2+ or GPLv2+ or MPLv1.1) and (Netscape or GPLv2+ or LGPLv2+)
@ -19,12 +19,14 @@ BuildRequires: python3-fonttools
BuildRequires: freetype-devel
# dependencies for building the manual
BuildRequires: texlive-helvetic
BuildRequires: texlive-sectsty
BuildRequires: texlive-tocloft
BuildRequires: texlive-xtab
BuildRequires: texlive-multirow
# and even more dependencies for building the manual
BuildRequires: tex(hanging.sty)
BuildRequires: tex(adjustbox.sty)
BuildRequires: tex(stackengine.sty)
@ -36,6 +38,10 @@ BuildRequires: /usr/bin/gsftopk
BuildRequires: tex(psfonts.map)
BuildRequires: tex(8r.enc)
BuildRequires: /usr/bin/makeindex
BuildRequires: /usr/bin/mf
BuildRequires: tex(wasyfont.tex)
BuildRequires: tex(pcrr8t.tfm)
# to be continued ...
%description
Graphite2 is a project within SILs Non-Roman Script Initiative and Language
@ -59,21 +65,21 @@ Includes and definitions for developing with graphite2.
%build
%cmake -DGRAPHITE2_COMPARE_RENDERER=OFF .
%make_build
%cmake -DGRAPHITE2_COMPARE_RENDERER=OFF
%cmake_build
%cmake_build --target docs
make docs
sed -i -e 's!<a id="id[a-z]*[0-9]*"></a>!!g' doc/manual.html
sed -i -e 's!<a id="id[a-z]*[0-9]*"></a>!!g' %{_vpath_builddir}/doc/manual.html
%install
%make_install
%cmake_install
find %{buildroot} -type f -name "*.la" -print -delete
%check
ctest
%ctest
%files
@ -86,7 +92,7 @@ ctest
%files devel
%doc doc/manual.html
%doc %{_vpath_builddir}/doc/manual.html
%{_includedir}/%{name}/
@ -99,6 +105,9 @@ ctest
%changelog
* Sat Aug 01 2020 Fabio Valentini <decathorpe@gmail.com> - 1.3.14-5
- Adapt to new cmake macros.
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.14-4
- Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild