Name:           libXpm
Version:        3.5.20
Release:        1
License:        MIT
Summary:        X.Org X11 libXpm runtime library
URL:            https://www.x.org
Source0:        https://www.x.org/pub/individual/lib/%{name}-%{version}.tar.xz

BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xext)
BuildRequires:  pkgconfig(xextproto)
BuildRequires:  pkgconfig(xproto) >= 7.0.17
BuildRequires:  pkgconfig(xt)
BuildRequires:  glib2-devel
BuildRequires:  /usr/bin/compress
BuildRequires:  /usr/bin/xgettext

%description
X.Org X11 libXpm runtime library

%package        devel
Summary:        Development files for %{name}
Requires:       %{name} = %{version}-%{release}

%description    devel
The %{name}-devel package contains libraries and header files for %{name}.

%package_help

%prep
%autosetup -n %{name}-%{version} -p1

%build
%configure
%make_build

%install
%make_install
%delete_la

%check
make check

%files
%doc AUTHORS 
%license COPYING COPYRIGHT
%{_libdir}/*.so.*

%files          devel
%{_bindir}/*
%{_includedir}/X11/*.h
%{_libdir}/*.so
%{_libdir}/*.a
%{_libdir}/pkgconfig/*.pc

%files          help
%{_mandir}/man1/*.1*
%{_mandir}/man3/*.3*

%changelog
* Mon Oct 19 2026 Funda Wang <fundawang@yeah.net> - 3.5.20-1
- update to 3.5.20

* Thu Oct 08 2026 lingsheng <ultra_planet@qq.com> - 3.5.19-2
- fix CVE-2026-94287

* Fri Apr 24 2026 Funda Wang <fundawang@yeah.net> - 3.5.19-1
- update to 3.5.19

* Wed Oct 04 2023 Funda Wang <fundawang@yeah.net> - 3.5.17-1
- New version 3.5.17

* Wed Sep 20 2023 zhangpan <zhangpan103@h-partners.com> - 3.5.16-2
- enable make check

* Thu Jul 20 2023 zhangpan <zhangpan103@h-partners.com> - 3.5.16-1
- update to 3.5.16

* Sat Feb 04 2023 zhouwenpei <zhouwenpei1@h-partners.com> - 3.5.15-1
- update to 3.5.15

* Wed Feb 01 2023 zhouwenpei <zhouwenpei1@h-partners.com> - 3.5.13-4
- fix CVE-2022-44617,CVE-2022-46285,CVE-2022-4883

* Fri Nov 25 2022 zhouwenpei <zhouwenpei1@h-partners.com> - 3.5.13-3
- update Correct tar file

* Wed Oct 26 2022 zhouwenpei <zhouwenpei1@h-partners.com> - 3.5.13-2
- Rebuild for next release

* Fri Jul 24 2020 openEuler Buildteam <buildteam@openeuler.org> - 3.5.13-1
- update  libXpm version from 3.5.12 to 3.5.13

* Sat Oct 19 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.5.12-11
- Type:bugfix
- Id:NA
- SUG:NA
- DESC:change the directory of the license file

* Wed Oct 09 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.5.12-10
- Type:enhancement
- ID:NA
- SUG:NA
  DESC:add COPYRIGHT

* Tue Sep 10 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.5.12-9
- Package init