2007-01-16 00:13:10 +01:00
|
|
|
#
|
2011-08-29 18:42:54 +02:00
|
|
|
# spec file for package ftgl
|
2007-01-16 00:13:10 +01:00
|
|
|
#
|
2019-12-09 13:30:11 +01:00
|
|
|
# Copyright (c) 2019 SUSE LLC
|
2007-01-16 00:13:10 +01:00
|
|
|
#
|
2008-10-14 17:52:00 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-12-09 13:30:11 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-16 00:13:10 +01:00
|
|
|
#
|
|
|
|
|
2008-07-15 21:10:22 +02:00
|
|
|
|
2017-07-12 08:43:08 +02:00
|
|
|
%define libname libftgl2
|
2019-03-11 09:33:30 +01:00
|
|
|
%bcond_without ftgl_html
|
2007-01-16 00:13:10 +01:00
|
|
|
Name: ftgl
|
2019-12-09 13:30:11 +01:00
|
|
|
Version: 2.4.0
|
2012-09-18 15:34:02 +02:00
|
|
|
Release: 0
|
2007-01-16 00:13:10 +01:00
|
|
|
Summary: Library for Using Arbitrary Fonts in OpenGL Applications
|
2018-03-26 16:45:20 +02:00
|
|
|
License: LGPL-2.1-or-later
|
2017-07-12 20:19:31 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2019-12-09 13:30:11 +01:00
|
|
|
# was http://ftgl.wiki.sourceforge.net
|
|
|
|
URL: https://github.com/frankheckenbach/ftgl
|
|
|
|
Source0: https://github.com/frankheckenbach/ftgl/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2015-04-14 11:38:59 +02:00
|
|
|
Source1: baselibs.conf
|
2011-04-26 15:17:12 +02:00
|
|
|
Patch1: ftgl-pkgconfig.patch
|
2011-08-29 18:42:54 +02:00
|
|
|
Patch2: ftgl-fix-no-add-needed.patch
|
2017-07-12 08:26:39 +02:00
|
|
|
# PATCH-FIX-OPENSUSE: install FTVectoriser.h, required by tulip-5.0; kkaempf@suse.de
|
|
|
|
Patch3: install-FTVectoriser.h.patch
|
2019-03-11 09:33:30 +01:00
|
|
|
%if %{with ftgl_html}
|
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: texlive-epstopdf
|
|
|
|
%endif
|
2015-04-13 15:14:59 +02:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: freeglut-devel
|
2019-12-09 13:30:11 +01:00
|
|
|
%if 0%{?suse_version} >= 1500
|
2015-04-13 15:14:59 +02:00
|
|
|
BuildRequires: gcc-c++
|
2019-12-09 13:30:11 +01:00
|
|
|
%else
|
|
|
|
BuildRequires: gcc7-c++
|
|
|
|
%endif
|
2017-07-12 08:26:39 +02:00
|
|
|
BuildRequires: ghostscript
|
2015-04-13 15:14:59 +02:00
|
|
|
BuildRequires: libtool
|
2017-07-12 08:43:08 +02:00
|
|
|
BuildRequires: pkgconfig
|
2015-04-13 15:14:59 +02:00
|
|
|
BuildRequires: pkgconfig(freetype2)
|
2018-03-26 16:45:20 +02:00
|
|
|
BuildRequires: pkgconfig(gl)
|
2015-04-13 15:14:59 +02:00
|
|
|
BuildRequires: pkgconfig(glu)
|
|
|
|
BuildRequires: pkgconfig(ice)
|
|
|
|
BuildRequires: pkgconfig(libdrm)
|
|
|
|
BuildRequires: pkgconfig(x11)
|
2007-01-16 00:13:10 +01:00
|
|
|
|
|
|
|
%description
|
2017-07-12 20:19:31 +02:00
|
|
|
FTGL is a C++ library using Freetype2 to render fonts in OpenGL
|
|
|
|
applications. FTGL supports bitmaps, pixmaps, texture maps, outlines,
|
|
|
|
polygon mesh, and extruded polygon rendering modes.
|
2008-07-15 21:10:22 +02:00
|
|
|
|
|
|
|
%package -n libftgl2
|
|
|
|
Summary: Library for Using Arbitrary Fonts in OpenGL Applications
|
2012-09-18 15:34:02 +02:00
|
|
|
Group: System/Libraries
|
2008-07-15 21:10:22 +02:00
|
|
|
|
|
|
|
%description -n libftgl2
|
2017-07-12 20:19:31 +02:00
|
|
|
FTGL is a C++ library using Freetype2 to render fonts in OpenGL
|
|
|
|
applications. FTGL supports bitmaps, pixmaps, texture maps, outlines,
|
|
|
|
polygon mesh, and extruded polygon rendering modes.
|
2007-01-16 00:13:10 +01:00
|
|
|
|
|
|
|
%package devel
|
2017-07-12 20:19:31 +02:00
|
|
|
Summary: Development files for the FTGL OpenGL font managing library
|
2012-09-18 15:34:02 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: libftgl2 = %{version}
|
2007-01-16 00:13:10 +01:00
|
|
|
|
|
|
|
%description devel
|
2017-07-12 20:19:31 +02:00
|
|
|
FTGL is a C++ library using Freetype2 to render fonts in OpenGL
|
|
|
|
applications. FTGL supports bitmaps, pixmaps, texture maps, outlines,
|
|
|
|
polygon mesh, and extruded polygon rendering modes.
|
2007-01-16 00:13:10 +01:00
|
|
|
|
2017-07-12 08:43:08 +02:00
|
|
|
This package provides development files.
|
2007-01-16 00:13:10 +01:00
|
|
|
|
2008-07-15 21:10:22 +02:00
|
|
|
%package demo
|
2017-07-12 08:43:08 +02:00
|
|
|
Summary: Demos for FTGL OpenGL font managing library
|
|
|
|
Group: Development/Tools/Other
|
2008-07-21 17:51:54 +02:00
|
|
|
Conflicts: %{name}-devel <= 2.1.2
|
2008-07-15 21:10:22 +02:00
|
|
|
|
|
|
|
%description demo
|
2017-07-12 20:19:31 +02:00
|
|
|
FTGL is a C++ library using Freetype2 to render fonts in OpenGL
|
|
|
|
applications. FTGL supports bitmaps, pixmaps, texture maps, outlines,
|
|
|
|
polygon mesh, and extruded polygon rendering modes.
|
2008-07-15 21:10:22 +02:00
|
|
|
|
2017-07-12 08:43:08 +02:00
|
|
|
This package provides demo application showing usage of the library.
|
2008-07-15 21:10:22 +02:00
|
|
|
|
2007-01-16 00:13:10 +01:00
|
|
|
%prep
|
2015-04-13 15:14:59 +02:00
|
|
|
%setup -q
|
2011-04-26 15:17:12 +02:00
|
|
|
%patch1
|
2011-08-29 18:42:54 +02:00
|
|
|
%patch2
|
2017-07-12 08:26:39 +02:00
|
|
|
%patch3 -p1
|
2007-01-16 00:13:10 +01:00
|
|
|
|
|
|
|
%build
|
2019-12-09 13:30:11 +01:00
|
|
|
export CC=gcc
|
|
|
|
export CXX=g++
|
|
|
|
test -x "$(type -p gcc-7)" && export CC=gcc-7
|
|
|
|
test -x "$(type -p g++-7)" && export CXX=g++-7
|
2017-07-12 08:43:08 +02:00
|
|
|
autoreconf -fvi
|
2015-04-13 15:14:59 +02:00
|
|
|
%configure \
|
2008-07-15 21:10:22 +02:00
|
|
|
--disable-static
|
2015-04-13 15:14:59 +02:00
|
|
|
make %{?_smp_mflags} documentationdir=%{_docdir}/%{name}
|
2007-01-16 00:13:10 +01:00
|
|
|
|
|
|
|
%install
|
2015-04-13 15:14:59 +02:00
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags} documentationdir=%{_docdir}/%{name}
|
|
|
|
mkdir -p %{buildroot}%{_defaultdocdir}/libftgl2
|
|
|
|
cp -pr AUTHORS BUGS COPYING ChangeLog NEWS README TODO %{buildroot}%{_defaultdocdir}/libftgl2
|
|
|
|
mkdir -p %{buildroot}%{_bindir}
|
2008-07-15 21:10:22 +02:00
|
|
|
cd demo
|
2015-04-13 15:14:59 +02:00
|
|
|
/bin/sh ../libtool --mode=install %{_bindir}/install -c FTGLDemo %{buildroot}%{_bindir}/FTGLDemo
|
|
|
|
/bin/sh ../libtool --mode=install %{_bindir}/install -c FTGLMFontDemo %{buildroot}%{_bindir}/FTGLMFontDemo
|
|
|
|
/bin/sh ../libtool --mode=install %{_bindir}/install -c c-demo %{buildroot}%{_bindir}/FTGL-c-demo
|
|
|
|
/bin/sh ../libtool --mode=install %{_bindir}/install -c simple %{buildroot}%{_bindir}/FTGL-simple-demo
|
|
|
|
mkdir -p %{buildroot}%{_defaultdocdir}/%{name}-demo
|
|
|
|
cp -pr *.cpp *.c *.h %{buildroot}%{_defaultdocdir}/%{name}-demo
|
2007-01-16 00:13:10 +01:00
|
|
|
cd ..
|
2015-04-13 15:14:59 +02:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2007-01-16 00:13:10 +01:00
|
|
|
|
2008-07-15 21:10:22 +02:00
|
|
|
%post -n libftgl2 -p /sbin/ldconfig
|
|
|
|
%postun -n libftgl2 -p /sbin/ldconfig
|
2007-01-16 00:13:10 +01:00
|
|
|
|
2008-07-15 21:10:22 +02:00
|
|
|
%files -n libftgl2
|
|
|
|
%doc %dir %{_defaultdocdir}/libftgl2
|
|
|
|
%doc %{_defaultdocdir}/libftgl2/[ABCNRT]*
|
|
|
|
%{_libdir}/*.so.*
|
2007-01-16 00:13:10 +01:00
|
|
|
|
|
|
|
%files devel
|
2008-07-15 21:10:22 +02:00
|
|
|
%doc %dir %{_defaultdocdir}/%{name}
|
2019-03-11 09:33:30 +01:00
|
|
|
%if %{with ftgl_html}
|
2007-01-16 00:13:10 +01:00
|
|
|
%doc %{_defaultdocdir}/%{name}/html
|
2019-03-11 09:33:30 +01:00
|
|
|
%endif
|
2008-07-15 21:10:22 +02:00
|
|
|
%doc %{_defaultdocdir}/%{name}/*.txt
|
|
|
|
%{_includedir}/FTGL
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
|
|
|
%files demo
|
|
|
|
%doc %dir %{_defaultdocdir}/%{name}
|
|
|
|
%doc %{_defaultdocdir}/%{name}-demo
|
|
|
|
%{_bindir}/FTGLDemo
|
|
|
|
%{_bindir}/FTGLMFontDemo
|
|
|
|
%{_bindir}/FTGL-c-demo
|
|
|
|
%{_bindir}/FTGL-simple-demo
|
2007-01-16 00:13:10 +01:00
|
|
|
|
2007-09-13 18:42:09 +02:00
|
|
|
%changelog
|