mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 06:54:47 +08:00
fish.spec: depend on system pcre2 libraries on all platforms
These are now available on all supported platforms, and the download process tends to break on build workers (where Internet access is deliberately denied).
This commit is contained in:
parent
f7c411d5a5
commit
c3c8cf1e01
|
@ -9,12 +9,12 @@ Group: System/Shells
|
|||
URL: https://fishshell.com/
|
||||
|
||||
Source0: %{name}_@VERSION@.orig.tar.xz
|
||||
BuildRequires: ncurses-devel gettext gcc-c++ xz
|
||||
BuildRequires: ncurses-devel gettext gcc-c++ xz pcre2-devel
|
||||
|
||||
%if 0%{?rhel} && 0%{?rhel} < 8
|
||||
BuildRequires: cmake3
|
||||
%else
|
||||
BuildRequires: cmake pcre2-devel
|
||||
BuildRequires: cmake
|
||||
%endif
|
||||
|
||||
%if 0%{?suse_version}
|
||||
|
@ -53,9 +53,6 @@ is simple but incompatible with other shell languages.
|
|||
%setup -q -n %{name}-@VERSION@
|
||||
|
||||
%build
|
||||
# CMake macros define -DBUILD_SHARED_LIBS:BOOL=ON, which breaks the
|
||||
# bundled PCRE2 static library.
|
||||
EXTRA_CMAKE_FLAGS="$EXTRA_CMAKE_FLAGS -DBUILD_SHARED_LIBS:BOOL=OFF"
|
||||
# CMake macros define the wrong sysconfdir arguments
|
||||
EXTRA_CMAKE_FLAGS="$EXTRA_CMAKE_FLAGS -DCMAKE_INSTALL_SYSCONFDIR=%{_sysconfdir}"
|
||||
%if 0%{?rhel} && 0%{?rhel} < 8
|
||||
|
|
Loading…
Reference in New Issue
Block a user