2012-02-13 11:07:46 +01:00
|
|
|
#
|
|
|
|
# spec file for package libXpm
|
|
|
|
#
|
2014-04-28 00:07:54 +02:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
2012-03-07 10:47:32 +01:00
|
|
|
|
|
|
|
|
2012-02-13 11:07:46 +01:00
|
|
|
Name: libXpm
|
|
|
|
%define lname libXpm4
|
2013-09-13 12:17:36 +02:00
|
|
|
Version: 3.5.11
|
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++
|
2012-03-07 10:47:32 +01:00
|
|
|
Url: http://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/
|
2012-04-12 12:44:55 +02:00
|
|
|
Source: http://xorg.freedesktop.org/releases/individual/lib/%{name}-%{version}.tar.bz2
|
2012-03-07 10:47:32 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2012-02-13 11:07:46 +01:00
|
|
|
#git#BuildRequires: autoconf >= 2.60, automake, libtool
|
2012-04-12 12:44:55 +02:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
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.
|
|
|
|
|
|
|
|
%package -n %lname
|
|
|
|
Summary: X Pixmap image file format library
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %lname
|
|
|
|
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++
|
|
|
|
Requires: %lname = %version
|
|
|
|
# O/P added for 12.2
|
2012-03-07 10:47:32 +01: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
|
|
|
|
in %lname.
|
|
|
|
|
|
|
|
%package tools
|
2012-03-07 10:47:32 +01:00
|
|
|
Summary: Conversion utilities for X Pixmap (XPM) files
|
|
|
|
Group: Productivity/Graphics/Convertors
|
2012-02-13 11:07:46 +01:00
|
|
|
# O/P added for 12.2
|
2012-03-07 10:47:32 +01: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
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure --disable-static
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
2013-03-19 20:47:42 +01:00
|
|
|
make install DESTDIR="%buildroot"
|
2012-02-13 11:07:46 +01:00
|
|
|
rm -f "%buildroot/%_libdir"/*.la
|
|
|
|
|
|
|
|
%post -n %lname -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n %lname -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n %lname
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_libdir/libXpm.so.4*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_includedir/X11/*
|
|
|
|
%_libdir/libXpm.so
|
|
|
|
%_libdir/pkgconfig/xpm.pc
|
|
|
|
|
|
|
|
%files tools
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_bindir/cxpm
|
|
|
|
%_bindir/sxpm
|
|
|
|
%_mandir/man1/cxpm.1*
|
|
|
|
%_mandir/man1/sxpm.1*
|
|
|
|
|
|
|
|
%changelog
|