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