Package init
This commit is contained in:
parent
f2a820bd4f
commit
cf50a59658
118
ftgl-2.1.3-rc5-ldflags.patch
Normal file
118
ftgl-2.1.3-rc5-ldflags.patch
Normal file
@ -0,0 +1,118 @@
|
||||
diff -up ftgl-2.1.3~rc5/demo/Makefile.am.ldflags ftgl-2.1.3~rc5/demo/Makefile.am
|
||||
--- ftgl-2.1.3~rc5/demo/Makefile.am.ldflags 2008-06-02 03:10:10.000000000 +0200
|
||||
+++ ftgl-2.1.3~rc5/demo/Makefile.am 2010-02-14 15:02:19.670081290 +0100
|
||||
@@ -9,14 +9,14 @@ simple_SOURCES = \
|
||||
simple.cpp \
|
||||
$(NULL)
|
||||
simple_CXXFLAGS = $(FT2_CFLAGS) $(GL_CFLAGS)
|
||||
-simple_LDFLAGS = $(FT2_LIBS) $(GLUT_LIBS)
|
||||
+simple_LDFLAGS = $(FT2_LIBS) $(GLUT_LIBS) $(GL_LIBS)
|
||||
simple_LDADD = ../src/libftgl.la
|
||||
|
||||
c_demo_SOURCES = \
|
||||
c-demo.c \
|
||||
$(NULL)
|
||||
c_demo_CFLAGS = $(FT2_CFLAGS) $(GL_CFLAGS)
|
||||
-c_demo_LDFLAGS = $(FT2_LIBS) $(GLUT_LIBS)
|
||||
+c_demo_LDFLAGS = $(FT2_LIBS) $(GLUT_LIBS) $(GLUT_LIBS) -lm
|
||||
c_demo_LDADD = ../src/libftgl.la
|
||||
|
||||
FTGLDemo_SOURCES = \
|
||||
@@ -27,7 +27,7 @@ FTGLDemo_SOURCES = \
|
||||
trackball.h \
|
||||
$(NULL)
|
||||
FTGLDemo_CXXFLAGS = $(FT2_CFLAGS) $(GL_CFLAGS)
|
||||
-FTGLDemo_LDFLAGS = $(FT2_LIBS) $(GLUT_LIBS)
|
||||
+FTGLDemo_LDFLAGS = $(FT2_LIBS) $(GLUT_LIBS) $(GL_LIBS)
|
||||
FTGLDemo_LDADD = ../src/libftgl.la
|
||||
|
||||
FTGLMFontDemo_SOURCES = \
|
||||
@@ -38,7 +38,7 @@ FTGLMFontDemo_SOURCES = \
|
||||
trackball.h \
|
||||
$(NULL)
|
||||
FTGLMFontDemo_CXXFLAGS = $(FT2_CFLAGS) $(GL_CFLAGS)
|
||||
-FTGLMFontDemo_LDFLAGS = $(FT2_LIBS) $(GLUT_LIBS)
|
||||
+FTGLMFontDemo_LDFLAGS = $(FT2_LIBS) $(GLUT_LIBS) $(GL_LIBS)
|
||||
FTGLMFontDemo_LDADD = ../src/libftgl.la
|
||||
|
||||
NULL =
|
||||
diff -up ftgl-2.1.3~rc5/demo/Makefile.in.ldflags ftgl-2.1.3~rc5/demo/Makefile.in
|
||||
--- ftgl-2.1.3~rc5/demo/Makefile.in.ldflags 2008-06-12 16:33:01.000000000 +0200
|
||||
+++ ftgl-2.1.3~rc5/demo/Makefile.in 2010-02-14 15:02:01.866831398 +0100
|
||||
@@ -242,14 +242,14 @@ simple_SOURCES = \
|
||||
$(NULL)
|
||||
|
||||
simple_CXXFLAGS = $(FT2_CFLAGS) $(GL_CFLAGS)
|
||||
-simple_LDFLAGS = $(FT2_LIBS) $(GLUT_LIBS)
|
||||
+simple_LDFLAGS = $(FT2_LIBS) $(GLUT_LIBS) $(GL_LIBS)
|
||||
simple_LDADD = ../src/libftgl.la
|
||||
c_demo_SOURCES = \
|
||||
c-demo.c \
|
||||
$(NULL)
|
||||
|
||||
c_demo_CFLAGS = $(FT2_CFLAGS) $(GL_CFLAGS)
|
||||
-c_demo_LDFLAGS = $(FT2_LIBS) $(GLUT_LIBS)
|
||||
+c_demo_LDFLAGS = $(FT2_LIBS) $(GLUT_LIBS) $(GL_LIBS) -lm
|
||||
c_demo_LDADD = ../src/libftgl.la
|
||||
FTGLDemo_SOURCES = \
|
||||
FTGLDemo.cpp \
|
||||
@@ -260,7 +260,7 @@ FTGLDemo_SOURCES = \
|
||||
$(NULL)
|
||||
|
||||
FTGLDemo_CXXFLAGS = $(FT2_CFLAGS) $(GL_CFLAGS)
|
||||
-FTGLDemo_LDFLAGS = $(FT2_LIBS) $(GLUT_LIBS)
|
||||
+FTGLDemo_LDFLAGS = $(FT2_LIBS) $(GLUT_LIBS) $(GL_LIBS)
|
||||
FTGLDemo_LDADD = ../src/libftgl.la
|
||||
FTGLMFontDemo_SOURCES = \
|
||||
FTGLMFontDemo.cpp \
|
||||
@@ -271,7 +271,7 @@ FTGLMFontDemo_SOURCES = \
|
||||
$(NULL)
|
||||
|
||||
FTGLMFontDemo_CXXFLAGS = $(FT2_CFLAGS) $(GL_CFLAGS)
|
||||
-FTGLMFontDemo_LDFLAGS = $(FT2_LIBS) $(GLUT_LIBS)
|
||||
+FTGLMFontDemo_LDFLAGS = $(FT2_LIBS) $(GLUT_LIBS) $(GL_LIBS)
|
||||
FTGLMFontDemo_LDADD = ../src/libftgl.la
|
||||
NULL =
|
||||
all: all-am
|
||||
diff -up ftgl-2.1.3~rc5/test/Makefile.am.ldflags ftgl-2.1.3~rc5/test/Makefile.am
|
||||
--- ftgl-2.1.3~rc5/test/Makefile.am.ldflags 2010-02-14 14:43:14.819077822 +0100
|
||||
+++ ftgl-2.1.3~rc5/test/Makefile.am 2010-02-14 14:43:49.227081230 +0100
|
||||
@@ -51,7 +51,7 @@ AM_CPPFLAGS = \
|
||||
$(NULL)
|
||||
|
||||
CXXTest_CXXFLAGS = $(FT2_CFLAGS) $(GL_CFLAGS)
|
||||
-CXXTest_LDFLAGS = $(FT2_LIBS) $(GLUT_LIBS) -lcppunit
|
||||
+CXXTest_LDFLAGS = $(FT2_LIBS) $(GLUT_LIBS) $(GL_LIBS) -lcppunit
|
||||
CXXTest_LDADD = ../src/libftgl.la
|
||||
|
||||
CTest_SOURCES = \
|
||||
@@ -64,7 +64,7 @@ CTest_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/FTFont \
|
||||
-I$(top_srcdir)/src/FTLayout
|
||||
CTest_CFLAGS = $(FT2_CFLAGS) $(GL_CFLAGS)
|
||||
-CTest_LDFLAGS = $(FT2_LIBS) $(GLUT_LIBS)
|
||||
+CTest_LDFLAGS = $(FT2_LIBS) $(GLUT_LIBS) $(GL_LIBS)
|
||||
CTest_LDADD = ../src/libftgl.la
|
||||
|
||||
NULL =
|
||||
diff -up ftgl-2.1.3~rc5/test/Makefile.in.ldflags ftgl-2.1.3~rc5/test/Makefile.in
|
||||
--- ftgl-2.1.3~rc5/test/Makefile.in.ldflags 2010-02-14 14:43:20.365077958 +0100
|
||||
+++ ftgl-2.1.3~rc5/test/Makefile.in 2010-02-14 14:44:13.653078013 +0100
|
||||
@@ -294,7 +294,7 @@ AM_CPPFLAGS = \
|
||||
$(NULL)
|
||||
|
||||
CXXTest_CXXFLAGS = $(FT2_CFLAGS) $(GL_CFLAGS)
|
||||
-CXXTest_LDFLAGS = $(FT2_LIBS) $(GLUT_LIBS) -lcppunit
|
||||
+CXXTest_LDFLAGS = $(FT2_LIBS) $(GLUT_LIBS) $(GL_LIBS) -lcppunit
|
||||
CXXTest_LDADD = ../src/libftgl.la
|
||||
CTest_SOURCES = \
|
||||
CTest.c \
|
||||
@@ -308,7 +308,7 @@ CTest_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/FTLayout
|
||||
|
||||
CTest_CFLAGS = $(FT2_CFLAGS) $(GL_CFLAGS)
|
||||
-CTest_LDFLAGS = $(FT2_LIBS) $(GLUT_LIBS)
|
||||
+CTest_LDFLAGS = $(FT2_LIBS) $(GLUT_LIBS) $(GL_LIBS)
|
||||
CTest_LDADD = ../src/libftgl.la
|
||||
NULL =
|
||||
all: all-am
|
||||
12
ftgl-2.1.3-rc5-ttf_font.patch
Normal file
12
ftgl-2.1.3-rc5-ttf_font.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -up ftgl-2.1.3~rc5/demo/FTGLDemo.cpp.ttf_font ftgl-2.1.3~rc5/demo/FTGLDemo.cpp
|
||||
--- ftgl-2.1.3~rc5/demo/FTGLDemo.cpp.ttf_font 2008-06-08 17:49:10.000000000 +0200
|
||||
+++ ftgl-2.1.3~rc5/demo/FTGLDemo.cpp 2009-05-21 02:18:42.000000000 +0200
|
||||
@@ -48,7 +48,7 @@
|
||||
# define FONT_FILE "C:\\WINNT\\Fonts\\arial.ttf"
|
||||
# else
|
||||
// Put your font file here if configure did not find it.
|
||||
-# define FONT_FILE 0
|
||||
+# define FONT_FILE "/usr/share/fonts/dejavu/DejaVuSans.ttf"
|
||||
# endif
|
||||
#endif
|
||||
|
||||
BIN
ftgl-2.1.3-rc5.tar.bz2
Normal file
BIN
ftgl-2.1.3-rc5.tar.bz2
Normal file
Binary file not shown.
104
ftgl.spec
Normal file
104
ftgl.spec
Normal file
@ -0,0 +1,104 @@
|
||||
Name: ftgl
|
||||
Version: 2.1.3
|
||||
Release: 0.21.rc1%{?dist}
|
||||
Summary: OpenGL frontend to Freetype 2
|
||||
|
||||
License: LGPLv2
|
||||
URL: http://ftgl.wiki.sourceforge.net/
|
||||
Source0: http://downloads.sourceforge.net/ftgl/ftgl-%{version}-rc5.tar.bz2
|
||||
Patch0: ftgl-2.1.3-rc5-ttf_font.patch
|
||||
Patch1: ftgl-2.1.3-rc5-ldflags.patch
|
||||
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: doxygen
|
||||
|
||||
BuildRequires: freeglut-devel
|
||||
BuildRequires: freetype-devel
|
||||
BuildRequires: libXi-devel
|
||||
BuildRequires: libXmu-devel
|
||||
BuildRequires: cppunit-devel
|
||||
|
||||
Obsoletes: ftgl-utils < %{version}
|
||||
|
||||
|
||||
%description
|
||||
FTGL is a free open source library to enable developers to use arbitrary
|
||||
fonts in their OpenGL (www.opengl.org) applications.
|
||||
Unlike other OpenGL font libraries FTGL uses standard font file formats
|
||||
so doesn't need a preprocessing step to convert the high quality font data
|
||||
into a lesser quality, proprietary format.
|
||||
FTGL uses the Freetype (www.freetype.org) font library to open and 'decode'
|
||||
the fonts. It then takes that output and stores it in a format most
|
||||
efficient for OpenGL rendering.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: pkgconfig
|
||||
Requires: freetype-devel
|
||||
|
||||
%description devel
|
||||
The %{name}-devel package contains libraries and header files for
|
||||
developing applications that use %{name}.
|
||||
|
||||
%package docs
|
||||
Summary: Documentation for %{name}
|
||||
|
||||
%description docs
|
||||
This package contains documentation files for %{name}.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n ftgl-%{version}~rc5
|
||||
%patch0 -p1 -b .destdir
|
||||
%patch1 -p1 -b .ldflags
|
||||
|
||||
|
||||
|
||||
%build
|
||||
%configure \
|
||||
--enable-shared \
|
||||
--disable-static \
|
||||
--with-gl-inc=%{_includedir} \
|
||||
--with-gl-lib=%{_libdir} \
|
||||
--with-glut-inc=%{_includedir} \
|
||||
--with-glut-lib=%{_libdir} \
|
||||
--with-x
|
||||
|
||||
# Remove the ~rc5 from the pc file, as this causes rpm to add a
|
||||
# Requires: rpmlib(TildeInVersions) <= 4.10.0-1
|
||||
# Which breaks installing ftgl-devel into a koji buildroot (rhbz#843460)
|
||||
sed -i 's/2\.1\.3~rc5/2.1.3/' ftgl.pc
|
||||
|
||||
make all %{?_smp_mflags}
|
||||
|
||||
|
||||
%install
|
||||
make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT
|
||||
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
|
||||
|
||||
# Doc fixes
|
||||
mkdir -p __doc/html
|
||||
install -pm 0644 $RPM_BUILD_ROOT%{_datadir}/doc/ftgl/html/* __doc/html
|
||||
rm -rf $RPM_BUILD_ROOT%{_datadir}/doc
|
||||
|
||||
|
||||
%ldconfig_scriptlets
|
||||
|
||||
|
||||
%files
|
||||
%doc AUTHORS BUGS ChangeLog COPYING NEWS README TODO
|
||||
%{_libdir}/*.so.*
|
||||
|
||||
%files devel
|
||||
%{_includedir}/FTGL/
|
||||
%{_libdir}/*.so
|
||||
%{_libdir}/pkgconfig/*
|
||||
|
||||
%files docs
|
||||
%doc __doc/*
|
||||
|
||||
|
||||
%ChangeLog
|
||||
* Sat May 16 2020 Hubble Zhu <zhuhengbo1@huawei.com> - 2.1.3-0.21.rc1
|
||||
- Init package
|
||||
Loading…
x
Reference in New Issue
Block a user