INFO: MesaLib.spec

Wojciech "Sas" Cieciwa cieciwa w alpha.zarz.agh.edu.pl
Pią, 28 Sie 1998, 10:12:21 CEST


Ok. coś sie pop**** i nie posłało wczoraj spec-a.
Więc ślę go teraz.

Jest on do poprawy,
źródłem był spec do MesaLib-2.6 autorstwa Tomka.

=========================================================================
Summary:   Free OpenGL implementation. Runtime environment
Summary(pl): 'Wolna' implementacja satndartu OpenGL
Name:      Mesa
Version:   3.0
Release:   beta8-1
Copyright: GPL
Group:     Libraries
Source0:   ftp://iris.ssec.wisc.edu/pub/Mesa/beta/%{name}Lib-%{version}beta8.tar.gz
Source1: ftp://iris.ssec.wisc.edu/pub/Mesa/beta/%{name}Demos-%{version}beta8.tar.gz
URL:       http://www.ssec.wisc.edu/~brianp/Mesa.html
BuildRoot: /tmp/%{name}-%{version}-root
Prefix:    /usr

%description
Mesa is a 3-D graphics library with an API which is very similar to that
of OpenGL*.  To the extent that Mesa utilizes the OpenGL command syntax
or state machine, it is being used with authorization from Silicon Graphics,
Inc.  However, the author makes no claim that Mesa is in any way a
compatible replacement for OpenGL or associated with Silicon Graphics, Inc.
Those who want a licensed implementation of OpenGL should contact a licensed
vendor.  This software is distributed under the terms of the GNU Library
General Public License, see the LICENSE file for details.

* OpenGL(R) is a registered trademark of Silicon Graphics, Inc.

%description -l pl

%package devel
Summary:   Development environment for Mesa
#Summary(pl):
Requires:  Mesa = %{version}
Group:     Developments/Libraries

%description devel
The static version of the Mesa libraries and include files needed for
development.
%description -l pl devel


%package glut
Summary:   GLUT library for Mesa
Summary(pl): Biblioteka GLUT dla Mesy
Group:     X11/Libraries
Requires:  Mesa = %{version}
Obsoletes: glut

%description glut
The GLUT library.

%description -l pl glut


%package glut-devel
Summary:   GLUT Development environment for Mesa
Summary(pl): GLUT 
Group:     Developments/Libraries
Requires:  Mesa = %{version}
Obsoletes: glut-devel

%description glut-devel
The static version of the GLUT library and include files needed for
development.

%description -l pl glut-devel
Wersa GLUT linkowana statycznie wraz z plikami naglowkowymi potrzebnymi
do pisania programow.
  
%package demos
Summary:   Mesa Demos
Summary(pl): Mesa Demo
Group:     Developments/Libraries
%description demos
Demonstration programs for the Mesa libraries.

%description -l pl demos
Programy demonstracyjne dla biblioteki Mesa.

%prep
%setup -q -n Mesa-%{version} -b 1

%build
%ifarch alpha
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" LIBS_ONLY=YES linux-alpha
make clean
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" linux-alpha-elf
%endif

%ifarch ppc
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" linux-ppc
%endif

%ifarch i386
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" LIBS_ONLY=YES linux-386
make clean
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" linux-386-elf
%endif

%ifarch sparc sparc64
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" linux-elf
%endif

(cd widgets-mesa; CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr; make )

%install
rm -fr $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT/usr/{lib/Mesa,include,man/man3}

cp -dpr lib include $RPM_BUILD_ROOT/usr
cp -dpr book demos xdemos samples util $RPM_BUILD_ROOT/usr/lib/Mesa
install Make-config $RPM_BUILD_ROOT/usr/lib/Mesa

(cd widgets-mesa; make prefix=$RPM_BUILD_ROOT/usr install )

install */lib*.a $RPM_BUILD_ROOT/usr/lib

strip $RPM_BUILD_ROOT/usr/lib/{lib*so.*.*,Mesa/*/*} || 

%clean
rm -fr $RPM_BUILD_ROOT

%post   -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(644, root, root)
%doc FUTURE IAFA-PACKAGE LICENSE README* RELNOTES VERSIONS

%ifnarch ppc
/usr/lib/libMesa*.so.*.*
%else
/usr/lib/libMesa*.a
%endif

%files glut
%defattr(644, root, root)
%ifnarch ppc
/usr/lib/libglut.so.*
%else
/usr/lib/libglut.a
%endif

%files glut-devel
%defattr(644, root, root)
%ifnarch ppc
/usr/lib/libglut.so
/usr/lib/libglut.a
%endif
/usr/include/GL/glut.h

%files devel
%defattr(644, root, root, 755)
%ifnarch ppc
/usr/lib/libMesa*.so
/usr/lib/libMesa*.a
%endif

%dir /usr/lib/Mesa
/usr/lib/Mesa/Make-config
%dir /usr/lib/Mesa/util
/usr/lib/Mesa/util/*

%dir /usr/include/GL
/usr/include/GL/GLw*.h
/usr/include/GL/Mesa*.h
/usr/include/GL/gl.h
/usr/include/GL/gl_mangle.h
/usr/include/GL/glu.h
/usr/include/GL/glu_mangle.h
/usr/include/GL/glx.h
/usr/include/GL/glx_mangle.h
/usr/include/GL/*mesa.h
%attr(644, root, man) /usr/man/man3/GLw*
%attr(644, root, man) /usr/man/man3/Mesa*

%files demos
%defattr(644, root, root, 755)
%dir /usr/lib/Mesa/book
%dir /usr/lib/Mesa/demos
%dir /usr/lib/Mesa/samples
%dir /usr/lib/Mesa/xdemos

%attr(-, root, root)/usr/lib/Mesa/book/*
%attr(-, root, root)/usr/lib/Mesa/demos/*
%attr(-, root, root)/usr/lib/Mesa/samples/*
%attr(-, root, root)/usr/lib/Mesa/xdemos/*

%changelog
* Thu Aug 27 1998 Wojciech "Sas" Cieciwa <cieciwa w alpha.zarz.agh.edu.pl>
- updated to Mesa 3.0 beta 8.
 
* Mon Aug  3 1998 Wojciech "Sas" Cieciwa <cieciwa w alpha.zarz.agh.edu.pl>
- uptated to Mesa 3.0 beta 7.

* Thu Jul 23 1998 Wojciech "Sas" Cięciwa <cieciwa w alpha.zarz.agh.edu.pl>
- updated to Mesa 3.0 Beta 6.

* Wed May  5 1998 Tomasz Kłoczko <kloczek w rudy.mif.pg.gda.pl>
- removed declarate %%{version}, %%{name}, %%{release} macros because
  all are predefined,
- removed check $RPM_BUILD_ROOT in %clean and %install,
- added "Requires: Mesa = %%{version}" for all subpackages (for
  keeping corectly dependences),
- in Mesa-glut* packages changed "Conflict:" to "Obsoletes:",
- added striping shared libs and demos,
- added modification in %build wihch allow build Mesa on sparc[64]
  architecture,
- all utils and demos instaled in /usr/lib/Mesa,
- added %defattr macros in %files (on rebuild require rpm >= 2.4.99),
- added -q %setup parameter.

* Thu Feb 12 1998 Christian 'Dr. Disk' Hechelmann <drdisk w ds9.au.s.shuttle.de>
- updated to final version 2.6

* Thu Feb 05 1998 Christian 'Dr. Disk' Hechelmann <drdisk w ds9.au.s.shuttle.de>
- Fixed thinko in misc patch
- build against glibc

* Sat Jan 31 1998 Christian 'Dr. Disk' Hechelmann <drdisk w ds9.au.s.shuttle.de>
- updated to version 2.6beta5
- added widget-mesa to the things to be build.

* Mon Jan 26 1998 Christian 'Dr. Disk' Hechelmann <drdisk w ds9.au.s.shuttle.de>
- updated to version 2.6beta4

* Sun Dec 14 1997 Christian 'Dr. Disk' Hechelmann <drdisk w ds9.au.s.shuttle.de>
- updated to version 2.6beta1

* Sat Dec 13 1997 Christian 'Dr. Disk' Hechelmann <drdisk w ds9.au.s.shuttle.de>
- Moved GLUT into a separate subpackage and added an Obsoletes tag to this
  subpackage
- Moved lib*.so to the devel package, they are only needed for development,
  not for a runtime environment.

* Sat Nov 29 1997 Christian 'Dr. Disk' Hechelmann <drdisk w ds9.au.s.shuttle.de>
- added patches from ftp://iris.ssec.wisc.edu/pub/Mesa/patches_to_2.5
- BuildRoot'ed
- Prefix'ed
- added static versions of the libraries. (PPC version seems not to have
  support for shared versions of the library)
- moved static versions of the library and the includes to the new subpackage
  'devel'
- targets other than linux-x86 still untested.
- added Conflitcs tag
- added %postun
- added patch for RPM_OPT_FLAGS support

* Fri Nov 21 1997 Karsten Weiss <karsten w addx.au.s.shuttle.de>
- Upgraded to Mesa 2.5
- Multiarch destinations (untested).
- Included GLUT.
- Removed some of the READMEs for other platforms from the binary RPM.


=============================================================================
  UNIX System Administrator, POLAND
      _/_/_/_/ _/_/_/_/  _/_/_/_/     Wojciech 'Sas' Cieciwa
     _/       _/    _/  _/                   
    _/_/_/_/ _/_/_/_/  _/_/_/_/     cieciwa w alpha.zarz.agh.edu.pl
         _/ _/    _/        _/     sas w uci.agh.edu.pl                 
  _/_/_/_/ _/    _/  _/_/_/_/                 
		http://alpha.zarz.agh.edu.pl/~cieciwa




Więcej informacji o liście dyskusyjnej pld-devel-pl