rpms/quesoglc/devel generate-tarball.sh, NONE, 1.1 quesoglc-fixbuild.patch, NONE, 1.1 quesoglc.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Karol Trzcionka (karlik) fedora-extras-commits at redhat.com
Fri Dec 28 18:06:59 UTC 2007


Author: karlik

Update of /cvs/pkgs/rpms/quesoglc/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv5938/devel

Modified Files:
	.cvsignore sources 
Added Files:
	generate-tarball.sh quesoglc-fixbuild.patch quesoglc.spec 
Log Message:
Initial cvs package



--- NEW FILE generate-tarball.sh ---
#!/bin/sh

VERSION=$1

tar -xzvf quesoglc-$VERSION.tar.gz
rm quesoglc-$VERSION/include/GL/{glew,wglew,glxew}.h
tar -czvf quesoglc-$VERSION-freecode.tar.gz quesoglc-$VERSION 

quesoglc-fixbuild.patch:

--- NEW FILE quesoglc-fixbuild.patch ---
diff -up ./src/glew.c.fixbuild ./src/glew.c
--- ./src/glew.c.fixbuild	2007-02-21 00:19:28.000000000 +0100
+++ ./src/glew.c	2007-12-21 23:16:11.000000000 +0100
@@ -40,6 +40,8 @@
  * Define glewGetContext and related helper macros.
  */
 #ifdef GLEW_MX
+#  define GLEW_GET_VAR(x) glewGetContext()->x
+#  define GLXEW_GET_VAR(x) glewGetContext()->x
 #  define glewGetContext() ctx
 #  ifdef _WIN32
 #    define GLEW_CONTEXT_ARG_DEF_INIT GLEWContext* ctx
@@ -56,6 +58,8 @@
 #  endif /* _WIN32 */
 #  define GLEW_CONTEXT_ARG_DEF_LIST GLEWContext* ctx
 #else /* GLEW_MX */
+#  define GLEW_GET_VAR(x) x
+#  define GLXEW_GET_VAR(x) x
 #  define GLEW_CONTEXT_ARG_DEF_INIT void
 #  define GLEW_CONTEXT_ARG_VAR_INIT
 #  define GLEW_CONTEXT_ARG_DEF_LIST void


--- NEW FILE quesoglc.spec ---
Name:           quesoglc
Version:        0.6.5
Release:        4%{?dist}
Summary:        The OpenGL Character Renderer

Group:          System Environment/Libraries
License:        LGPLv2+
URL:            http://quesoglc.sourceforge.net/
#Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Source0:        %{name}-%{version}-freecode.tar.gz
# quesoglc contains non-free code that we cannot ship (under freeB and GLXPL).
# Therefore we use this script to remove the patented code before shipping it.
# Download the upstream tarball and invoke this script while in the
# tarball's directory:
# ./generate-tarball.sh 0.6.5
Source1:        generate-tarball.sh
Patch0:         %{name}-fixbuild.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  fontconfig-devel freeglut-devel
BuildRequires:  fribidi-devel glew-devel libSM-devel libXmu-devel
BuildRequires:  libXi-devel doxygen
BuildRequires:  pkgconfig 

%package devel
Summary:        Development files for %{name}
Group:          Development/Libraries
Requires:       %{name} = %{version}-%{release}
Requires:       libGL-devel

%description
The OpenGL Character Renderer (GLC) is a state machine that provides OpenGL
programs with character rendering services via an application programming
interface (API).

%description devel
This package provides the libraries, include files, and other resources needed
for developing GLC applications.

%prep
%setup -q
%patch0
ln -s %{_includedir}/GL/{glxew,wglew,glew}.h include/GL/

%build
%configure --disable-static
make %{?_smp_mflags}
cd docs
doxygen
cd ../

%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
rm -f $RPM_BUILD_ROOT%{_libdir}/libGLC.la

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%files
%defattr(-,root,root,-)
%{_libdir}/libGLC.so.*
%doc AUTHORS Changelog LICENSE README THANKS docs/html

%files devel
%defattr(-,root,root,-)
%{_includedir}/GL/glc.h
%{_libdir}/libGLC.so

%changelog
* Thu Dec 27 2007 Karol Trzcionka <karlikt at gmail.com> - 0.6.5-4
- Delete %%check
* Sun Dec 23 2007 Karol Trzcionka <karlikt at gmail.com> - 0.6.5-3
- Add %%check section
- Remove redundant BuildRequires
* Sat Dec 22 2007 Karol Trzcionka <karlikt at gmail.com> - 0.6.5-2
- Remove freeB and GLXPL files
- Add html docs
- Add Requires for subpackage -devel
- Fix BuildRequires
* Sat Dec 01 2007 Karol Trzcionka <karlikt at gmail.com> - 0.6.5-1
- Initial release

Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/quesoglc/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	28 Dec 2007 17:42:03 -0000	1.1
+++ .cvsignore	28 Dec 2007 18:06:21 -0000	1.2
@@ -0,0 +1 @@
+quesoglc-0.6.5-freecode.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/quesoglc/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	28 Dec 2007 17:42:03 -0000	1.1
+++ sources	28 Dec 2007 18:06:21 -0000	1.2
@@ -0,0 +1 @@
+f764ecd6fb9148a1f4be7a13128958b6  quesoglc-0.6.5-freecode.tar.gz




More information about the fedora-extras-commits mailing list