xorg-x11-libXt/xorg-x11-libXt.spec

Sun, 08 May 2011 15:46:25 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sun, 08 May 2011 15:46:25 +0200
changeset 12
94a28e1a8def
child 13
50e3a83e4f0b
permissions
-rw-r--r--

Import package vendor original specs for necessary manipulations.

michael@12 1 #
michael@12 2 # spec file for package xorg-x11-libXt (Version 7.6_1.0.9)
michael@12 3 #
michael@12 4 # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
michael@12 5 #
michael@12 6 # All modifications and additions to the file contributed by third parties
michael@12 7 # remain the property of their copyright owners, unless otherwise agreed
michael@12 8 # upon. The license for this file, and modifications and additions to the
michael@12 9 # file, is the same license as for the pristine package itself (unless the
michael@12 10 # license for the pristine package is not an Open Source License, in which
michael@12 11 # case the license is the MIT License). An "Open Source License" is a
michael@12 12 # license that conforms to the Open Source Definition (Version 1.9)
michael@12 13 # published by the Open Source Initiative.
michael@12 14
michael@12 15 # Please submit bugfixes or comments via http://bugs.opensuse.org/
michael@12 16 #
michael@12 17
michael@12 18 # norootforbuild
michael@12 19
michael@12 20
michael@12 21 Name: xorg-x11-libXt
michael@12 22 %define dirsuffix 1.0.9
michael@12 23 BuildRequires: fdupes pkgconfig xorg-x11-libICE-devel xorg-x11-libSM-devel xorg-x11-libX11-devel xorg-x11-libXau-devel xorg-x11-libXdmcp-devel xorg-x11-proto-devel xorg-x11-xtrans-devel
michael@12 24 Url: http://xorg.freedesktop.org/
michael@12 25 Version: 7.6_%{dirsuffix}
michael@12 26 Release: 4.1
michael@12 27 Vendor: Europalab Software
michael@12 28 Packager: Europalab Software
michael@12 29 License: MIT License (or similar)
michael@12 30 BuildRoot: %{_tmppath}/%{name}-%{version}-build
michael@12 31 Group: System/Libraries
michael@12 32 Provides: xorg-x11-libs:/usr/X11R6/%{_lib}/libXt.so.6
michael@12 33 Summary: X.Org Xt library
michael@12 34 Source: libXt-%{dirsuffix}.tar.bz2
michael@12 35 Source2: baselibs.conf
michael@12 36 Patch: libXt.diff
michael@12 37 Patch1: app-defaults.diff
michael@12 38
michael@12 39 %description
michael@12 40 This package contains the X.Org Xt library.
michael@12 41
michael@12 42
michael@12 43
michael@12 44 %package devel
michael@12 45 Vendor: Europalab Software
michael@12 46 Packager: Europalab Software
michael@12 47 License: MIT License (or similar)
michael@12 48 Summary: Include Files and Libraries mandatory for Development
michael@12 49 Group: Development/Libraries/X11
michael@12 50 Provides: xorg-x11-devel:/usr/X11R6/%{_lib}/libXt.so
michael@12 51 Requires: xorg-x11-proto-devel xorg-x11-xtrans-devel xorg-x11-libICE-devel xorg-x11-libSM-devel xorg-x11-libXau-devel xorg-x11-libXdmcp-devel xorg-x11-libX11-devel xorg-x11-libXt
michael@12 52 AutoReqProv: on
michael@12 53
michael@12 54 %description devel
michael@12 55 This package contains all necessary include files and libraries needed
michael@12 56 to develop applications that require these.
michael@12 57
michael@12 58
michael@12 59
michael@12 60 %prep
michael@12 61 %setup -q -n libXt-%{dirsuffix}
michael@12 62 %patch
michael@12 63 %patch1
michael@12 64
michael@12 65 %build
michael@12 66 autoreconf -fi
michael@12 67 export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
michael@12 68 %configure --disable-silent-rules \
michael@12 69 %if %suse_version > 1110
michael@12 70 --disable-static \
michael@12 71 %endif
michael@12 72 --with-pic
michael@12 73 %{__make} %{?jobs:-j%jobs}
michael@12 74
michael@12 75 %install
michael@12 76 make install DESTDIR=$RPM_BUILD_ROOT
michael@12 77 mkdir -p $RPM_BUILD_ROOT/usr/share/X11/app-defaults
michael@12 78 %if %suse_version > 1110
michael@12 79 %{__rm} -f %{buildroot}%{_libdir}/*.la
michael@12 80 %endif
michael@12 81 %fdupes -s $RPM_BUILD_ROOT/%_mandir
michael@12 82
michael@12 83 %clean
michael@12 84 rm -rf "$RPM_BUILD_ROOT"
michael@12 85
michael@12 86 %post -p /sbin/ldconfig
michael@12 87
michael@12 88 %postun -p /sbin/ldconfig
michael@12 89
michael@12 90 %pre devel
michael@12 91 test -L usr/include/X11 && rm usr/include/X11
michael@12 92 exit 0
michael@12 93
michael@12 94 %files
michael@12 95 %defattr(-,root,root)
michael@12 96 %dir /usr/share/X11/app-defaults
michael@12 97 %{_libdir}/*.so.*
michael@12 98
michael@12 99 %files devel
michael@12 100 %defattr(-,root,root)
michael@12 101 /usr/include/X11/*.h
michael@12 102 %{_libdir}/*.so
michael@12 103 %{_libdir}/pkgconfig/*.pc
michael@12 104 %{_mandir}/man3/*
michael@12 105 %if %suse_version <= 1110
michael@12 106 %{_libdir}/*.a
michael@12 107 %{_libdir}/*.la
michael@12 108 %endif
michael@12 109
michael@12 110 %changelog
michael@12 111 * Tue Dec 21 2010 sndirsch@novell.com
michael@12 112 - bumped version number to 7.6_1.0.9
michael@12 113 * Wed Dec 1 2010 jslaby@suse.de
michael@12 114 - revert 'export only public API symbols'
michael@12 115 it breaks xterm, xclock and others
michael@12 116 * Tue Nov 30 2010 cristian.rodriguez@opensuse.org
michael@12 117 - export only public API symbols
michael@12 118 - disable silent rules, defeat the purpose of post build checks
michael@12 119 * Fri Oct 29 2010 sndirsch@novell.com
michael@12 120 - libXt 1.0.9
michael@12 121 * This release includes several bug fixes, as well as the usual
michael@12 122 set of recent build configuration improvements & janitorial
michael@12 123 cleanups.
michael@12 124 * Sat Sep 4 2010 sndirsch@suse.de
michael@12 125 - libXt 1.0.8
michael@12 126 - bumped version number to 7.5_1.0.8
michael@12 127 - make use of %%fdupes macro
michael@12 128 - fixed Summary/Group entries in -devel package
michael@12 129 * Sun Apr 4 2010 sndirsch@suse.de
michael@12 130 - libXt 1.0.7
michael@12 131 - adjusted libXt.diff
michael@12 132 - bumped version number to 7.5
michael@12 133 * Mon Dec 14 2009 jengelh@medozas.de
michael@12 134 - add baselibs.conf as a source
michael@12 135 * Sat Nov 14 2009 sndirsch@suse.de
michael@12 136 - regenerated libXt.diff
michael@12 137 - fixed build
michael@12 138 * Sat Jul 4 2009 sndirsch@suse.de
michael@12 139 - libXt 1.0.6
michael@12 140 * bugfix release
michael@12 141 * Fri May 1 2009 eich@suse.de
michael@12 142 - revert static library and .la file removal
michael@12 143 for SUSE versions <= 11.1.
michael@12 144 * Tue Apr 21 2009 crrodriguez@suse.de
michael@12 145 - remove static libraries and "la" files
michael@12 146 - run ldconfig in postun
michael@12 147 * Thu Sep 11 2008 sndirsch@suse.de
michael@12 148 - bumped release number to 7.4
michael@12 149 * Thu Apr 10 2008 ro@suse.de
michael@12 150 - added baselibs.conf file to build xxbit packages
michael@12 151 for multilib support
michael@12 152 * Sat Sep 29 2007 sndirsch@suse.de
michael@12 153 - bumped version to 7.3
michael@12 154 * Mon Jan 29 2007 sndirsch@suse.de
michael@12 155 - update release to 1.0.5
michael@12 156 * Bug 9514: Markup error in makestrs.1x man page
michael@12 157 * Wed Nov 8 2006 sndirsch@suse.de
michael@12 158 - update release to 1.0.4 (X.Org 7.2 RC2)
michael@12 159 * Add more generated files to ignore.
michael@12 160 * Fix .pc file with new autotools by using AC_DEFINE_DIR.
michael@12 161 * Sat Oct 14 2006 sndirsch@suse.de
michael@12 162 - updated to X.Org 7.2RC1
michael@12 163 * Wed Aug 2 2006 sndirsch@suse.de
michael@12 164 - completed search path for old app-defaults location
michael@12 165 * Wed Aug 2 2006 sndirsch@suse.de
michael@12 166 - fix setup line
michael@12 167 * Mon Jul 31 2006 sndirsch@suse.de
michael@12 168 - use /usr/share/X11 as default path for XtErrorDB, since this is
michael@12 169 also the new default path for XErrorDB
michael@12 170 * Fri Jul 28 2006 sndirsch@suse.de
michael@12 171 - use "-fno-strict-aliasing"
michael@12 172 * Thu Jul 27 2006 sndirsch@suse.de
michael@12 173 - use $RPM_OPT_FLAGS
michael@12 174 - remove existing /usr/include/X11 symlink in %%pre
michael@12 175 * Tue Jul 25 2006 sndirsch@suse.de
michael@12 176 - added app-defaults dir to package
michael@12 177 * Tue Jul 25 2006 sndirsch@suse.de
michael@12 178 - app-defaults.diff: read also /usr/X11R6/lib/X11/app-defaults
michael@12 179 * Thu Jun 22 2006 sndirsch@suse.de
michael@12 180 - created package

mercurial