diff --git a/libXres.changes b/libXres.changes index a80a0e6..4db9183 100644 --- a/libXres.changes +++ b/libXres.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Apr 6 02:03:23 UTC 2021 - Dirk Müller + +- modernize spec file (move license to licensedir) + ------------------------------------------------------------------- Wed Mar 31 20:44:50 UTC 2021 - Stefan Dirsch diff --git a/libXres.spec b/libXres.spec index 72436fa..f48cab3 100644 --- a/libXres.spec +++ b/libXres.spec @@ -16,21 +16,18 @@ # -Name: libXres %define lname libXRes1 +Name: libXres Version: 1.2.1 Release: 0 Summary: X Resource extension client 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/libXRes #Git-Web: http://cgit.freedesktop.org/xorg/lib/libXRes/ -Source: http://xorg.freedesktop.org/releases/individual/lib/%{name}-%{version}.tar.bz2 +Source: https://xorg.freedesktop.org/releases/individual/lib/%{name}-%{version}.tar.bz2 Source1: baselibs.conf -BuildRoot: %{_tmppath}/%{name}-%{version}-build -#git#BuildRequires: autoconf >= 2.60, automake, libtool BuildRequires: pkgconfig BuildRequires: pkgconfig(resourceproto) >= 1.0 BuildRequires: pkgconfig(x11) @@ -44,11 +41,11 @@ extension to the X protocol. The Resource extension allows for X clients to see and monitor the X resource usage of various clients (pixmaps, et al). -%package -n %lname +%package -n %{lname} Summary: X Resource extension client library Group: System/Libraries -%description -n %lname +%description -n %{lname} libXRes provides an X Window System client interface to the Resource extension to the X protocol. The Resource extension allows for X clients to see and monitor the X resource usage of various clients @@ -57,7 +54,7 @@ clients to see and monitor the X resource usage of various clients %package devel Summary: Development files for the X Resource extension library Group: Development/Libraries/C and C++ -Requires: %lname = %version +Requires: %{lname} = %{version} %description devel libXRes provides an X Window System client interface to the Resource @@ -66,33 +63,30 @@ clients to see and monitor the X resource usage of various clients (pixmaps, et al). 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 +%make_install +find %{buildroot} -type f -name "*.la" -delete -print -%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) -%doc COPYING -%_libdir/libXRes.so.1* +%files -n %{lname} +%license COPYING +%{_libdir}/libXRes.so.1* %files devel -%defattr(-,root,root) -%_includedir/X11/* -%_libdir/libXRes.so -%_libdir/pkgconfig/xres.pc -%_mandir/man3/* +%{_includedir}/X11/* +%{_libdir}/libXRes.so +%{_libdir}/pkgconfig/xres.pc +%{_mandir}/man3/* %changelog