Compare commits
No commits in common. "rawhide" and "f44" have entirely different histories.
1 changed files with 8 additions and 4 deletions
12
zimpl.spec
12
zimpl.spec
|
|
@ -33,9 +33,9 @@ Patch: %{name}-test-bsearch.patch
|
||||||
|
|
||||||
# See https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
|
# See https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
|
||||||
ExcludeArch: %{ix86}
|
ExcludeArch: %{ix86}
|
||||||
BuildSystem: cmake
|
|
||||||
|
|
||||||
BuildRequires: bison
|
BuildRequires: bison
|
||||||
|
BuildRequires: cmake
|
||||||
BuildRequires: flex
|
BuildRequires: flex
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: pkgconfig(gmp)
|
BuildRequires: pkgconfig(gmp)
|
||||||
|
|
@ -80,14 +80,18 @@ that use libzimpl.
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1
|
%autosetup -p1
|
||||||
|
|
||||||
|
%conf
|
||||||
# Avoid warnings about obsolete invocations of grep
|
# Avoid warnings about obsolete invocations of grep
|
||||||
sed -i 's/fgrep/grep -F/' check/check.sh
|
sed -i 's/fgrep/grep -F/' check/check.sh
|
||||||
|
|
||||||
%conf -p
|
%build
|
||||||
export CFLAGS='%{build_cflags} -DFREEMEM -DNO_MSHELL'
|
export CFLAGS='%{build_cflags} -DFREEMEM -DNO_MSHELL'
|
||||||
export CXXFLAGS='%{build_cxxflags} -DFREEMEM -DNO_MSHELL'
|
export CXXFLAGS='%{build_cxxflags} -DFREEMEM -DNO_MSHELL'
|
||||||
|
%cmake
|
||||||
|
%cmake_build
|
||||||
|
|
||||||
%install -a
|
%install
|
||||||
|
%cmake_install
|
||||||
mkdir -p %{buildroot}%{_mandir}/man1
|
mkdir -p %{buildroot}%{_mandir}/man1
|
||||||
cp -p doc/zimpl.man %{buildroot}%{_mandir}/man1/zimpl.1
|
cp -p doc/zimpl.man %{buildroot}%{_mandir}/man1/zimpl.1
|
||||||
|
|
||||||
|
|
@ -99,9 +103,9 @@ mkdir -p %{_vpath_builddir}/zimpl
|
||||||
ln -s ../../src/zimpl/mmlscan.l %{_vpath_builddir}/zimpl
|
ln -s ../../src/zimpl/mmlscan.l %{_vpath_builddir}/zimpl
|
||||||
ln -s ../../src/zimpl/mmlparse2.y %{_vpath_builddir}/zimpl
|
ln -s ../../src/zimpl/mmlparse2.y %{_vpath_builddir}/zimpl
|
||||||
|
|
||||||
%check
|
|
||||||
# FIXME: Test qubo.zpl (qbo: lp) fails on ppc64le
|
# FIXME: Test qubo.zpl (qbo: lp) fails on ppc64le
|
||||||
%ifnarch %{power64}
|
%ifnarch %{power64}
|
||||||
|
%check
|
||||||
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}
|
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}
|
||||||
cd check
|
cd check
|
||||||
sh check.sh ../%{_vpath_builddir}/bin/zimpl
|
sh check.sh ../%{_vpath_builddir}/bin/zimpl
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue