diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a81617d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/glw-8.0.0.tar.bz2 diff --git a/.mesa-libGLw.metadata b/.mesa-libGLw.metadata new file mode 100644 index 0000000..fa1b084 --- /dev/null +++ b/.mesa-libGLw.metadata @@ -0,0 +1 @@ +08de9c63a2d0ec452fb80cca91cd1fa0d9550db4 SOURCES/glw-8.0.0.tar.bz2 diff --git a/SOURCES/0001-libGLw-Use-newly-introduced-GLAPIVAR-for-variables.patch b/SOURCES/0001-libGLw-Use-newly-introduced-GLAPIVAR-for-variables.patch new file mode 100644 index 0000000..9082da2 --- /dev/null +++ b/SOURCES/0001-libGLw-Use-newly-introduced-GLAPIVAR-for-variables.patch @@ -0,0 +1,73 @@ +From b060a0782f09ebe4f60c8fd4564c11ba043c331f Mon Sep 17 00:00:00 2001 +From: Stefan Dirsch +Date: Tue, 17 Jul 2018 12:40:00 -0600 +Subject: [PATCH] libGLw: Use newly introduced GLAPIVAR for variables + +GLAPI doesn't have an 'extern' in some circumstances. This way, +variable declarations become definitions (fdo #100916). + +Signed-off-by: Stefan Dirsch +Reviewed-by: Brian Paul +--- + GLwDrawA.h | 10 ++++++++-- + GLwDrawAP.h | 4 ++-- + 2 files changed, 10 insertions(+), 4 deletions(-) + +diff --git a/GLwDrawA.h b/GLwDrawA.h +index b9711c2..316a70d 100644 +--- a/GLwDrawA.h ++++ b/GLwDrawA.h +@@ -131,12 +131,18 @@ + #define GLwNaccumAlphaSize "accumAlphaSize" + #define GLwCAccumAlphaSize "AccumAlphaSize" + ++#if (defined(__GNUC__) && __GNUC__ >= 4) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)) ++# define GLAPIVAR extern __attribute__((visibility("default"))) ++#else ++# define GLAPIVAR extern ++#endif ++ + #ifdef __GLX_MOTIF + + typedef struct _GLwMDrawingAreaClassRec *GLwMDrawingAreaWidgetClass; + typedef struct _GLwMDrawingAreaRec *GLwMDrawingAreaWidget; + +-GLAPI WidgetClass glwMDrawingAreaWidgetClass; ++GLAPIVAR WidgetClass glwMDrawingAreaWidgetClass; + + + #else +@@ -144,7 +150,7 @@ GLAPI WidgetClass glwMDrawingAreaWidgetClass; + typedef struct _GLwDrawingAreaClassRec *GLwDrawingAreaWidgetClass; + typedef struct _GLwDrawingAreaRec *GLwDrawingAreaWidget; + +-GLAPI WidgetClass glwDrawingAreaWidgetClass; ++GLAPIVAR WidgetClass glwDrawingAreaWidgetClass; + + + #endif +diff --git a/GLwDrawAP.h b/GLwDrawAP.h +index 4ff21b4..6d29849 100644 +--- a/GLwDrawAP.h ++++ b/GLwDrawAP.h +@@ -59,7 +59,7 @@ typedef struct _GLwMDrawingAreaClassRec { + } GLwMDrawingAreaClassRec; + + +-GLAPI GLwMDrawingAreaClassRec glwMDrawingAreaClassRec; ++GLAPIVAR GLwMDrawingAreaClassRec glwMDrawingAreaClassRec; + + + /* XT */ +@@ -70,7 +70,7 @@ typedef struct _GLwDrawingAreaClassRec { + GLwDrawingAreaClassPart glwDrawingArea_class; + } GLwDrawingAreaClassRec; + +-GLAPI GLwDrawingAreaClassRec glwDrawingAreaClassRec; ++GLAPIVAR GLwDrawingAreaClassRec glwDrawingAreaClassRec; + + + #endif +-- +2.21.0 + diff --git a/SPECS/mesa-libGLw.spec b/SPECS/mesa-libGLw.spec new file mode 100644 index 0000000..373aa20 --- /dev/null +++ b/SPECS/mesa-libGLw.spec @@ -0,0 +1,153 @@ +Summary: Xt / Motif OpenGL widgets +Name: mesa-libGLw +Version: 8.0.0 +Release: 5%{?dist} +License: MIT +Group: System Environment/Libraries +URL: http://www.mesa3d.org +Source0: ftp://ftp.freedesktop.org/pub/mesa/glw/glw-%{version}.tar.bz2 + +Patch0: 0001-libGLw-Use-newly-introduced-GLAPIVAR-for-variables.patch + +BuildRequires: libXt-devel +BuildRequires: libGL-devel +%if 0%{?rhel} +BuildRequires: openmotif-devel +%else +BuildRequires: lesstif-devel +%endif + +Provides: libGLw + +%description +Mesa libGLw runtime library. + +%package devel +Summary: Mesa libGLw development package +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: libGL-devel +%if 0%{?rhel} +Requires: openmotif-devel +%else +Requires: lesstif-devel +%endif +Provides: libGLw-devel + +%description devel +Mesa libGLw development package. + +%prep +%setup -q -n glw-%{version} +%patch0 -p1 + +%build +%configure --disable-static --enable-motif +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -name \*.la | xargs rm -f + +%clean +rm -rf $RPM_BUILD_ROOT + +%check + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root,-) +%doc README +%{_libdir}/libGLw.so.1 +%{_libdir}/libGLw.so.1.0.0 + +%files devel +%defattr(-,root,root,-) +%{_libdir}/libGLw.so +%{_libdir}/pkgconfig/glw.pc +%{_includedir}/GL/GLwDrawA.h +%{_includedir}/GL/GLwDrawAP.h +%{_includedir}/GL/GLwMDrawA.h +%{_includedir}/GL/GLwMDrawAP.h + +%changelog +* Mon May 20 2019 Adam Jackson - 8.0.0-5 +- Fix external API symbol visibility + +* Fri Jan 24 2014 Daniel Mach - 8.0.0-4 +- Mass rebuild 2014-01-24 + +* Fri Dec 27 2013 Daniel Mach - 8.0.0-3 +- Mass rebuild 2013-12-27 + +* Thu Feb 14 2013 Fedora Release Engineering - 8.0.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Mon Sep 10 2012 Adam Jackson 8.0.0-1 +- Switch to upstream's split-out glw release + +* Fri Jul 20 2012 Fedora Release Engineering - 6.5.1-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Mon Jul 09 2012 Bill Nottingham - 6.5.1-12 +- fix prior macros + +* Thu Jul 05 2012 Bill Nottingham - 6.5.1-11 +- add conditional macros for openmotif/lesstif + +* Fri Jan 13 2012 Fedora Release Engineering - 6.5.1-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Tue Feb 08 2011 Fedora Release Engineering - 6.5.1-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Sat Jul 25 2009 Fedora Release Engineering - 6.5.1-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Wed Feb 25 2009 Fedora Release Engineering - 6.5.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Wed May 21 2008 Tom "spot" Callaway - 6.5.1-6 +- fix license tag + +* Mon Feb 18 2008 Fedora Release Engineering - 6.5.1-5 +- Autorebuild for GCC 4.3 + +* Fri Oct 12 2007 Matthias Clasen - 6.5.1-4 +- Fix spec file syntax issues (#330331) + +* Tue Aug 21 2007 Adam Jackson - 6.5.1-3 +- Rebuild for build id + +* Wed Jan 24 2007 Adam Jackson 6.5.1-2 +- Minor spec fixes (#210798) + +* Fri Sep 29 2006 Adam Jackson 6.5.1-1 +- lib64 fixes and cleanups from Patrice Dumas (#188974) + +* Tue Sep 19 2006 Adam Jackson 6.5.1-0.2 +- Use 6.5.1 release tarball. Drop patches and build scripts that are no + longer necessary. + +* Tue Sep 19 2006 Adam Jackson 6.5.1-0.1 +- Move revision back up to 6.5.1 for upgrade path from FC5. Misc other + spec fixes as per bug #188974 comment 30. + +* Mon Sep 18 2006 Adam Jackson 1.0-4 +- Rename back to mesa-libGLw as per bug #188974. + +* Wed Aug 30 2006 Tom "spot" Callaway 1.0-3 +- Fix package for x86_64 + +* Tue Aug 29 2006 Tom "spot" Callaway 1.0-2 +- Fix package to depend on lesstif-devel +- -devel now Requires libGL-devel +- use name var in -devel Requires +- actually use RPM_OPT_FLAGS +- symlink devel libs, not copy (except for .*.*.*) + +* Fri Aug 7 2006 Adam Jackson 1.0-1 +- Split libGLw out from Mesa.