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
This commit is contained in:
Jan Engelhardt 2023-06-23 09:59:15 +00:00 committed by Git OBS Bridge
parent 3d32755d72
commit a73c0d9d25

View File

@ -30,10 +30,10 @@ Release: 0
Summary: "Ding is not GLib" assorted utility libraries Summary: "Ding is not GLib" assorted utility libraries
License: GPL-3.0-or-later AND LGPL-3.0-or-later License: GPL-3.0-or-later AND LGPL-3.0-or-later
Group: Development/Libraries/C and C++ 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 Source: https://github.com/SSSD/ding-libs/releases/download/%version/%name-%version.tar.gz
Source2: %URL/releases/download/%version/%name-%version.tar.gz.asc Source2: https://github.com/SSSD/ding-libs/releases/download/%version/%name-%version.tar.gz.asc
Source3: %name.keyring Source3: %name.keyring
Source4: baselibs.conf Source4: baselibs.conf
Patch1: 0001-increase-ini-max-value-length.patch Patch1: 0001-increase-ini-max-value-length.patch
@ -183,22 +183,22 @@ A dynamically-growing, reference-counted array
%build %build
%configure --disable-static %configure --disable-static
make %{?_smp_mflags} all docs %make_build all docs
%check %check
make %{?_smp_mflags} check %make_build check
%install %install
%make_install %make_install
find %buildroot -type f -name "*.la" -delete -print rm -fv "%buildroot/%_libdir"/*.la
# Remove the example files from the output directory # Remove the example files from the output directory
# We will copy them directly from the source directory # We will copy them directly from the source directory
# for packaging # for packaging
rm -f \ rm -fv \
"%buildroot/%_datadir/doc/ding-libs"/README.* \ "%buildroot/%_datadir/doc/ding-libs"/README.* \
"%buildroot/%_datadir/doc/ding-libs/examples/dhash_example.c" \ "%buildroot/%_datadir/doc/ding-libs/examples/dhash_example.c" \
"%buildroot/%_datadir/doc/ding-libs/examples/dhash_test.c" "%buildroot/%_datadir/doc/ding-libs/examples/dhash_test.c"
# Remove document install script. RPM is handling this # Remove document install script. RPM is handling this
rm -f */doc/html/installdox rm -f */doc/html/installdox