From aaf398d551b6ff06ee8828bef658974c0e5b6d0a9360ab6b04a54ffebf61701b Mon Sep 17 00:00:00 2001 From: Stefan Dirsch Date: Wed, 26 Apr 2023 10:42:58 +0000 Subject: [PATCH] Accepting request 1082912 from home:jengelh:branches:X11:XOrg - Modernize specfile constructs OBS-URL: https://build.opensuse.org/request/show/1082912 OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/libXfontcache?expand=0&rev=13 --- libXfontcache.changes | 5 +++++ libXfontcache.spec | 9 +++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/libXfontcache.changes b/libXfontcache.changes index 9c7de9e..321fa7e 100644 --- a/libXfontcache.changes +++ b/libXfontcache.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Apr 26 08:41:50 UTC 2023 - Jan Engelhardt + +- Modernize specfile constructs + ------------------------------------------------------------------- Tue Apr 25 14:23:13 UTC 2023 - Frederic Crozat diff --git a/libXfontcache.spec b/libXfontcache.spec index ebb74db..7d831ed 100644 --- a/libXfontcache.spec +++ b/libXfontcache.spec @@ -29,7 +29,6 @@ URL: http://xorg.freedesktop.org/ #Git-Web: http://cgit.freedesktop.org/xorg/lib/libXfontcache/ Source: http://xorg.freedesktop.org/archive/individual/lib/%name-%version.tar.bz2 Source1: baselibs.conf -BuildRoot: %{_tmppath}/%{name}-%{version}-build #git#BuildRequires: autoconf >= 2.57, automake, libtool BuildRequires: fdupes BuildRequires: pkgconfig @@ -64,14 +63,14 @@ This package contains the development headers for the library found in %lname. %prep -%setup -q +%autosetup %build %configure --disable-static -make %{?_smp_mflags} +%make_build %install -make install DESTDIR="%buildroot" +%make_install rm -f "%buildroot/%_libdir"/*.la %fdupes %buildroot/%_prefix @@ -80,11 +79,9 @@ rm -f "%buildroot/%_libdir"/*.la %postun -n %lname -p /sbin/ldconfig %files -n %lname -%defattr(-,root,root) %_libdir/libXfontcache.so.1* %files devel -%defattr(-,root,root) %_libdir/libXfontcache.so %_libdir/pkgconfig/xfontcache.pc %_mandir/man3/*