forked from pool/SDL2_ttf
90 lines
2.6 KiB
RPMSpec
90 lines
2.6 KiB
RPMSpec
|
#
|
||
|
# spec file for package SDL_ttf
|
||
|
#
|
||
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||
|
#
|
||
|
# 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.
|
||
|
|
||
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||
|
#
|
||
|
|
||
|
|
||
|
Name: SDL_ttf
|
||
|
BuildRequires: freetype2-devel
|
||
|
BuildRequires: libSDL-devel
|
||
|
Url: http://www.libsdl.org/projects/SDL_ttf/
|
||
|
Version: 2.0.11
|
||
|
Release: 0
|
||
|
Summary: Simple DirectMedia Layer - Truetype Library
|
||
|
License: Zlib
|
||
|
Group: System/Libraries
|
||
|
# removed VisualC dir, Watcom-Win32.zip, Xcode and Xcode-iOS dirs from upstream tarball [bnc#508180]
|
||
|
Source: %{name}-%{version}-repack.tar.bz2
|
||
|
Source2: baselibs.conf
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
|
|
||
|
%description
|
||
|
This is a sample library that allows you to use TrueType fonts in your
|
||
|
SDL applications.
|
||
|
|
||
|
%package -n libSDL_ttf-2_0-0
|
||
|
Summary: Simple DirectMedia Layer - Truetype Library
|
||
|
Group: System/Libraries
|
||
|
Provides: SDL_ttf = %{version}
|
||
|
Obsoletes: SDL_ttf <= %{version}
|
||
|
|
||
|
%description -n libSDL_ttf-2_0-0
|
||
|
This is a sample library that allows you to use TrueType fonts in your
|
||
|
SDL applications.
|
||
|
|
||
|
%package -n libSDL_ttf-devel
|
||
|
Requires: %{name} = %{version}
|
||
|
Requires: SDL-devel
|
||
|
Summary: Simple DirectMedia Layer - Truetype Library
|
||
|
Group: Development/Libraries/C and C++
|
||
|
Requires: libSDL-devel
|
||
|
Requires: libSDL_ttf-2_0-0 = %{version}
|
||
|
Provides: SDL_ttf-devel = %{version}
|
||
|
Obsoletes: SDL_ttf-devel <= %{version}
|
||
|
|
||
|
%description -n libSDL_ttf-devel
|
||
|
This is a sample library that allows you to use TrueType fonts in your
|
||
|
SDL applications.
|
||
|
|
||
|
%prep
|
||
|
%setup -q
|
||
|
|
||
|
%build
|
||
|
%configure \
|
||
|
--with-pic \
|
||
|
--disable-static
|
||
|
make %{?_smp_mflags}
|
||
|
|
||
|
%install
|
||
|
make DESTDIR=$RPM_BUILD_ROOT install
|
||
|
rm -f %{buildroot}%{_libdir}/*.la
|
||
|
|
||
|
%post -n libSDL_ttf-2_0-0 -p /sbin/ldconfig
|
||
|
|
||
|
%postun -n libSDL_ttf-2_0-0 -p /sbin/ldconfig
|
||
|
|
||
|
%files -n libSDL_ttf-2_0-0
|
||
|
%defattr(-,root,root)
|
||
|
%doc CHANGES COPYING README
|
||
|
%{_libdir}/lib*.so.*
|
||
|
|
||
|
%files -n libSDL_ttf-devel
|
||
|
%defattr(-,root,root)
|
||
|
%{_includedir}/SDL/SDL_ttf.h
|
||
|
%{_libdir}/lib*.so
|
||
|
%{_libdir}/pkgconfig/SDL_ttf.pc
|
||
|
|
||
|
%changelog
|