- Trim a bit description and fix group for demo

OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/ftgl?expand=0&rev=18
This commit is contained in:
Tomáš Chvátal 2017-07-12 06:43:08 +00:00 committed by Git OBS Bridge
parent f58fab3026
commit faebd91d62
2 changed files with 29 additions and 110 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Jul 12 06:42:35 UTC 2017 - tchvatal@suse.com
- Trim a bit description and fix group for demo
-------------------------------------------------------------------
Wed Jun 28 13:15:29 UTC 2017 - kkaempf@suse.com

134
ftgl.spec
View File

@ -16,6 +16,7 @@
#
%define libname libftgl2
Name: ftgl
Version: 2.1.3~rc5
Release: 0
@ -37,78 +38,32 @@ BuildRequires: freeglut-devel
BuildRequires: gcc-c++
BuildRequires: ghostscript
BuildRequires: libtool
BuildRequires: pkg-config
BuildRequires: pkgconfig
BuildRequires: texlive-epstopdf
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(glu)
BuildRequires: pkgconfig(ice)
BuildRequires: pkgconfig(libdrm)
BuildRequires: pkgconfig(x11)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
FTGL is a free open source library that enables developers to use
arbitrary fonts in their OpenGL (www.opengl.org) applications.
Unlike other OpenGL font libraries, FTGL uses standard font file
formats, so there is no need of 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
that is most efficient for OpenGL rendering.
The supported rendering modes are:
- Bit maps
- Antialiased Pix maps
- Outlines
- Polygon meshes
- Extruded polygon meshes
- Texture maps
- Buffer maps
FTGL is a free cross-platform Open Source C++ library that uses Freetype2 to
simplify rendering fonts in OpenGL applications. FTGL supports bitmaps,
pixmaps, texture maps, outlines, polygon mesh, and extruded polygon rendering
modes.
%package -n libftgl2
Summary: Library for Using Arbitrary Fonts in OpenGL Applications
Group: System/Libraries
Provides: ftgl:%{_libdir}/libftgl.so.0
%description -n libftgl2
FTGL is a free open source library that enables developers to use
arbitrary fonts in their OpenGL (www.opengl.org) applications.
Unlike other OpenGL font libraries, FTGL uses standard font file
formats, so there is no need of 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
that is most efficient for OpenGL rendering.
The supported rendering modes are:
- Bit maps
- Antialiased Pix maps
- Outlines
- Polygon meshes
- Extruded polygon meshes
- Texture maps
- Buffer maps
FTGL is a free cross-platform Open Source C++ library that uses Freetype2 to
simplify rendering fonts in OpenGL applications. FTGL supports bitmaps,
pixmaps, texture maps, outlines, polygon mesh, and extruded polygon rendering
modes.
%package devel
Summary: Library for Using Arbitrary Fonts in OpenGL Applications
Summary: Development files for FTGL OpenGL font managing library
Group: Development/Libraries/C and C++
Requires: Mesa-devel
Requires: freetype2-devel
@ -116,61 +71,25 @@ Requires: libftgl2 = %{version}
Requires: pkgconfig(glu)
%description devel
FTGL is a free open source library that enables developers to use
arbitrary fonts in their OpenGL (www.opengl.org) applications.
Unlike other OpenGL font libraries, FTGL uses standard font file
formats, so there is no need of 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 that is most efficient for OpenGL rendering. The
supported rendering modes are: - Bit maps
FTGL is a free cross-platform Open Source C++ library that uses Freetype2 to
simplify rendering fonts in OpenGL applications. FTGL supports bitmaps,
pixmaps, texture maps, outlines, polygon mesh, and extruded polygon rendering
modes.
- Antialiased Pix maps
- Texture maps
- Outlines
- Polygon meshes
- Extruded polygon meshes FTGL is designed to be used in commercial
quality software. It has been written with a focus on performance,
robustness, and simplicity.
This package provides development files.
%package demo
Summary: Library for Using Arbitrary Fonts in OpenGL Applications
# Up to openSUSE 11.0 and SLED 10, %%{_bindir}/FTGLDemo was part of ftgl-devel:
Group: System/Libraries
Summary: Demos for FTGL OpenGL font managing library
Group: Development/Tools/Other
Conflicts: %{name}-devel <= 2.1.2
%description demo
FTGL is a free open source library that enables developers to use
arbitrary fonts in their OpenGL (www.opengl.org) applications.
FTGL is a free cross-platform Open Source C++ library that uses Freetype2 to
simplify rendering fonts in OpenGL applications. FTGL supports bitmaps,
pixmaps, texture maps, outlines, polygon mesh, and extruded polygon rendering
modes.
Unlike other OpenGL font libraries, FTGL uses standard font file
formats, so there is no need of 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
that is most efficient for OpenGL rendering.
The supported rendering modes are:
- Bit maps
- Antialiased Pix maps
- Outlines
- Polygon meshes
- Extruded polygon meshes
- Texture maps
- Buffer maps
This package provides demo application showing usage of the library.
%prep
%setup -q
@ -180,7 +99,7 @@ The supported rendering modes are:
%patch3 -p1
%build
./autogen.sh
autoreconf -fvi
%configure \
--with-pic \
--disable-static
@ -200,20 +119,16 @@ mkdir -p %{buildroot}%{_defaultdocdir}/%{name}-demo
cp -pr *.cpp *.c *.h %{buildroot}%{_defaultdocdir}/%{name}-demo
cd ..
find %{buildroot} -type f -name "*.la" -delete -print
grep -r include %{buildroot}%{_includedir} | awk -F: '{print $2}'
%post -n libftgl2 -p /sbin/ldconfig
%postun -n libftgl2 -p /sbin/ldconfig
%files -n libftgl2
%defattr (-, root, root)
%doc %dir %{_defaultdocdir}/libftgl2
%doc %{_defaultdocdir}/libftgl2/[ABCNRT]*
%{_libdir}/*.so.*
%files devel
%defattr (-, root, root)
%doc %dir %{_defaultdocdir}/%{name}
%doc %{_defaultdocdir}/%{name}/html
%doc %{_defaultdocdir}/%{name}/*.txt
@ -222,7 +137,6 @@ grep -r include %{buildroot}%{_includedir} | awk -F: '{print $2}'
%{_libdir}/pkgconfig/*.pc
%files demo
%defattr (-, root, root)
%doc %dir %{_defaultdocdir}/%{name}
%doc %{_defaultdocdir}/%{name}-demo
%{_bindir}/FTGLDemo