%define major 4 %define libxpm %mklibname xpm %{major} %define develxpm %mklibname -d xpm %define subrel 1 Name: libxpm Summary: X Pixmap Library Version: 3.5.15 Release: %mkrel 1 Group: Development/X11 License: MIT URL: http://xorg.freedesktop.org Source0: http://xorg.freedesktop.org/releases/individual/lib/libXpm-%{version}.tar.xz # CVE-2023-43786 (hardening) # https://gitlab.freedesktop.org/xorg/lib/libxpm/-/commit/84fb14574c039f19ad7face87eb9acc31a50701c Patch0: 84fb14574c039f19ad7face87eb9acc31a50701c.patch # CVE-2023-43787 (hardening) # https://gitlab.freedesktop.org/xorg/lib/libxpm/-/commit/91f887b41bf75648df725a4ed3be036da02e911e Patch1: 91f887b41bf75648df725a4ed3be036da02e911e.patch # CVE-2023-43788 # https://gitlab.freedesktop.org/xorg/lib/libxpm/-/commit/2fa554b01ef6079a9b35df9332bdc4f139ed67e0 Patch2: 2fa554b01ef6079a9b35df9332bdc4f139ed67e0.patch #CVE-2023-43789 # https://gitlab.freedesktop.org/xorg/lib/libxpm/-/commit/7e21cb63b9a1ca760a06cc4cd9b19bbc3fcd8f51 Patch3: 7e21cb63b9a1ca760a06cc4cd9b19bbc3fcd8f51.patch BuildRequires: ncompress BuildRequires: pkgconfig(x11) >= 1.0.0 BuildRequires: pkgconfig(xext) >= 1.0.0 BuildRequires: pkgconfig(xt) >= 1.0.0 BuildRequires: x11-proto-devel >= 1.0.0 BuildRequires: x11-util-macros >= 1.0.1 %description The xpm package contains the XPM pixmap library for the X Window System. The XPM library allows applications to display color, pixmapped images, and is used by many popular X programs. #----------------------------------------------------------- %package -n %{libxpm} Summary: X Pixmap Library Group: Development/X11 Provides: %{name} = %{version} %description -n %{libxpm} The xpm package contains the XPM pixmap library for the X Window System. The XPM library allows applications to display color, pixmapped images, and is used by many popular X programs. %files -n %{libxpm} %{_libdir}/libXpm.so.%{major} %{_libdir}/libXpm.so.%{major}.* #----------------------------------------------------------- %package -n %{develxpm} Summary: Development files for %{name} Group: Development/X11 Requires: %{libxpm} = %{version}-%{release} Provides: libxpm-devel = %{version}-%{release} Provides: xpm-devel = %{version}-%{release} Obsoletes: %{_lib}xpm-static-devel < 3.5.10-4 %description -n %{develxpm} Development files for %{name} %files -n %{develxpm} %{_bindir}/cxpm %{_bindir}/sxpm %{_libdir}/libXpm.so %{_libdir}/pkgconfig/xpm.pc %{_includedir}/X11/xpm.h %{_mandir}/man1/* %{_mandir}/man3/* #----------------------------------------------------------- %prep %setup -q -n libXpm-%{version} %autopatch -p1 %build %configure --x-includes=%{_includedir}\ --x-libraries=%{_libdir} \ --disable-static %make %install %make_install find %{buildroot} -name "*.la" -delete