From a73c0d9d25369e14d47bfbd7c3846ca04b92f4c9e542f465d3884183f8658ca6 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Fri, 23 Jun 2023 09:59:15 +0000 Subject: [PATCH] make it possible again to copy-and paste part of the DL URL use modern macros OBS-URL: https://build.opensuse.org/package/show/network:ldap/ding-libs?expand=0&rev=42 --- ding-libs.spec | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/ding-libs.spec b/ding-libs.spec index c9407e4..1c97fe8 100644 --- a/ding-libs.spec +++ b/ding-libs.spec @@ -30,10 +30,10 @@ Release: 0 Summary: "Ding is not GLib" assorted utility libraries License: GPL-3.0-or-later AND LGPL-3.0-or-later Group: Development/Libraries/C and C++ -URL: https://github.com/SSSD/%name +URL: https://github.com/SSSD/ding-libs -Source: %URL/releases/download/%version/%name-%version.tar.gz -Source2: %URL/releases/download/%version/%name-%version.tar.gz.asc +Source: https://github.com/SSSD/ding-libs/releases/download/%version/%name-%version.tar.gz +Source2: https://github.com/SSSD/ding-libs/releases/download/%version/%name-%version.tar.gz.asc Source3: %name.keyring Source4: baselibs.conf Patch1: 0001-increase-ini-max-value-length.patch @@ -183,22 +183,22 @@ A dynamically-growing, reference-counted array %build %configure --disable-static -make %{?_smp_mflags} all docs +%make_build all docs %check -make %{?_smp_mflags} check +%make_build check %install %make_install -find %buildroot -type f -name "*.la" -delete -print +rm -fv "%buildroot/%_libdir"/*.la # Remove the example files from the output directory # We will copy them directly from the source directory # for packaging -rm -f \ - "%buildroot/%_datadir/doc/ding-libs"/README.* \ - "%buildroot/%_datadir/doc/ding-libs/examples/dhash_example.c" \ - "%buildroot/%_datadir/doc/ding-libs/examples/dhash_test.c" +rm -fv \ + "%buildroot/%_datadir/doc/ding-libs"/README.* \ + "%buildroot/%_datadir/doc/ding-libs/examples/dhash_example.c" \ + "%buildroot/%_datadir/doc/ding-libs/examples/dhash_test.c" # Remove document install script. RPM is handling this rm -f */doc/html/installdox