2012-02-13 11:07:46 +01:00
|
|
|
#
|
|
|
|
# spec file for package libXpm
|
|
|
|
#
|
2023-01-17 19:14:18 +01:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2012-02-13 11:07:46 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2020-01-04 23:49:01 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-02-13 11:07:46 +01:00
|
|
|
#
|
2012-03-07 10:47:32 +01:00
|
|
|
|
|
|
|
|
2012-02-13 11:07:46 +01:00
|
|
|
%define lname libXpm4
|
2023-04-03 22:33:37 +02:00
|
|
|
Name: libXpm
|
2023-10-03 22:48:43 +02:00
|
|
|
Version: 3.5.17
|
2012-02-13 11:07:46 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: X Pixmap image file format library
|
|
|
|
License: MIT
|
|
|
|
Group: Development/Libraries/C and C++
|
2023-04-03 22:33:37 +02:00
|
|
|
URL: https://xorg.freedesktop.org/
|
2012-02-13 11:07:46 +01:00
|
|
|
#Git-Clone: git://anongit.freedesktop.org/xorg/lib/libXpm
|
|
|
|
#Git-Web: http://cgit.freedesktop.org/xorg/lib/libXpm/
|
2023-04-03 22:33:37 +02:00
|
|
|
Source: https://xorg.freedesktop.org/releases/individual/lib/%{name}-%{version}.tar.xz
|
|
|
|
Source1: https://xorg.freedesktop.org/releases/individual/lib/%{name}-%{version}.tar.xz.sig
|
|
|
|
Source2: libXpm.keyring
|
|
|
|
Source9: baselibs.conf
|
2023-04-12 13:58:08 +02:00
|
|
|
BuildRequires: /usr/bin/gzip
|
2023-01-17 19:14:18 +01:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: libtool
|
2023-04-03 22:33:37 +02:00
|
|
|
|
|
|
|
BuildRequires: pkgconfig
|
2012-04-12 12:44:55 +02:00
|
|
|
BuildRequires: pkgconfig(x11)
|
|
|
|
BuildRequires: pkgconfig(xext)
|
2012-03-07 10:47:32 +01:00
|
|
|
BuildRequires: pkgconfig(xextproto)
|
2012-04-12 12:44:55 +02:00
|
|
|
BuildRequires: pkgconfig(xorg-macros) >= 1.8
|
2013-09-13 12:17:36 +02:00
|
|
|
BuildRequires: pkgconfig(xproto) >= 7.0.17
|
2012-04-12 12:44:55 +02:00
|
|
|
BuildRequires: pkgconfig(xt)
|
2012-02-13 11:07:46 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
libXpm facilitates working with XPM (X PixMap), a format for
|
|
|
|
storing/retrieving X pixmaps to/from files.
|
|
|
|
|
2023-04-03 22:33:37 +02:00
|
|
|
%package -n %{lname}
|
2012-02-13 11:07:46 +01:00
|
|
|
Summary: X Pixmap image file format library
|
|
|
|
Group: System/Libraries
|
2023-04-12 17:47:35 +02:00
|
|
|
# Invokes 'gzip' and 'uncompress' at runtime.
|
2023-04-12 13:58:08 +02:00
|
|
|
Requires: /usr/bin/gzip
|
2023-04-12 14:56:43 +02:00
|
|
|
Requires: /usr/bin/uncompress
|
2023-04-12 18:04:18 +02:00
|
|
|
# 'compress' (ncompress package) is not available on SLE
|
2023-04-13 10:19:40 +02:00
|
|
|
Suggests: /usr/bin/compress
|
2012-02-13 11:07:46 +01:00
|
|
|
|
2023-04-03 22:33:37 +02:00
|
|
|
%description -n %{lname}
|
2012-02-13 11:07:46 +01:00
|
|
|
libXpm facilitates working with XPM (X PixMap), a format for
|
|
|
|
storing/retrieving X pixmaps to/from files.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for the X Pixmap image file format library
|
|
|
|
Group: Development/Libraries/C and C++
|
2023-04-03 22:33:37 +02:00
|
|
|
Requires: %{lname} = %{version}
|
2012-02-13 11:07:46 +01:00
|
|
|
# O/P added for 12.2
|
2023-04-03 22:33:37 +02:00
|
|
|
Provides: xorg-x11-libXpm-devel = 7.6_%{version}-%{release}
|
|
|
|
Obsoletes: xorg-x11-libXpm-devel < 7.6_%{version}-%{release}
|
2012-02-13 11:07:46 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
libXpm facilitates working with XPM (X PixMap), a format for
|
|
|
|
storing/retrieving X pixmaps to/from files.
|
|
|
|
|
|
|
|
This package contains the development headers for the library found
|
2023-04-03 22:33:37 +02:00
|
|
|
in %{lname}.
|
2012-02-13 11:07:46 +01:00
|
|
|
|
|
|
|
%package tools
|
2012-03-07 10:47:32 +01:00
|
|
|
Summary: Conversion utilities for X Pixmap (XPM) files
|
2012-02-13 11:07:46 +01:00
|
|
|
# O/P added for 12.2
|
2020-01-04 23:49:01 +01:00
|
|
|
Group: Productivity/Graphics/Convertors
|
2023-04-03 22:33:37 +02:00
|
|
|
Provides: xorg-x11-libXpm = 7.6_%{version}-%{release}
|
|
|
|
Obsoletes: xorg-x11-libXpm < 7.6_%{version}-%{release}
|
2012-02-13 11:07:46 +01:00
|
|
|
|
|
|
|
%description tools
|
|
|
|
The spxm tool converts XPM1/XPM2 files to XPM version 3.
|
|
|
|
The cxpm tool will check whether an XPM file is correct or not with
|
|
|
|
regard to its format.
|
|
|
|
|
|
|
|
%prep
|
2023-04-03 22:33:37 +02:00
|
|
|
%autosetup -p1
|
2012-02-13 11:07:46 +01:00
|
|
|
|
|
|
|
%build
|
2023-01-17 19:14:18 +01:00
|
|
|
autoreconf -fi
|
2023-04-12 17:47:35 +02:00
|
|
|
export XPM_PATH_COMPRESS=%{_bindir}/compress
|
2012-02-13 11:07:46 +01:00
|
|
|
%configure --disable-static
|
2023-04-03 22:33:37 +02:00
|
|
|
%make_build
|
2012-02-13 11:07:46 +01:00
|
|
|
|
|
|
|
%install
|
2023-04-03 22:33:37 +02:00
|
|
|
%make_install
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2012-02-13 11:07:46 +01:00
|
|
|
|
2023-04-03 22:33:37 +02:00
|
|
|
%post -n %{lname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{lname} -p /sbin/ldconfig
|
2012-02-13 11:07:46 +01:00
|
|
|
|
2023-04-03 22:33:37 +02:00
|
|
|
%files -n %{lname}
|
|
|
|
%{_libdir}/libXpm.so.4*
|
2012-02-13 11:07:46 +01:00
|
|
|
|
|
|
|
%files devel
|
2023-04-03 22:33:37 +02:00
|
|
|
%{_includedir}/X11/*
|
|
|
|
%{_libdir}/libXpm.so
|
|
|
|
%{_libdir}/pkgconfig/xpm.pc
|
|
|
|
%{_mandir}/man3/*.3%{?ext_man}
|
2012-02-13 11:07:46 +01:00
|
|
|
|
|
|
|
%files tools
|
2023-04-03 22:33:37 +02:00
|
|
|
%{_bindir}/cxpm
|
|
|
|
%{_bindir}/sxpm
|
|
|
|
%{_mandir}/man1/cxpm.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/sxpm.1%{?ext_man}
|
2012-02-13 11:07:46 +01:00
|
|
|
|
|
|
|
%changelog
|