%define libxaw8 %mklibname xaw 8 %define libxaw7 %mklibname xaw 7 %define libxaw6 %mklibname xaw 6 %define libxawdevel %mklibname xaw -d %define libxawstaticdevel %mklibname xaw -d -s %define default_xprint 0 Name: libxaw Summary: X Athena Widgets Library Version: 1.0.4 Release: %mkrel 5 Group: System/Libraries License: MIT URL: http://xorg.freedesktop.org Source0: http://xorg.freedesktop.org/releases/individual/lib/libXaw-%{version}.tar.bz2 Patch0: 0001-fix-potential-infinte-loop-in-XawBoxQueryGeometry.patch Patch1: 0002-default-no-xprint.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: libx11-devel >= 1.0.0 BuildRequires: libxau-devel >= 1.0.0 BuildRequires: libxext-devel >= 1.0.0 BuildRequires: libxmu-devel >= 1.0.0 BuildRequires: libxp-devel >= 1.0.0 BuildRequires: libxpm-devel >= 3.5.4.2 BuildRequires: libxt-devel >= 1.0.0 BuildRequires: x11-proto-devel >= 1.0.0 BuildRequires: x11-util-macros >= 1.0.1 BuildRequires: ed %description X Athena Widgets Library. #----------------------------------------------------------- %package -n %libxaw8 Group: System/Libraries Summary: Xaw version 8 library Conflicts: libxorg-x11 < 7.0 # (walluck): FIXME: we wouldn't provide this but for the packages that incorrectly require it Provides: libxaw8 = %{version}-%{release} %description -n %libxaw8 Xaw version 8 library %if %mdkversion < 200900 %post -n %libxaw8 -p /sbin/ldconfig %endif %if %mdkversion < 200900 %postun -n %libxaw8 -p /sbin/ldconfig %endif %files -n %libxaw8 %defattr(-,root,root) %{_libdir}/libXaw.so.8 %{_libdir}/libXaw8.so.8 %{_libdir}/libXaw8.so.8.0.0 #----------------------------------------------------------- %package -n %libxaw7 Group: System/Libraries Summary: Xaw version 7 library Conflicts: libxorg-x11 < 7.0 # (walluck): FIXME: we wouldn't provide this but for the packages that incorrectly require it Provides: libxaw7 = %{version}-%{release} %description -n %libxaw7 Xaw version 7 library %if %mdkversion < 200900 %post -n %libxaw7 -p /sbin/ldconfig %endif %if %mdkversion < 200900 %postun -n %libxaw7 -p /sbin/ldconfig %endif %files -n %libxaw7 %defattr(-,root,root) %{_libdir}/libXaw.so.7 %{_libdir}/libXaw7.so.7 %{_libdir}/libXaw7.so.7.0.0 #----------------------------------------------------------- %package -n %libxaw6 Group: System/Libraries Summary: Xaw version 6 library Conflicts: libxorg-x11 < 7.0 # (walluck): FIXME: we wouldn't provide this but for the packages that incorrectly require it Provides: libxaw6 = %{version}-%{release} %description -n %libxaw6 Xaw version 6 library %if %mdkversion < 200900 %post -n %libxaw6 -p /sbin/ldconfig %endif %if %mdkversion < 200900 %postun -n %libxaw6 -p /sbin/ldconfig %endif %files -n %libxaw6 %defattr(-,root,root) %{_libdir}/libXaw.so.6 %{_libdir}/libXaw6.so.6 %{_libdir}/libXaw6.so.6.0.1 #----------------------------------------------------------- # (walluck): FIXME: this should be split into 4 packages: common, 6, 7, 8 %package -n %libxawdevel Summary: Development files for %{name} Group: Development/X11 Requires: %libxaw8 = %{version}-%{release} Requires: %libxaw7 = %{version}-%{release} Requires: %libxaw6 = %{version}-%{release} Requires: libxmu-devel >= 1.0.0 Requires: libxt-devel >= 1.0.0 Requires: x11-proto-devel >= 1.0.0 Conflicts: libxorg-x11-devel < 7.0 Provides: xaw-devel = %{version}-%{release} # (walluck): FIXME: we wouldn't provide this but for the packages that incorrectly require it Obsoletes: libxaw-devel < 1.0.3-5 Provides: libxaw-devel = %{version}-%{release} %description -n %libxawdevel Development files for %{name} %pre -n %libxawdevel if [ -h %{_includedir}/X11 ]; then rm -f %{_includedir}/X11 fi %files -n %libxawdevel %defattr(-,root,root) %{_libdir}/*.so %{_libdir}/*.la %{_libdir}/pkgconfig/*.pc %dir %{_includedir}/X11/Xaw %{_includedir}/X11/Xaw/* %{_mandir}/man3/Xaw.3.* %{_datadir}/aclocal/xaw.m4 #----------------------------------------------------------- # (walluck): FIXME: this should be split into 3 packages: 6, 7, 8 %package -n %libxawstaticdevel Summary: Static development files for %{name} Group: Development/X11 Requires: %libxawdevel = %{version}-%{release} Provides: xaw-static-devel = %{version}-%{release} # (walluck): FIXME: we wouldn't provide this but for the packages that incorrectly require it Obsoletes: libxaw-static-devel < 1.0.3-5 Provides: libxaw-static-devel = %{version}-%{release} Conflicts: libxorg-x11-static-devel < 7.0 %description -n %libxawstaticdevel Static development files for %{name} %files -n %libxawstaticdevel %defattr(-,root,root) %{_libdir}/*.a #----------------------------------------------------------- %prep %setup -q -n libXaw-%{version} %patch0 -p1 -b .infinite-loop %if !%{default_xprint} %patch1 -p1 -b .no-xprint %endif %build %configure2_5x --x-includes=%{_includedir}\ --x-libraries=%{_libdir} %make %install rm -rf %{buildroot} %makeinstall_std %clean rm -rf %{buildroot} %changelog * Tue Jun 17 2008 Thierry Vignaud <tvignaud@mandriva.com> 1.0.4-5mdv2009.0 + Revision: 223064 - rebuild + Pixel <pixel@mandriva.com> - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers + Paulo Andrade <pcpa@mandriva.com.br> - Revert build requires. * Tue Jan 15 2008 Paulo Andrade <pcpa@mandriva.com.br> 1.0.4-4mdv2008.1 + Revision: 153295 - Update BuildRequires and rebuild + Olivier Blin <oblin@mandriva.com> - restore BuildRoot + Thierry Vignaud <tvignaud@mandriva.com> - kill re-definition of %%buildroot on Pixel's request * Sat Nov 17 2007 Funda Wang <fundawang@mandriva.org> 1.0.4-3mdv2008.1 + Revision: 109209 - rebuild for new lzma * Mon Oct 29 2007 Paulo Andrade <pcpa@mandriva.com.br> 1.0.4-2mdv2008.1 + Revision: 103285 - Add patch. - Default to not use xprint by default. The only sample implementation to use xprint was xedit, but since it was reverted to explicitly not use xprint, there is not reason to enable it by default on applications that don't use it. * Wed Aug 22 2007 Thierry Vignaud <tvignaud@mandriva.com> 1.0.4-1mdv2008.0 + Revision: 68964 - new release * Fri Aug 10 2007 David Walluck <walluck@mandriva.org> 1.0.3-5mdv2008.0 + Revision: 61683 - fix devel upgrades by adding Obsoletes * Fri Aug 10 2007 David Walluck <walluck@mandriva.org> 1.0.3-4mdv2008.0 + Revision: 61655 - bring more in line with library policy - document remaining library problems * Mon Jul 16 2007 Ademar de Souza Reis Jr <ademar@mandriva.com.br> 1.0.3-3mdv2008.0 + Revision: 52624 - Apply patch from Glenn Burkhardt <gbburkhardt@verizon.net> which fixes a potential integer overflow (fix #30370) * Thu Jul 12 2007 Tomasz Pawel Gajc <tpg@mandriva.org> 1.0.3-1mdv2008.0 + Revision: 51464 - new version * Sat Jan 27 2007 Olivier Thauvin <nanardon@mandriva.org> 1.0.2-5mdv2007.0 + Revision: 114243 - rebuild and reupload * Sun Aug 13 2006 Christiaan Welvaart <cjw@daneel.dyndns.org> 1.0.2-4mdv2007.0 + Revision: 55737 - add BuildRequires: ed - for a configure check that changes the sonames + Gustavo Pichorim Boiko <boiko@mandriva.com> - rebuild to fix cooker uploading - Removed explicit provides for libraries - Provides libXa8.so.8 - Provides libXa7.so.7 - X11R7.1 - increment release - fixed more dependencies - Adding X.org 7.0 to the repository + Andreas Hasenack <andreas@mandriva.com> - renamed mdv to packages because mdv is too generic and it's hosting only packages anyway + Thierry Vignaud <tvignaud@mandriva.com> - fix build on x86_64