mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-01 09:31:58 +00:00
f08edf4eef
* bump: python-shibuya * bump: osu-lazer * bump: zed-preview * bump(branch): ffmpeg * fix(dracut-strip-trigger): make trigger run later than dracut's one (#6046) Signed-off-by: madomado <madonuko@outlook.com> * bump: zig-master-bootstrap * bump(branch): zig-master * bump: ruffle-nightly * bump(nightly): legcord-nightly micro-nightly zed-nightly grabnim Carla-nightly scx-scheds-nightly spotx-bash * bump: rust-mise * bump: peazip * bump: copyparty * bump: copyparty * bump: zig-master-bootstrap * bump: copyparty * bump(branch): zig-master * bump: zed-preview * bump: lomiri-system-settings * bump: rpcs3 * bump: rust-mise * bump(nightly): mpv-nightly hyprutils.nightly ghostty-nightly zed-nightly scx-scheds-nightly * bump: ruffle-nightly golang-github-abenz1267-walker zed yt-dlp-git * bump: xwayland-satellite * bump: terra-mock-configs * bump: zig-master-bootstrap * bump(branch): zig-master * feat(ci): better build workflows [attempt 2] (#6006) * feat(ci): better build workflows * fix(ci/json-build): forgot about the type * chore: test if autobuild works * Revert "chore: test if autobuild works" This reverts commit73fe8e636f. * fix(ci/build): delay setup git * fix(ci/build): need to git add all * fix(ci/build): compact output from jq * chore(ci/build): add run-name * fix(ci/autobuild): inherit secrets Signed-off-by: madomado <madonuko@outlook.com> * fix(ci/build): inherit secrets Signed-off-by: madomado <madonuko@outlook.com> --------- Signed-off-by: madomado <madonuko@outlook.com> * bump: rust-mise * bump: yt-dlp-git * bump: zed-preview zed * bump: yt-dlp-git * bump: zed-preview * bump: rio * bump: codium * bump: yt-dlp-git * bump: zed-preview * bump: yt-dlp-git * bump: ruffle-nightly zig-master-bootstrap tela-icon-theme * bump(nightly): mpv-nightly winetricks-git ghostty-nightly zed-nightly prismlauncher-nightly libva-nvidia-driver scx-scheds-nightly rpi-utils * bump(branch): zig-master * bump: electron * bump: osu-lazer * bump: discord-canary-openasar discord-canary * feat(ci): support f43 (#6088) * Add: rp-appset (#6083) * bump: xone * bump(branch): xone-kmod dkms-xone * bump: discord-canary-openasar discord-canary * bump: discord-openasar discord golang-google-grpc.terra * bump: yt-dlp-git * bump: yt-dlp-git * bump: yt-dlp-git * bump: steam * bump: steam * bump: steam yt-dlp-git * bump: steam yt-dlp-git * bump: yt-dlp-git * bump: steam yt-dlp-git * bump: steam * bump: steam * bump(nightly): envision winetricks-git ghostty-nightly micro-nightly zed-nightly tdlib-nightly openbangla-keyboard-nightly scx-scheds-nightly rpi-utils * bump: discord-canary-openasar discord-canary ruffle-nightly yt-dlp-git * bump: yt-dlp-git * bump: steam * bump: steam * bump: steam * bump: steam * bump: steam * bump: rpcs3 * bump: steam yt-dlp-git * bump: steam * bump: steam * bump: steam * bump: steam * bump: steam * bump: steam * bump: dart * bump: steam * bump: steam * bump: steam mesa * bump: steam rust-mise * bump: steam * bump: yt-dlp-git * bump: steam * bump: discord-openasar discord * add: android-studio package (#6097) * feat: add android-studio package * chore: add packager metadata to spec file * chore: add update.rhai and assist feedback * bump: signal-desktop zig-master-bootstrap * bump(branch): zig-master * bump: yt-dlp-git * bump: rpcs3 * bump: zed-preview zed * bump: zed-preview * bump: discord-canary-openasar discord-canary ruffle-nightly rust-mise * bump(nightly): mpv-nightly hyprgraphics.nightly ghostty-nightly micro-nightly zed-nightly prismlauncher-nightly scx-scheds-nightly * bump: golang-github-u-root * bump: fluent-icon-theme * bump: rpcs3 * bump: zed-preview * bump: golang-github-abenz1267-walker * bump: discord-ptb-openasar discord-ptb codium * bump: bitwarden-cli.bin * bump(branch): bitwarden-cli * bump: yt-dlp-git * bump: copyparty * bump: yt-dlp-git * bump(nightly): hyprutils.nightly ghostty-nightly zed-nightly prismlauncher-nightly nim-nightly nvidia-patch scx-scheds-nightly rpi-utils * bump: flatpost ruffle-nightly * bump: zig-master-bootstrap yt-dlp-git * bump(branch): zig-master * bump: golang-github-abenz1267-walker * bump: golang-github-abenz1267-walker * bump(branch): ffmpeg * bump: rust-mise * bump: maple-fonts * bump: rust-mise * bump: lomiri-system-settings * fix(zed*): exec correct binary from .desktop (#6077) Resolve #6056 * bump: zapret * bump: zed-preview zed * bump: zed-preview rust-mise * bump: rust-mise * bump: zig-master-bootstrap * bump(branch): zig-master * bump: discord-canary-openasar discord-canary * fix(zed): change license path (#6109) change license path from plex-mono/license.txt to ibm-plex-sans/license.txt * fix: micro (#6105) Signed-off-by: madomado <madonuko@outlook.com> * add: television (#6051) * fix: fluent-icon-theme (#6106) Signed-off-by: madomado <madonuko@outlook.com> * fix(signal-desktop): build sticker-creator (#6092) * add: flameshot.qt5 (#6087) * bump: rust-television * bump: yt-dlp-git * bump: ruffle-nightly yt-dlp-git * bump(nightly): mpv-nightly ghostty-nightly zed-nightly scx-scheds-nightly * fix(emulationstation-de): Drop patch, update build deps (#6117) * fix(emulationstation-de): Drop patch Signed-off-by: Gilver <rockgrub@disroot.org> * fix: bluez-libs-devel Signed-off-by: Gilver <rockgrub@disroot.org> * fix: vulkan-loader-devel Signed-off-by: Gilver <rockgrub@disroot.org> --------- Signed-off-by: Gilver <rockgrub@disroot.org> * bump: golang-github-abenz1267-walker * bump: lomiri-system-settings * bump: golang-github-abenz1267-walker * bump: golang-github-abenz1267-walker * bump: golang-github-abenz1267-walker * bump: golang-github-abenz1267-walker * fix(android-studio): Don't overide libedit library (#6141) * bump: komikku * bump: ruffle-nightly yt-dlp-git * bump(nightly): mpv-nightly ghostty-nightly zed-nightly spotx-bash * bump: zig-master-bootstrap * bump(branch): zig-master * bump: groovy groovy-docs * bump: golang-github-abenz1267-walker * bump: rpcs3 * bump: rpcs3 * bump: ruffle-nightly * bump(nightly): mpv-nightly winetricks-git ghostty-nightly zed-nightly nvidia-patch scx-scheds-nightly * bump: zig-master-bootstrap * bump(branch): zig-master * bump: flatpost * bump: lomiri-system-settings * bump: golang-github-abenz1267-walker * bump: rpcs3 * bump: discord-canary-openasar discord-canary * bump: flutter * bump: zed-preview sass * bump: discord-canary-openasar discord-canary * bump(nightly): legcord-nightly winetricks-git hyprutils.nightly ghostty-nightly micro-nightly zed-nightly scx-scheds-nightly * bump: ruffle-nightly * bump: bun-bin * bump: tela-icon-theme * bump: liblsp-dsp * bump: lomiri-system-settings * bump: tela-icon-theme * bump: tela-icon-theme * bump: chezmoi * bump: tela-icon-theme * bump: golang-github-abenz1267-walker * bump: golang-github-abenz1267-walker * bump: discord-openasar discord * bump: unity-session * feat: Enable D3D12 for WSL in Mesa (#6150) (#6151) (cherry picked from commit81a050dcb1) Co-authored-by: Kyle Gospodnetich <me@kylegospodneti.ch> * chore: Split dxil into dxil and dxil-libs, allows both 32-bit and 64-bit support for spir-v to dxil (#6156) (#6158) * chore: Split dxil into dxil and dxil-libs, allows both 32-bit and 64-bit support for spir-v to dxil * chore: Increase release * chore: Make dependency on mesa-dxil arch neutral --------- (cherry picked from commit7706984b3b) Signed-off-by: Kyle Gospodnetich <me@kylegospodneti.ch> Co-authored-by: Kyle Gospodnetich <me@kylegospodneti.ch> * bump: ruffle-nightly * bump(nightly): ghostty-nightly zed-nightly intel-ipu6-drivers scx-scheds-nightly * fix: Make rawhide match f42 (#6164) Signed-off-by: Kyle Gospodnetich <me@kylegospodneti.ch> * bump(branch): intel-ipu6-kmod dkms-intel-ipu6 * fix: stupid typo for large runners (#6163) * fix: stupid typo for large runners * fix: use format instead of broken nested variable sub * bump: readymade-git * Feat: Switch mesa to large runners (#6157) (#6171) * Feat: Switch mesa to large runners * Bump release * Bump release --------- (cherry picked from commitcf014e92ce) Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> * bump: zig-master-bootstrap * bump(branch): zig-master * gamescope: rebase to 3.16.3 (#6175) * bump: rust-mise * bump: hypridle * bump: zed-preview zed * bump: yt-dlp-git * bump: dart * bump: golang-github-abenz1267-walker * bump: zed-preview zed * bump: discord-canary-openasar discord-canary * bump: electron * bump: signal-desktop copyparty yt-dlp-git * bump: rpcs3 * bump: zig-master-bootstrap * bump: yt-dlp-git * bump(branch): zig-master * bump: yt-dlp-git * bump: yt-dlp-git * bump: ruffle-nightly yt-dlp-git * bump(nightly): ghostty-nightly zed-nightly nim-nightly scx-scheds-nightly rpi-utils * bump: yt-dlp-git * fix(komikku): add missing dependency on modern_colorthief (#6148) * bump: nodejs-backport * bump: anda-srpm-macros * bump: arduino-cli * fix(fluent-icon-theme): manually list out all files? (#6180) * fix(fluent-icon-theme): manually list out all files? Signed-off-by: madomado <madonuko@outlook.com> * bump Signed-off-by: madomado <madonuko@outlook.com> --------- Signed-off-by: madomado <madonuko@outlook.com> * fix(zed): missing rustc dep `libedit(x86-64)` (#6179) * bump: zig-master-bootstrap * fix(nodejs-backport): files (#6185) (#6186) (cherry picked from commit2e14d081bb) Signed-off-by: madomado <madonuko@outlook.com> Co-authored-by: madomado <madonuko@outlook.com> * bump(branch): zig-master * bump: android-studio * feat: remove %go_prep_online from all specs (#6194) (#6195) * feat: remove %go_prep_online from all specs * packager * fix: GO111MODULE=on * a * aa * aaa * hah? * feat: walker got rusted real? * fedora moment * /etc/xdg/walker/ --------- (cherry picked from commitaacc02e713) Signed-off-by: madomado <madonuko@outlook.com> Co-authored-by: madomado <madonuko@outlook.com> * bump: copyparty * bump: zed-preview zed * bump: ruffle-nightly * bump(nightly): mpv-nightly ghostty-nightly zed-nightly nim-nightly scx-scheds-nightly * bump: zig-master-bootstrap * bump(branch): zig-master * bump: walker * bump: discord-ptb-openasar discord-ptb * bump: zed-preview zed * bump: dwarfs * bump: switcheroo-control wine-dev yt-dlp-git * bump: rpcs3 * bump: yt-dlp-git * bump: zed-preview zed * bump: ruffle-nightly wine-staging * bump(nightly): mpv-nightly ghostty-nightly zed-nightly astal scx-scheds-nightly * bump(branch): astal-gtk * bump: zig-master-bootstrap * bump(branch): zig-master * perf(ci): use arm runners (#6202) * bump: wine-dxvk * bump: walker * fix(astal-gtk): add commit (#6204) Signed-off-by: madomado <madonuko@outlook.com> * feat(bootstrap): also init madoguchi? * feat(release): bump to 43 --------- Signed-off-by: madomado <madonuko@outlook.com> Signed-off-by: Gilver <rockgrub@disroot.org> Signed-off-by: Kyle Gospodnetich <me@kylegospodneti.ch> Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> Co-authored-by: Raboneko <raboneko@fyralabs.com> Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> Co-authored-by: Engels Tercero <75184282+like-engels@users.noreply.github.com> Co-authored-by: Eason <30045503+Eason0729@users.noreply.github.com> Co-authored-by: Gilver <rockgrub@disroot.org> Co-authored-by: Raboneko <119771935+raboneko@users.noreply.github.com> Co-authored-by: Kyle Gospodnetich <me@kylegospodneti.ch> Co-authored-by: lea <lleyton@fyralabs.com> Co-authored-by: Pornpipat Popum <cappy@cappuchino.xyz> Co-authored-by: Lélahel <lelahx@proton.me>
423 lines
12 KiB
RPMSpec
423 lines
12 KiB
RPMSpec
# Terra WINE Development branch
|
|
# Based on WineHQ's WINE builds with changes for our repos and update system
|
|
|
|
|
|
%define _lto_cflags %{nil}
|
|
%global flavor %nil
|
|
%global compat_package terra-wine-dev
|
|
# Cannot use the _datadir macro here or it will cause mass macro recursion
|
|
%global _prefix /usr/share/wine-dev
|
|
%global srcmajor 10.x
|
|
# Make this as a variable instead in case of WINE RCs
|
|
%global ver wine-10.14
|
|
%global cleanver %(echo %{ver} | sed 's/v//g;s/wine-//g')
|
|
|
|
# This is unfortunate but a lot of Fedora's/SUSE's hardening flags break WINE
|
|
%undefine _hardened_build
|
|
|
|
# Upstream WineHQ names this -devel, I have renamed it dev to signify it is the dev branch
|
|
# Also less confusing because it has a devel package
|
|
Name: wine-dev
|
|
Version: %(echo %{cleanver} | sed 's/-/~/g')
|
|
Release: 1%?dist
|
|
Epoch: 1
|
|
Summary: WINE Is Not An Emulator - runs MS Windows programs
|
|
License: LGPL-2.0-or-later
|
|
Group: Emulators
|
|
URL: https://www.winehq.org
|
|
|
|
%define lib_major 1
|
|
%define lib_name lib%{name}1
|
|
%define lib_name_devel lib%{name}-devel
|
|
|
|
%if 0%{?fedora} < 40
|
|
%ifarch x86_64
|
|
%define wine %{name}64
|
|
%define mark64 ()(64bit)
|
|
%else
|
|
%define wine %{name}
|
|
%define mark64 %{nil}
|
|
%endif
|
|
%endif
|
|
|
|
%if 0%{?fedora} >= 40
|
|
%define wine %{name}
|
|
%ifarch x86_64
|
|
%define mark64 ()(64bit)
|
|
%else
|
|
%define mark64 %{nil}
|
|
%endif
|
|
%endif
|
|
|
|
Source0: https://dl.winehq.org/wine/source/%{srcmajor}/wine-%{cleanver}.tar.xz
|
|
Source1: https://dl.winehq.org/wine/source/%{srcmajor}/wine-%{cleanver}.tar.xz.sign
|
|
|
|
# Alexandres key
|
|
Source99: wine.keyring
|
|
|
|
BuildRequires: alsa-lib-devel
|
|
BuildRequires: audiofile-devel
|
|
BuildRequires: autoconf
|
|
BuildRequires: bison
|
|
BuildRequires: coreutils
|
|
BuildRequires: cups-devel
|
|
BuildRequires: dbus-devel
|
|
BuildRequires: desktop-file-utils
|
|
BuildRequires: flex
|
|
BuildRequires: fontconfig-devel
|
|
BuildRequires: fontforge
|
|
BuildRequires: fontpackages-devel
|
|
BuildRequires: freeglut-devel
|
|
BuildRequires: freetype-devel
|
|
BuildRequires: gawk
|
|
BuildRequires: gcc
|
|
BuildRequires: gettext-devel
|
|
BuildRequires: giflib-devel
|
|
BuildRequires: gnupg2
|
|
BuildRequires: gnutls-devel
|
|
BuildRequires: gstreamer1-devel
|
|
BuildRequires: gstreamer1-plugins-base-devel
|
|
BuildRequires: icoutils
|
|
BuildRequires: ImageMagick-devel
|
|
BuildRequires: krb5-devel
|
|
BuildRequires: lcms2-devel
|
|
BuildRequires: libattr-devel
|
|
BuildRequires: libavcodec-free-devel
|
|
BuildRequires: libavformat-free-devel
|
|
BuildRequires: libavutil-free-devel
|
|
BuildRequires: libgphoto2-devel
|
|
BuildRequires: libieee1284-devel
|
|
BuildRequires: libnetapi-devel
|
|
BuildRequires: libpcap-devel
|
|
BuildRequires: librsvg2
|
|
BuildRequires: librsvg2-devel
|
|
BuildRequires: libstdc++-devel
|
|
BuildRequires: libudev-devel
|
|
BuildRequires: libusb1-devel
|
|
BuildRequires: libv4l-devel
|
|
BuildRequires: libX11-devel
|
|
BuildRequires: libXcomposite-devel
|
|
BuildRequires: libXcursor-devel
|
|
BuildRequires: libXext-devel
|
|
BuildRequires: libXi-devel
|
|
BuildRequires: libXinerama-devel
|
|
BuildRequires: libxkbcommon-devel
|
|
BuildRequires: libXmu-devel
|
|
BuildRequires: libXrandr-devel
|
|
BuildRequires: libXrender-devel
|
|
BuildRequires: libXxf86dga-devel
|
|
BuildRequires: libXxf86vm-devel
|
|
BuildRequires: lzma
|
|
BuildRequires: mesa-compat-libOSMesa-devel
|
|
BuildRequires: mesa-libGL-devel
|
|
BuildRequires: mesa-libGLU-devel
|
|
BuildRequires: mingw32-gcc
|
|
BuildRequires: mingw64-gcc
|
|
BuildRequires: ncurses-devel
|
|
BuildRequires: ocl-icd-devel
|
|
BuildRequires: opencl-headers
|
|
BuildRequires: pcsc-lite-devel
|
|
BuildRequires: pulseaudio-libs-devel
|
|
BuildRequires: samba-devel
|
|
BuildRequires: sane-backends-devel
|
|
BuildRequires: SDL2-devel
|
|
BuildRequires: unixODBC-devel
|
|
BuildRequires: unzip
|
|
BuildRequires: util-linux
|
|
BuildRequires: vulkan-devel
|
|
BuildRequires: xz
|
|
|
|
%if 0%{?fedora} < 40
|
|
%ifarch x86_64
|
|
%package -n %{wine}
|
|
%endif
|
|
%endif
|
|
|
|
Summary: WINE Is Not An Emulator - runs MS Windows programs
|
|
Group: Emulators
|
|
%ifarch x86_64
|
|
Conflicts: %{name}
|
|
%else
|
|
Conflicts: %{name}64
|
|
%endif
|
|
%if 0%{?fedora} < 40
|
|
Requires: %{name}-common = %{epoch}:%{version}-%{release}
|
|
%endif
|
|
Requires: %{compat_package} = %{epoch}:%{version}-%{release}
|
|
Provides: %{lib_name} = %{epoch}:%{version}-%{release}
|
|
Provides: %{name}-bin = %{epoch}:%{version}-%{release}
|
|
Obsoletes: %{lib_name} <= %{epoch}:%{version}-%{release}
|
|
|
|
%ifarch %{ix86}
|
|
%package -n %{name}-common
|
|
Summary: WINE Is Not An Emulator - runs MS Windows programs (32-bit common files)
|
|
Group: Emulators
|
|
Requires: %{name}-bin = %{epoch}:%{version}-%{release}
|
|
|
|
%description -n %{name}-common
|
|
Wine is a program which allows running Microsoft Windows programs
|
|
(including DOS, Windows 3.x and Win32 executables) on Unix.
|
|
|
|
This package contains the files needed to support 32-bit Windows
|
|
programs, and is used by both %{name} and %{name}64.
|
|
%endif
|
|
|
|
%define dlopenreq() %(F=/usr/%{_lib}/lib%{1}.so;[ -e $F ] && (file $F|grep -q ASCII && grep -o 'lib[^ ]*' $F|sed -e "s/\$/%{mark64}/"||objdump -p $F | grep SONAME | awk '{ print $2 "%{mark64}" }') || echo "wine-missing-buildrequires-on-%{1}")
|
|
Requires: %dlopenreq asound
|
|
Requires: %dlopenreq attr
|
|
Requires: %dlopenreq cups
|
|
Requires: %dlopenreq dbus-1
|
|
Requires: %dlopenreq fontconfig
|
|
Requires: %dlopenreq freetype
|
|
Requires: %dlopenreq gnutls
|
|
Requires: %dlopenreq krb5
|
|
Requires: %dlopenreq ncurses
|
|
Requires: %dlopenreq odbc
|
|
Requires: %dlopenreq OSMesa
|
|
Requires: %dlopenreq sane
|
|
Requires: %dlopenreq SDL2
|
|
Requires: %dlopenreq v4l1
|
|
Requires: %dlopenreq vulkan
|
|
Requires: %dlopenreq Xcomposite
|
|
Requires: %dlopenreq Xcursor
|
|
Requires: %dlopenreq Xi
|
|
Requires: %dlopenreq Xinerama
|
|
Requires: %dlopenreq Xrandr
|
|
Requires: %dlopenreq Xrender
|
|
Requires: %dlopenreq Xxf86vm
|
|
%if 0%{?fedora}
|
|
Suggests: sane-frontends
|
|
%endif
|
|
Requires(post): desktop-file-utils
|
|
Requires(postun): desktop-file-utils
|
|
|
|
%define desc Wine is a program which allows running Microsoft Windows programs \
|
|
(including DOS, Windows 3.x and Win32 executables) on Unix. It \
|
|
consists of a program loader which loads and executes a Microsoft \
|
|
Windows binary, and a library (called Winelib) that implements Windows \
|
|
API calls using their Unix or X11 equivalents. The library may also \
|
|
be used for porting Win32 code into native Unix executables.
|
|
|
|
%description
|
|
%desc
|
|
|
|
%ifarch x86_64
|
|
%description -n %{wine}
|
|
%desc
|
|
%endif
|
|
|
|
%package -n %{wine}-devel
|
|
Summary: Static libraries and headers for %{name} (64-bit)
|
|
Group: Development/C
|
|
Requires: %{wine} = %{epoch}:%{version}-%{release}
|
|
%ifarch x86_64
|
|
Conflicts: %{name}-devel
|
|
%else
|
|
Conflicts: %{name}64-devel
|
|
%endif
|
|
Provides: %{lib_name_devel} = %{epoch}:%{version}-%{release}
|
|
Obsoletes: %{lib_name_devel} <= %{epoch}:%{version}-%{release}
|
|
%description -n %{wine}-devel
|
|
Wine is a program which allows running Microsoft Windows programs
|
|
(including DOS, Windows 3.x and Win32 executables) on Unix.
|
|
|
|
This package contains the libraries and header files needed to
|
|
develop programs which make use of Wine.
|
|
|
|
%package -n %compat_package
|
|
Summary: WINE Is Not An Emulator - runs MS Windows programs
|
|
Group: Emulators
|
|
Requires: %{wine} = %{epoch}:%{version}-%{release}
|
|
%if 0%{?fedora} < 40
|
|
Conflicts: wine wine64 wine-core wine-common wine-desktop wine-devel
|
|
%else
|
|
Conflicts: wine wine64 wine-core wine-common wine-desktop
|
|
%endif
|
|
|
|
%description -n %compat_package
|
|
Wine is a program which allows running Microsoft Windows programs
|
|
(including DOS, Windows 3.x and Win32 executables) on Unix.
|
|
|
|
This compatibility package allows to use %{wine} system-wide as
|
|
the default Wine version.
|
|
|
|
%prep
|
|
# Pull key from key server, if this fails import local copy and then refresh it to make sure it is up to date
|
|
gpg --keyserver hkp://keys.gnupg.net --recv-keys CEFAC8EAAF17519D || { gpg --with-fingerprint --import %{SOURCE99} && gpg --refresh-keys; }
|
|
gpg --update-trustdb
|
|
gpg --verify --with-fingerprint %{SOURCE1} %{SOURCE0}
|
|
%setup -n wine-%{version} -q -T -b0
|
|
|
|
%build
|
|
# MinGW GCC does not support these options
|
|
%define debug_package %{nil}
|
|
export LDFLAGS="$(echo "%{build_ldflags}" | sed -e 's/-Wl,-z,relro//' -e 's/-Wl,--build-id=sha1//' -e 's/-specs=\/usr\/lib\/rpm\/redhat\/redhat-package-notes//')"
|
|
%ifarch x86_64
|
|
export CFLAGS="$(echo "%{optflags}" | sed -e 's/-O2//' -e 's/-Wp,-D_FORTIFY_SOURCE=2//' -e 's/-fcf-protection//' -e 's/-fstack-protector-strong//' -e 's/-fstack-clash-protection//') -O2"
|
|
%else
|
|
export CFLAGS="$(echo "%{optflags}" | sed -e 's/-Wp,-D_FORTIFY_SOURCE=2//' -e 's/-fcf-protection//' -e 's/-fstack-protector-strong//' -e 's/-fstack-clash-protection//')"
|
|
%endif
|
|
%configure \
|
|
--with-gstreamer \
|
|
--disable-tests \
|
|
%if 0%{?fedora} >= 40
|
|
--enable-archs=i386,x86_64 \
|
|
%else
|
|
%ifarch x86_64
|
|
--enable-win64 \
|
|
%endif
|
|
%endif
|
|
--with-x
|
|
make -j4
|
|
|
|
%install
|
|
%makeinstall LDCONFIG=/bin/true
|
|
|
|
# Compat symlinks for bindir
|
|
mkdir -p "%{buildroot}/usr/bin"
|
|
for _file in $(ls "%{buildroot}%{_bindir}"); do \
|
|
ln -s "%{_bindir}/$_file" "%{buildroot}/usr/bin/$_file"; \
|
|
done
|
|
%if 0%{?fedora} < 40
|
|
%ifarch x86_64
|
|
for _file in wine wine-preloader; do \
|
|
ln -s "%{_prefix}/bin/$_file" "%{buildroot}/usr/bin/$_file"; \
|
|
done
|
|
%endif
|
|
%endif
|
|
|
|
# Compat symlinks for desktop file
|
|
mkdir -p "%{buildroot}/usr/share/applications"
|
|
for _file in $(ls "%{buildroot}%{_datadir}/applications"); do \
|
|
ln -s "%{_datadir}/applications/$_file" "%{buildroot}/usr/share/applications/$_file"; \
|
|
done
|
|
|
|
# Compat manpages
|
|
%if 0%{?fedora} || 0%{?scientificlinux} || 0%{?centos} >= 700 || 0%{?rhel} >= 700
|
|
for _dir in man1 de.UTF-8/man1 fr.UTF-8/man1 pl.UTF-8/man1; do \
|
|
if [ -d "%{buildroot}%{_mandir}/$_dir" ]; then \
|
|
mkdir -p "$(dirname "%{buildroot}/usr/share/man/$_dir")"; \
|
|
cp -pr "%{buildroot}%{_mandir}/$_dir" "%{buildroot}/usr/share/man/$_dir"; \
|
|
else \
|
|
mkdir -p "%{buildroot}/usr/share/man/$_dir"; \
|
|
fi; \
|
|
done
|
|
%else
|
|
for _dir in man1 de.UTF-8/man1 fr.UTF-8/man1 pl.UTF-8/man1; do \
|
|
mkdir -p "%{buildroot}/usr/share/man/$_dir"; \
|
|
done
|
|
%endif
|
|
|
|
%ifarch x86_64
|
|
#install -p -m 0644 loader/wine.man "%{buildroot}/usr/share/man/man1/wine.1"
|
|
#install -p -m 0644 loader/wine.de.UTF-8.man "%{buildroot}/usr/share/man/de.UTF-8/man1/wine.1"
|
|
#install -p -m 0644 loader/wine.fr.UTF-8.man "%{buildroot}/usr/share/man/fr.UTF-8/man1/wine.1"
|
|
#install -p -m 0644 loader/wine.pl.UTF-8.man "%{buildroot}/usr/share/man/pl.UTF-8/man1/wine.1"
|
|
%endif
|
|
|
|
%files -n %{wine}
|
|
%doc ANNOUNCE.md AUTHORS README.md
|
|
%license LICENSE
|
|
|
|
%if 0%{?fedora} < 40
|
|
%ifarch x86_64
|
|
%{_bindir}/wine64
|
|
%{_bindir}/wine64-preloader
|
|
%endif
|
|
%endif
|
|
%{_bindir}/function_grep.pl
|
|
%{_bindir}/msiexec
|
|
%{_bindir}/msidb
|
|
%{_bindir}/notepad
|
|
%{_bindir}/regedit
|
|
%{_bindir}/regsvr32
|
|
%{_bindir}/widl
|
|
%{_bindir}/wineboot
|
|
%{_bindir}/winebuild
|
|
%{_bindir}/winecfg
|
|
%{_bindir}/wineconsole*
|
|
%{_bindir}/winecpp
|
|
%{_bindir}/winedbg
|
|
%{_bindir}/winedump
|
|
%{_bindir}/winefile
|
|
%{_bindir}/wineg++
|
|
%{_bindir}/winegcc
|
|
%{_bindir}/winemaker
|
|
%{_bindir}/winemine
|
|
%{_bindir}/winepath
|
|
%{_bindir}/wineserver
|
|
%{_bindir}/wmc
|
|
%{_bindir}/wrc
|
|
%lang(de) %{_mandir}/de.UTF-8/man?/winemaker.?*
|
|
%lang(de) %{_mandir}/de.UTF-8/man?/wineserver.?*
|
|
%lang(fr) %{_mandir}/fr.UTF-8/man?/winemaker.?*
|
|
%lang(fr) %{_mandir}/fr.UTF-8/man?/wineserver.?*
|
|
%{_mandir}/man?/widl.1*
|
|
%{_mandir}/man?/winebuild.1*
|
|
%{_mandir}/man?/winecpp.1*
|
|
%{_mandir}/man?/winedbg.1*
|
|
%{_mandir}/man?/winedump.1*
|
|
%{_mandir}/man?/wineg++.1*
|
|
%{_mandir}/man?/winegcc.1*
|
|
%{_mandir}/man?/winemaker.1*
|
|
%{_mandir}/man?/wmc.1*
|
|
%{_mandir}/man?/wrc.1*
|
|
%{_mandir}/man?/msiexec.?*
|
|
%{_mandir}/man?/notepad.?*
|
|
%{_mandir}/man?/regedit.?*
|
|
%{_mandir}/man?/regsvr32.?*
|
|
%{_mandir}/man?/wineboot.?*
|
|
%{_mandir}/man?/winecfg.?*
|
|
%{_mandir}/man?/wineconsole.?*
|
|
%{_mandir}/man?/winefile.?*
|
|
%{_mandir}/man?/winemine.?*
|
|
%{_mandir}/man?/winepath.?*
|
|
%{_mandir}/man?/wineserver.?*
|
|
%dir %{_datadir}/wine
|
|
%{_datadir}/wine/wine.inf
|
|
%{_datadir}/wine/nls/*.nls
|
|
%{_datadir}/applications/*.desktop
|
|
%dir %{_datadir}/wine/fonts
|
|
%{_datadir}/wine/fonts/*
|
|
|
|
%if 0%{?fedora} < 40
|
|
%ifarch %{ix86}
|
|
%files -n %{name}-common
|
|
%{_bindir}/wine
|
|
%{_bindir}/wine-preloader
|
|
%{_mandir}/man?/wine.?*
|
|
%lang(de) %{_mandir}/de.UTF-8/man?/wine.?*
|
|
%lang(fr) %{_mandir}/fr.UTF-8/man?/wine.?*
|
|
%lang(pl) %{_mandir}/pl.UTF-8/man?/wine.?*
|
|
%endif
|
|
%else
|
|
%{_bindir}/wine
|
|
#%{_bindir}/wine-preloader
|
|
%{_mandir}/man?/wine.?*
|
|
%lang(de) %{_mandir}/de.UTF-8/man?/wine.?*
|
|
%lang(fr) %{_mandir}/fr.UTF-8/man?/wine.?*
|
|
%lang(pl) %{_mandir}/pl.UTF-8/man?/wine.?*
|
|
%endif
|
|
|
|
%if 0%{?fedora} < 40
|
|
%ifarch %ix86 x86_64
|
|
%{_libdir}/wine/%{_arch}-unix/*.*
|
|
%{_libdir}/wine/%{_arch}-windows/*.*
|
|
%endif
|
|
%else
|
|
%{_libdir}/wine/%{_arch}-unix/*
|
|
%{_libdir}/wine/i386-windows/*.*
|
|
%{_libdir}/wine/x86_64-windows/*.*
|
|
%endif
|
|
|
|
%files -n %{wine}-devel
|
|
%{_includedir}/*
|
|
|
|
%files -n %compat_package
|
|
/usr/bin/*
|
|
/usr/share/applications/*.desktop
|
|
/usr/share/man/man?/*
|
|
%lang(de) /usr/share/man/de.UTF-8/man?/*
|
|
%lang(fr) /usr/share/man/fr.UTF-8/man?/*
|
|
%lang(pl) /usr/share/man/pl.UTF-8/man?/*
|