Use _docdir macro

This commit is contained in:
Benjamin A. Beasley 2021-09-26 12:26:56 -04:00
parent 6acde1f72d
commit bfa6201e5c

View File

@ -85,7 +85,7 @@ Requires: libsigc++20-doc
%description doc
Documentation for cairomm%{apiver} can be viewed either through the devhelp
documentation browser or through a web browser at
%{_datadir}/doc/cairomm%{apiver}-%{apiver}/.
%{_docdir}/cairomm%{apiver}-%{apiver}/.
The API/ABI version series is %{apiver}.
@ -128,9 +128,9 @@ rm untracked/docs/reference/cairomm-%{apiver}.tag \
%install
%meson_install
install -t %{buildroot}%{_datadir}/doc/cairomm-%{apiver} -m 0644 -p \
install -t %{buildroot}%{_docdir}/cairomm-%{apiver} -m 0644 -p \
AUTHORS ChangeLog MAINTAINERS NEWS README
cp -rp examples %{buildroot}%{_datadir}/doc/cairomm-%{apiver}/
cp -rp examples %{buildroot}%{_docdir}/cairomm-%{apiver}/
%check
@ -153,7 +153,7 @@ cp -rp examples %{buildroot}%{_datadir}/doc/cairomm-%{apiver}/
%files doc
%license COPYING
%doc %{_datadir}/doc/cairomm-%{apiver}/
%doc %{_docdir}/cairomm-%{apiver}/
%doc %{_datadir}/devhelp/