changes for doc
OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/unison?expand=0&rev=46
This commit is contained in:
parent
9f5e9e83ee
commit
f7e27a0378
19
unison.spec
19
unison.spec
@ -37,10 +37,8 @@ Source1: %pkg.desktop
|
|||||||
BuildRequires: ocaml(ocaml_base_version) >= 4.08
|
BuildRequires: ocaml(ocaml_base_version) >= 4.08
|
||||||
BuildRequires: ocaml-rpm-macros >= 20231101
|
BuildRequires: ocaml-rpm-macros >= 20231101
|
||||||
%if "%build_flavor" == "doc"
|
%if "%build_flavor" == "doc"
|
||||||
%if 0%?suse_version > 1500 || 0%?sle_version > 150300
|
|
||||||
BuildRequires: hevea
|
BuildRequires: hevea
|
||||||
BuildRequires: lynx
|
BuildRequires: lynx
|
||||||
%endif
|
|
||||||
BuildRequires: texlive-collection-latex
|
BuildRequires: texlive-collection-latex
|
||||||
BuildRequires: texlive-metafont
|
BuildRequires: texlive-metafont
|
||||||
%else
|
%else
|
||||||
@ -79,7 +77,6 @@ replica to the other.
|
|||||||
%build
|
%build
|
||||||
%if "%build_flavor" == "doc"
|
%if "%build_flavor" == "doc"
|
||||||
%make_build docs
|
%make_build docs
|
||||||
ls -lart doc man
|
|
||||||
%else
|
%else
|
||||||
%make_build PREFIX=%_prefix
|
%make_build PREFIX=%_prefix
|
||||||
%endif
|
%endif
|
||||||
@ -95,7 +92,21 @@ do
|
|||||||
echo "%%doc %_defaultdocdir/%pkg/unison-manual.$ext" >> files
|
echo "%%doc %_defaultdocdir/%pkg/unison-manual.$ext" >> files
|
||||||
done
|
done
|
||||||
%else
|
%else
|
||||||
echo '%%doc src/COPYING' > files
|
# The presence of _defaultlicensedir is no inidicator for a usable %%license macro
|
||||||
|
# If it is defined, but rpm is still too old, it will default to the last License: line.
|
||||||
|
if bash -x -c 'read a b c < <(rpm --version)
|
||||||
|
set -- ${c//./ }
|
||||||
|
test $1 -lt 4 && exit 1
|
||||||
|
if test $1 -eq 4 && test $2 -lt 14
|
||||||
|
then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
exit 0'
|
||||||
|
then
|
||||||
|
echo '%%license src/COPYING' > files
|
||||||
|
else
|
||||||
|
echo '%%doc src/COPYING' > files
|
||||||
|
fi
|
||||||
%make_install PREFIX=%_prefix
|
%make_install PREFIX=%_prefix
|
||||||
|
|
||||||
mv %buildroot%_bindir/%name %buildroot%_bindir/%name-text
|
mv %buildroot%_bindir/%name %buildroot%_bindir/%name-text
|
||||||
|
Loading…
Reference in New Issue
Block a user