File pixmap.spec of Package pixmap

# spec file for package pixmap (Version 2.6)
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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

# norootforbuild

Name:           pixmap
BuildRequires:  xorg-x11 xorg-x11-devel
License:        BSD 3-Clause
Group:          Productivity/Graphics/Bitmap Editors
Provides:       pixmap26
Conflicts:      mmextra
AutoReqProv:    on
Version:        2.6
Release:        125
Provides:       pixmp = %version
Obsoletes:      pixmp <= %version
Summary:        XPM Pixel Editor for the X Window System
Source:         pixmap2.6.tar.gz
# upstream patches
Patch0:         pixmap_2.6.patch1.gz
Patch1:         pixmap_2.6.patch2.gz
Patch2:         pixmap_2.6.patch3.gz
Patch3:         pixmap_2.6.patch4.gz
# end of upstream patches
Patch4:         pixmap2.6.patch
Patch5:         pixmap2.6-ia64.patch
Patch6:         pixmap-nonvoid.patch
Patch7:         pixmap-xorg7.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Pixmap is a program which enables you to edit XPM-files (colour
bitmaps). You can use them with every commonly used iconmanager and
even incorporate them in your own desktop environment.

    Lionel Mallet <>
    Tim Wise      <>

%if "%(xft-config --prefix)" == "/usr"
%define _xorg7libs %_lib
%define _xorg7libs32 lib
%define _xorg7bin bin
%define _xorg7_mandir %_mandir
%define _xorg7pixmaps include
%define _xorg7libshare share
%define _xorg7_xkb /usr/share/X11/xkb
%define _xorg7_termcap /usr/lib/X11/etc
%define _xorg7_serverincl /usr/include/xorg
%define _xorg7_fonts /usr/share/fonts
%define _xorg7_prefix /usr
%define _xorg7libs X11R6/%_lib
%define _xorg7libs32 X11R6/lib
%define _xorg7bin X11R6/bin
%define _xorg7_mandir /usr/X11R6/man
%define _xorg7pixmaps X11R6/include
%define _xorg7libshare X11R6/lib/
%define _xorg7_xkb /etc/X11/xkb
%define _xorg7_termcap /usr/X11R6/lib/X11/etc
%define _xorg7_serverincl /usr/X11R6/lib/Server/include
%define _xorg7_fonts /usr/X11R6/lib/X11/fonts
%define _xorg7_prefix /usr/X11R6

%setup -n pixmap
# use this patch only if new 7.x or higher is present
%if "%(xft-config --prefix)" == "/usr"
# contains data used for earlier versions of X.
rm -rf X11

xmkmf -a


%config /usr/%{_xorg7libshare}/X11/app-defaults/Pixmap
%doc %{_xorg7_mandir}/man1/pixmap.1x.gz

rm -rf "$RPM_BUILD_ROOT"

* Fri Feb 15 2008
- removed requirement with dot-in-identifier
* Mon Aug 06 2007
- renamed to pixmap
* Thu Jul 27 2006
- builds also with new 7.x, checks the version of
* Thu Jun 15 2006
- deleted from install section: rm -rf $RPM_BUILD_ROOT
* Mon Mar 13 2006
- fixed non-void function [#156966]
* Wed Jan 25 2006
- converted neededforbuild to BuildRequires
* Fri Oct 07 2005
- delete included X11 headers to use system ones.
* Thu May 12 2005
* Sun Apr 10 2005
- fix some more return values
* Thu Jul 01 2004
- fix Imakefile for hppa
* Mon May 24 2004
- add some return values to non-void functions
* Fri May 21 2004
- fix build
* Sun Jan 11 2004
- add %%defattr
* Tue Nov 12 2002
- fixed neededforbuild which is broken with renamed XFree86 package.
* Wed May 22 2002
- used %%{_lib} macro
* Thu May 17 2001
- fixed cast warnings and include files for ia64
* Thu May 18 2000
- changed Group tag
* Tue Mar 14 2000
- removed Makefile.Linux
- added BuildRoot
- added patches from
* Mon Sep 13 1999
- ran old prepare_spec on spec file to switch to new prepare_spec.
* Sun Sep 20 1998
- dont redeclare sys_errlist for glibc
openSUSE Build Service is sponsored by