]> git.pld-linux.org Git - packages/SDL_ttf.git/blame - SDL_ttf.spec
- typo.
[packages/SDL_ttf.git] / SDL_ttf.spec
CommitLineData
7cd6f34d 1Summary: Simple DirectMedia Layer - ttf handling
2Name: SDL_ttf
31d41575 3Version: 1.2.1
b003c0e2 4Release: 2
7cd6f34d 5License: LGPL
6Group: Libraries
7Source0: http://www.devolution.com/~slouken/SDL/projects/SDL_ttf/src/%{name}-%{version}.tar.gz
8URL: http://www.devolution.com/~slouken/SDL/projects/SDL_ttf/
9BuildRequires: freetype-devel
10BuildRequires: SDL-devel >= 1.0.1
11BuildRequires: XFree86-devel
12BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
14%define _prefix /usr/X11R6
0eb88c47 15
16%description
3ef760d3 17This is a sample library which allows you to use TrueType fonts in
18your SDL applications. It comes with an example program "showfont"
19which displays an example string for a given TrueType font file.
0eb88c47 20
0eb88c47 21%package devel
7cd6f34d 22Summary: Header files and more to develop SDL_ttf applications
23Group: Development/Libraries
24Group(fr): Development/Librairies
25Group(pl): Programowanie/Biblioteki
26Requires: %{name} = %{version}
27Requires: SDL-devel
0eb88c47 28
29%description devel
7cd6f34d 30Header files and more to develop SDL_ttf applications.
0eb88c47 31
7cd6f34d 32%package static
33Summary: Statis SDL_ttf libraries
34Group: Development/Libraries
35Group(fr): Development/Librairies
36Group(pl): Programowanie/Biblioteki
37Requires: %{name}-devel = %{version}
0eb88c47 38
7cd6f34d 39%description static
40Statis SDL_ttf libraries.
0eb88c47 41
7cd6f34d 42%prep
43%setup -q
0eb88c47 44
45%build
7cd6f34d 46LDFLAGS="-s"; export LDFLAGS
47%configure
58f93c09 48%{__make}
0eb88c47 49
50%install
51rm -rf $RPM_BUILD_ROOT
7cd6f34d 52
8d5630db 53%{__make} install DESTDIR=$RPM_BUILD_ROOT
7cd6f34d 54
55strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.*
56
4f7114a8 57mv -f $RPM_BUILD_ROOT%{_bindir}/showfont $RPM_BUILD_ROOT%{_bindir}/sdlfont
b003c0e2 58
7cd6f34d 59gzip -9nf README CHANGES
0eb88c47 60
61%clean
62rm -rf $RPM_BUILD_ROOT
63
7cd6f34d 64%post -p /sbin/ldconfig
65%postun -p /sbin/ldconfig
0eb88c47 66
67%files
7cd6f34d 68%defattr(644,root,root,755)
b003c0e2 69%attr(755,root,root) %{_bindir}/*
7cd6f34d 70%attr(755,root,root) %{_libdir}/lib*.so.*.*
0eb88c47 71
72%files devel
7cd6f34d 73%defattr(644,root,root,755)
74%doc *.gz
75%{_includedir}/SDL/*
76%attr(755,root,root) %{_libdir}/lib*.so
77%attr(755,root,root) %{_libdir}/lib*.la
78
79%files static
3ef760d3 80%defattr(644,root,root,755)
81%{_libdir}/lib*.a
This page took 0.08387 seconds and 4 git commands to generate.