Sophie

Sophie

distrib > Mandriva > 9.2 > i586 > media > main-src > by-pkgid > cccdb665353ad70cefd63aa56ecbaf40 > files > 4

Xaw3d-1.5-13mdk.src.rpm

Summary:	A version of the MIT Athena widget set for X
Name:		Xaw3d
Version:	1.5
Release:	13mdk
Group:		System/Libraries
BuildRequires:	XFree86-devel, xpm-devel, bison, flex

Source:		ftp://ftp.x.org/contrib/widgets/Xaw3d/R6.3/Xaw3d-1.5.tar.bz2
Patch:		Xaw3d-1.1-shlib.patch.bz2
Patch1:		Xaw3d-1.3-glibc.patch.bz2

Url:            ftp://ftp.x.org/contrib/widgets/Xaw3d/
License:	MIT
Prereq:		fileutils
BuildRoot:	%{_tmppath}/%{name}-%{version}-root

%description
Xaw3d is an enhanced version of the MIT Athena Widget set for
the X Window System.  Xaw3d adds a three-dimensional look to applications
with minimal or no source code changes.

You should install Xaw3d if you are using applications which incorporate
the MIT Athena widget set and you'd like to incorporate a 3D look into
those applications.

#
# (fg) Lib policy stuff
#

%define major 7
%define libname %mklibname %{name} %{major}

%package -n %{libname}
Summary:	A version of the MIT Athena widget set for X
Group:		System/Libraries
Obsoletes: %{name}
Provides: %{name}

%description -n %{libname}
Xaw3d is an enhanced version of the MIT Athena Widget set for
the X Window System.  Xaw3d adds a three-dimensional look to applications
with minimal or no source code changes.

You should install Xaw3d if you are using applications which incorporate
the MIT Athena widget set and you'd like to incorporate a 3D look into
those applications.

%package -n %{libname}-devel
Summary:	Header files and static libraries for development using Xaw3d
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides: %{name}-devel lib%{name}-devel
Obsoletes: %{name}-devel


%description -n %{libname}-devel
Xaw3d is an enhanced version of the MIT Athena widget set for
the X Window System.  Xaw3d adds a three-dimensional look to those
applications with minimal or no source code changes. Xaw3d-devel includes
the header files and static libraries for developing programs that take
full advantage of Xaw3d's features.

You should install Xaw3d-devel if you are going to develop applications
using the Xaw3d widget set.  You'll also need to install the Xaw3d
package.

%prep

%setup -q -c
cd xc/lib/Xaw3d
%patch -p0
ln -s .. X11
%patch1 -p4

%build
cd xc/lib/Xaw3d
export PATH=/usr/X11R6/bin:$PATH
xmkmf
%ifarch alpha
# alpha was giving internal compiler errors...
make CDEBUGFLAGS=""
%else
%make CDEBUGFLAGS="$RPM_OPT_FLAGS" CXXDEBUGFLAGS="$RPM_OPT_FLAGS"
%endif

%install
rm -rf $RPM_BUILD_ROOT
cd xc/lib/Xaw3d
%makeinstall_std
mkdir -p $RPM_BUILD_ROOT%{_prefix}/X11R6/include/X11

%clean
rm -rf $RPM_BUILD_ROOT

%post -n %{libname} -p /sbin/ldconfig

%postun -n %{libname} -p /sbin/ldconfig

%post -n %{libname}-devel
if [ ! -d %{_prefix}/X11R6/include/X11/Xaw3d ] ; then
	rm -f %{_prefix}/X11R6/include/X11/Xaw3d
	ln -sf ../Xaw3d %{_prefix}/X11R6/include/X11
fi

%triggerpostun -- Xaw3d-devel < 1.3-17
rm -rf %{_prefix}/X11R6/include/X11/Xaw3d
ln -sf ../Xaw3d %{_prefix}/X11R6/include/X11

%files -n %{libname}
%defattr(-,root,root)
%{_prefix}/X11R6/%{_lib}/*.so.*

%files -n %{libname}-devel
%defattr(-,root,root)
%{_prefix}/X11R6/%{_lib}/*.a
%{_prefix}/X11R6/%{_lib}/*.so
%{_prefix}/X11R6/include/X11/Xaw3d

%changelog
* Wed Jul 30 2003 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 1.5-13mdk
- BuildRequires: xpm-devel

* Tue Jul 22 2003 Per Øyvind Karlsen <peroyvind@sintrax.net> 1.5-12mdk
- rebuild
- macroize

* Thu Dec  5 2002 Frederic Lepied <flepied@mandrakesoft.com> 1.5-11mdk
- use %%mklibname

* Fri Sep 27 2002 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 1.5-10mdk
- rpmlint fixes: strange-permission, hardcoded-library-path

* Fri Feb 23 2001 Francis Galiegue <fg@mandrakesoft.com> 1.5-9mdk
- Obsoletes and Provides Xaw3d

* Fri Feb 23 2001 Francis Galiegue <fg@mandrakesoft.com> 1.5-8mdk
- BuildRequires: flex, bison
- New library policy

* Wed Jan 10 2001 David BAUDENS <baudens@mandrakesoft.com> 1.5-7mdk
- BuildRequires: libxpm4-devel

* Mon Aug 07 2000 Frederic Lepied <flepied@mandrakesoft.com> 1.5-6mdk
- automatically added BuildRequires

* Mon Mar 27 2000 Frederic Lepied <flepied@mandrakesoft.com> 1.5-5mdk
- fix group.

* Sat Dec 18 1999 Stefan van der Eijk <s.vandereijk@chello.nl>
- adopted spec file to build on alpha (ifarch statement in build)
(pixel's rebuild)

* Tue Nov 02 1999 Pablo Saratxaga <pablo@mandrakesoft.com>
- build for new environment

* Sat Jul 17 1999 Bernhard Rosenkraenzer <bero@mandrakesoft.com>
- 1.5
- update download URL
- remove obsolete R6.3 patch

* Tue May 04 1999 Bernhard Rosenkraenzer <bero@mandrakesoft.com>
- Mandrake adaptions
- handle RPM_OPT_FLAGS
- add de locale

* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
- auto rebuild in the new build environment (release 21)

* Wed Feb 24 1999 Preston Brown <pbrown@redhat.com>
- Injected new description and group.

* Fri Dec 18 1998 Preston Brown <pbrown@redhat.com>
- bumped spec number for initial rh 6.0 build

* Fri Nov 06 1998 Preston Brown <pbrown@redhat.com>
- added security/update patch from debian (the X11R6.3 patch). Thanks guys. :)

* Wed Oct 14 1998 Cristian Gafton <gafton@redhat.com>
- handle the symlink with triggers instead of getting rid of it

* Mon Oct  5 1998 Jeff Johnson <jbj@redhat.com>
- remove backward compatible symlink.

* Wed May 06 1998 Cristian Gafton <gafton@redhat.com>
- fixed the bad symlink
- BuildRoot

* Mon Apr 27 1998 Prospector System <bugs@redhat.com>
- translations modified for de, fr, tr

* Tue Nov 04 1997 Erik Troan <ewt@redhat.com>
- don't lave an improper return code from %pre

* Mon Nov 03 1997 Cristian Gafton <gafton@redhat.com>
- take care of the old location of the Xaw3d includes in case that one exist
- updated Prereq: field

* Mon Oct 26 1997 Cristian Gafton <gafton@redhat.com
- fixed the -devel package for the right include files path

* Mon Oct 13 1997 Donnie Barnes <djb@redhat.com>
- minor spec file cleanups

* Wed Oct 01 1997 Erik Troan <ewt@redhat.com>
- i18n widec.h patch needs to be applied on all systems

* Sun Sep 14 1997 Erik Troan <ewt@redhat.com>
- changed axp check to alpha

* Mon Jun 16 1997 Erik Troan <ewt@redhat.com>
- built against glibc