Modify git-template of SPEC file.

This commit is contained in:
Matej Cepl 2022-10-07 09:01:51 +02:00
parent 64013dc81e
commit c8afd404fb
Signed by: mcepl
GPG Key ID: 79205802880BC9D8
3 changed files with 4 additions and 20 deletions

Binary file not shown.

View File

@ -1,15 +0,0 @@
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/Makefile
+++ b/Makefile
@@ -20,7 +20,7 @@ protocol/wlr-data-control-unstable-v1-cl
wayland-scanner client-header protocol/wlr-data-control-unstable-v1.xml protocol/wlr-data-control-unstable-v1-client-protocol.h
.c.o:
- $(CC) -Wall -Wpedantic -c $< -o $@
+ $(CC) -Wall -Wpedantic $(CFLAGS) -c $< -o $@
install:
install -Dm755 -t $(DESTDIR)$(PREFIX)/bin waycopy waypaste

View File

@ -22,10 +22,7 @@ Release: 0
Summary: Wayland clipboard utility
License: ISC
URL: https://sr.ht/~noocsharp/wayclip
Source: https://git.sr.ht/~noocsharp/wayclip/archive/%{version}.tar.gz
# PATCH-FIX-UPSTREAM fix-build.patch bsc#[0-9]+ mcepl@suse.com
# GCC should react on $CFLAGS as well
Patch0: fix-build.patch
#!RemoteAssetUrl: git+https://git.sr.ht/~noocsharp/wayclip#master
BuildRequires: pkgconf
BuildRequires: pkgconfig
BuildRequires: pkgconfig(wayland-client)
@ -37,7 +34,9 @@ clipboard. Specifically, wayclip is a wlr-data-control protocol
client.
%prep
%autosetup -p1
%setup -q -n wayclip -c -T
cp -a %{_sourcedir}/wayclip/* .
%build
export CFLAGS="%{optflags} $(pkgconf --cflags wayland-client)"