SHA256
1
0
forked from pool/libXres

Accepting request 883117 from home:dirkmueller:Factory

- modernize spec file (move license to licensedir)

OBS-URL: https://build.opensuse.org/request/show/883117
OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/libXres?expand=0&rev=17
This commit is contained in:
Stefan Dirsch 2021-04-06 08:21:12 +00:00 committed by Git OBS Bridge
parent e0ee08d58d
commit bd3eb7ab8d
2 changed files with 24 additions and 25 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Apr 6 02:03:23 UTC 2021 - Dirk Müller <dmueller@suse.com>
- modernize spec file (move license to licensedir)
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Mar 31 20:44:50 UTC 2021 - Stefan Dirsch <sndirsch@suse.com> Wed Mar 31 20:44:50 UTC 2021 - Stefan Dirsch <sndirsch@suse.com>

View File

@ -16,21 +16,18 @@
# #
Name: libXres
%define lname libXRes1 %define lname libXRes1
Name: libXres
Version: 1.2.1 Version: 1.2.1
Release: 0 Release: 0
Summary: X Resource extension client library Summary: X Resource extension client library
License: MIT License: MIT
Group: Development/Libraries/C and C++ 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-Clone: git://anongit.freedesktop.org/xorg/lib/libXRes
#Git-Web: http://cgit.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 Source1: baselibs.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-build
#git#BuildRequires: autoconf >= 2.60, automake, libtool
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRequires: pkgconfig(resourceproto) >= 1.0 BuildRequires: pkgconfig(resourceproto) >= 1.0
BuildRequires: pkgconfig(x11) 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 clients to see and monitor the X resource usage of various clients
(pixmaps, et al). (pixmaps, et al).
%package -n %lname %package -n %{lname}
Summary: X Resource extension client library Summary: X Resource extension client library
Group: System/Libraries Group: System/Libraries
%description -n %lname %description -n %{lname}
libXRes provides an X Window System client interface to the Resource libXRes provides an X Window System client interface to the Resource
extension to the X protocol. The Resource extension allows for X extension to the X protocol. The Resource extension allows for X
clients to see and monitor the X resource usage of various clients 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 %package devel
Summary: Development files for the X Resource extension library Summary: Development files for the X Resource extension library
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: %lname = %version Requires: %{lname} = %{version}
%description devel %description devel
libXRes provides an X Window System client interface to the Resource 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). (pixmaps, et al).
This package contains the development headers for the library found This package contains the development headers for the library found
in %lname. in %{lname}.
%prep %prep
%setup -q %setup -q
%build %build
%configure --disable-static %configure --disable-static
make %{?_smp_mflags} %make_build
%install %install
make install DESTDIR="%buildroot" %make_install
rm -f "%buildroot/%_libdir"/*.la 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}
%license COPYING
%files -n %lname %{_libdir}/libXRes.so.1*
%defattr(-,root,root)
%doc COPYING
%_libdir/libXRes.so.1*
%files devel %files devel
%defattr(-,root,root) %{_includedir}/X11/*
%_includedir/X11/* %{_libdir}/libXRes.so
%_libdir/libXRes.so %{_libdir}/pkgconfig/xres.pc
%_libdir/pkgconfig/xres.pc %{_mandir}/man3/*
%_mandir/man3/*
%changelog %changelog