From 57e157fc21ecf0926b9608ab135e97a5a79cd1bd37215fb1e2f52f8d070d7f0f Mon Sep 17 00:00:00 2001 From: Stefan Dirsch Date: Fri, 30 Sep 2022 12:48:18 +0000 Subject: [PATCH] Accepting request 1007093 from home:dirkmueller:Factory - modernize spec file, add license OBS-URL: https://build.opensuse.org/request/show/1007093 OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/libXxf86vm?expand=0&rev=16 --- libXxf86vm.changes | 5 +++++ libXxf86vm.spec | 44 ++++++++++++++++++++------------------------ 2 files changed, 25 insertions(+), 24 deletions(-) diff --git a/libXxf86vm.changes b/libXxf86vm.changes index 6ad840e..0bed5fc 100644 --- a/libXxf86vm.changes +++ b/libXxf86vm.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Sep 29 19:21:39 UTC 2022 - Dirk Müller + +- modernize spec file, add license + ------------------------------------------------------------------- Tue Sep 27 09:40:35 UTC 2022 - Stefan Dirsch diff --git a/libXxf86vm.spec b/libXxf86vm.spec index 62e49a2..a1edd50 100644 --- a/libXxf86vm.spec +++ b/libXxf86vm.spec @@ -16,20 +16,18 @@ # -Name: libXxf86vm %define lname libXxf86vm1 +Name: libXxf86vm Version: 1.1.5 Release: 0 Summary: XFree86-VidMode X extension library License: MIT Group: Development/Libraries/C and C++ -URL: http://xorg.freedesktop.org/ - +URL: https://xorg.freedesktop.org/ #Git-Clone: git://anongit.freedesktop.org/xorg/lib/libXxf86vm #Git-Web: http://cgit.freedesktop.org/xorg/lib/libXxf86vm/ -Source: http://xorg.freedesktop.org/releases/individual/lib/%{name}-%{version}.tar.xz +Source: https://xorg.freedesktop.org/releases/individual/lib/%{name}-%{version}.tar.xz Source1: baselibs.conf -BuildRoot: %{_tmppath}/%{name}-%{version}-build #git#BuildRequires: autoconf >= 2.60, automake, libtool BuildRequires: fdupes BuildRequires: grep @@ -46,11 +44,11 @@ These functions provide aninterface to the server extension XFree86-VidModeExtension which allows the video modes to be queried and adjusted dynamically and mode switching to be controlled. -%package -n %lname +%package -n %{lname} Summary: XFree86-VidMode X extension library Group: System/Libraries -%description -n %lname +%description -n %{lname} These functions provide aninterface to the server extension XFree86-VidModeExtension which allows the video modes to be queried and adjusted dynamically and mode switching to be controlled. @@ -58,7 +56,7 @@ and adjusted dynamically and mode switching to be controlled. %package devel Summary: Development files for the XFree86-VidMode X extension library Group: Development/Libraries/C and C++ -Requires: %lname = %version +Requires: %{lname} = %{version} %description devel These functions provide aninterface to the server extension @@ -66,33 +64,31 @@ XFree86-VidModeExtension which allows the video modes to be queried and adjusted dynamically and mode switching to be controlled. This package contains the development headers for the library found -in %lname. +in %{lname}. %prep %setup -q %build %configure --disable-static -make %{?_smp_mflags} +%make_build %install -make install DESTDIR="%buildroot" -rm -f "%buildroot/%_libdir"/*.la -%fdupes %buildroot/%_prefix +%make_install +find %{buildroot} -type f -name "*.la" -delete -print +%fdupes %{buildroot}/%{_prefix} -%post -n %lname -p /sbin/ldconfig +%post -n %{lname} -p /sbin/ldconfig +%postun -n %{lname} -p /sbin/ldconfig -%postun -n %lname -p /sbin/ldconfig - -%files -n %lname -%defattr(-,root,root) -%_libdir/libXxf86vm.so.1* +%files -n %{lname} +%license COPYING +%{_libdir}/libXxf86vm.so.1* %files devel -%defattr(-,root,root) -%_includedir/X11/* -%_libdir/libXxf86vm.so -%_libdir/pkgconfig/xxf86vm.pc -%_mandir/man3/* +%{_includedir}/X11/* +%{_libdir}/libXxf86vm.so +%{_libdir}/pkgconfig/xxf86vm.pc +%{_mandir}/man3/* %changelog