Sun, 08 May 2011 15:47:22 +0200
Reintroduce static library production in development package.
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@13 | 26 | Release: 4.2 |
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@13 | 69 | --enable-static \ |
michael@12 | 70 | --with-pic |
michael@12 | 71 | %{__make} %{?jobs:-j%jobs} |
michael@12 | 72 | |
michael@12 | 73 | %install |
michael@12 | 74 | make install DESTDIR=$RPM_BUILD_ROOT |
michael@12 | 75 | mkdir -p $RPM_BUILD_ROOT/usr/share/X11/app-defaults |
michael@12 | 76 | %fdupes -s $RPM_BUILD_ROOT/%_mandir |
michael@12 | 77 | |
michael@12 | 78 | %clean |
michael@12 | 79 | rm -rf "$RPM_BUILD_ROOT" |
michael@12 | 80 | |
michael@12 | 81 | %post -p /sbin/ldconfig |
michael@12 | 82 | |
michael@12 | 83 | %postun -p /sbin/ldconfig |
michael@12 | 84 | |
michael@12 | 85 | %pre devel |
michael@12 | 86 | test -L usr/include/X11 && rm usr/include/X11 |
michael@12 | 87 | exit 0 |
michael@12 | 88 | |
michael@12 | 89 | %files |
michael@12 | 90 | %defattr(-,root,root) |
michael@12 | 91 | %dir /usr/share/X11/app-defaults |
michael@12 | 92 | %{_libdir}/*.so.* |
michael@12 | 93 | |
michael@12 | 94 | %files devel |
michael@12 | 95 | %defattr(-,root,root) |
michael@12 | 96 | /usr/include/X11/*.h |
michael@12 | 97 | %{_libdir}/*.so |
michael@12 | 98 | %{_libdir}/pkgconfig/*.pc |
michael@12 | 99 | %{_mandir}/man3/* |
michael@12 | 100 | %{_libdir}/*.a |
michael@12 | 101 | %{_libdir}/*.la |
michael@12 | 102 | |
michael@12 | 103 | %changelog |
michael@13 | 104 | * Sun May 8 2011 michael@schloh.com |
michael@13 | 105 | - Reintroduced static library in dev package. |
michael@12 | 106 | * Tue Dec 21 2010 sndirsch@novell.com |
michael@12 | 107 | - bumped version number to 7.6_1.0.9 |
michael@12 | 108 | * Wed Dec 1 2010 jslaby@suse.de |
michael@12 | 109 | - revert 'export only public API symbols' |
michael@12 | 110 | it breaks xterm, xclock and others |
michael@12 | 111 | * Tue Nov 30 2010 cristian.rodriguez@opensuse.org |
michael@12 | 112 | - export only public API symbols |
michael@12 | 113 | - disable silent rules, defeat the purpose of post build checks |
michael@12 | 114 | * Fri Oct 29 2010 sndirsch@novell.com |
michael@12 | 115 | - libXt 1.0.9 |
michael@12 | 116 | * This release includes several bug fixes, as well as the usual |
michael@12 | 117 | set of recent build configuration improvements & janitorial |
michael@12 | 118 | cleanups. |
michael@12 | 119 | * Sat Sep 4 2010 sndirsch@suse.de |
michael@12 | 120 | - libXt 1.0.8 |
michael@12 | 121 | - bumped version number to 7.5_1.0.8 |
michael@12 | 122 | - make use of %%fdupes macro |
michael@12 | 123 | - fixed Summary/Group entries in -devel package |
michael@12 | 124 | * Sun Apr 4 2010 sndirsch@suse.de |
michael@12 | 125 | - libXt 1.0.7 |
michael@12 | 126 | - adjusted libXt.diff |
michael@12 | 127 | - bumped version number to 7.5 |
michael@12 | 128 | * Mon Dec 14 2009 jengelh@medozas.de |
michael@12 | 129 | - add baselibs.conf as a source |
michael@12 | 130 | * Sat Nov 14 2009 sndirsch@suse.de |
michael@12 | 131 | - regenerated libXt.diff |
michael@12 | 132 | - fixed build |
michael@12 | 133 | * Sat Jul 4 2009 sndirsch@suse.de |
michael@12 | 134 | - libXt 1.0.6 |
michael@12 | 135 | * bugfix release |
michael@12 | 136 | * Fri May 1 2009 eich@suse.de |
michael@12 | 137 | - revert static library and .la file removal |
michael@12 | 138 | for SUSE versions <= 11.1. |
michael@12 | 139 | * Tue Apr 21 2009 crrodriguez@suse.de |
michael@12 | 140 | - remove static libraries and "la" files |
michael@12 | 141 | - run ldconfig in postun |
michael@12 | 142 | * Thu Sep 11 2008 sndirsch@suse.de |
michael@12 | 143 | - bumped release number to 7.4 |
michael@12 | 144 | * Thu Apr 10 2008 ro@suse.de |
michael@12 | 145 | - added baselibs.conf file to build xxbit packages |
michael@12 | 146 | for multilib support |
michael@12 | 147 | * Sat Sep 29 2007 sndirsch@suse.de |
michael@12 | 148 | - bumped version to 7.3 |
michael@12 | 149 | * Mon Jan 29 2007 sndirsch@suse.de |
michael@12 | 150 | - update release to 1.0.5 |
michael@12 | 151 | * Bug 9514: Markup error in makestrs.1x man page |
michael@12 | 152 | * Wed Nov 8 2006 sndirsch@suse.de |
michael@12 | 153 | - update release to 1.0.4 (X.Org 7.2 RC2) |
michael@12 | 154 | * Add more generated files to ignore. |
michael@12 | 155 | * Fix .pc file with new autotools by using AC_DEFINE_DIR. |
michael@12 | 156 | * Sat Oct 14 2006 sndirsch@suse.de |
michael@12 | 157 | - updated to X.Org 7.2RC1 |
michael@12 | 158 | * Wed Aug 2 2006 sndirsch@suse.de |
michael@12 | 159 | - completed search path for old app-defaults location |
michael@12 | 160 | * Wed Aug 2 2006 sndirsch@suse.de |
michael@12 | 161 | - fix setup line |
michael@12 | 162 | * Mon Jul 31 2006 sndirsch@suse.de |
michael@12 | 163 | - use /usr/share/X11 as default path for XtErrorDB, since this is |
michael@12 | 164 | also the new default path for XErrorDB |
michael@12 | 165 | * Fri Jul 28 2006 sndirsch@suse.de |
michael@12 | 166 | - use "-fno-strict-aliasing" |
michael@12 | 167 | * Thu Jul 27 2006 sndirsch@suse.de |
michael@12 | 168 | - use $RPM_OPT_FLAGS |
michael@12 | 169 | - remove existing /usr/include/X11 symlink in %%pre |
michael@12 | 170 | * Tue Jul 25 2006 sndirsch@suse.de |
michael@12 | 171 | - added app-defaults dir to package |
michael@12 | 172 | * Tue Jul 25 2006 sndirsch@suse.de |
michael@12 | 173 | - app-defaults.diff: read also /usr/X11R6/lib/X11/app-defaults |
michael@12 | 174 | * Thu Jun 22 2006 sndirsch@suse.de |
michael@12 | 175 | - created package |