SHA256
1
0
forked from pool/jurand

Accepting request 1166565 from Java:packages

Small simplification of spec file

OBS-URL: https://build.opensuse.org/request/show/1166565
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/jurand?expand=0&rev=4
This commit is contained in:
Ana Guerrero 2024-04-10 15:49:29 +00:00 committed by Git OBS Bridge
commit 7c1a81a40a
2 changed files with 8 additions and 7 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Apr 10 06:01:59 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Simplify a bit the g++ BuildRequires
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Feb 21 14:01:27 UTC 2024 - Fridrich Strba <fstrba@suse.com> Wed Feb 21 14:01:27 UTC 2024 - Fridrich Strba <fstrba@suse.com>

View File

@ -32,13 +32,9 @@ Source0: https://github.com/fedora-java/jurand/archive/refs/tags/%{versio
Patch0: jurand-cxx20.patch Patch0: jurand-cxx20.patch
BuildRequires: %{rb_default_ruby_suffix}-rubygem-asciidoctor BuildRequires: %{rb_default_ruby_suffix}-rubygem-asciidoctor
BuildRequires: diffutils BuildRequires: diffutils
BuildRequires: gcc%{?with_gcc}-c++
BuildRequires: make BuildRequires: make
BuildRequires: xmlto BuildRequires: xmlto
%if 0%{?with_gcc:1}
BuildRequires: gcc%{with_gcc}-c++
%else
BuildRequires: gcc-c++
%endif
%description %description
The tool can be used for patching .java sources in cases where using sed is The tool can be used for patching .java sources in cases where using sed is
@ -51,7 +47,7 @@ rather than applying simple regular expressions on the source code.
%build %build
%if 0%{?with_gcc:1} %if 0%{?with_gcc}
export CXX=g++-%{with_gcc} export CXX=g++-%{with_gcc}
export CC=gcc-%{with_gcc} export CC=gcc-%{with_gcc}
%endif %endif
@ -66,7 +62,7 @@ export mandir=%{_mandir}/man7
./install.sh ./install.sh
%check %check
%if 0%{?with_gcc:1} %if 0%{?with_gcc}
export CXX=g++-%{with_gcc} export CXX=g++-%{with_gcc}
export CC=gcc-%{with_gcc} export CC=gcc-%{with_gcc}
%endif %endif