]> git.pld-linux.org Git - packages/guile-sdl.git/blob - guile-sdl.spec
256aaf71d47281dbc8b8ca1021d1150e77a0fd60
[packages/guile-sdl.git] / guile-sdl.spec
1 Summary:        Guile-SDL - set of modules that provide Guile bindings for SDL
2 Summary(pl.UTF-8):      Guile-SDL - zestaw modułów zapewniających wiązania Guile do SDL
3 Name:           guile-sdl
4 Version:        0.5.2
5 Release:        1
6 License:        LGPL v3+
7 Group:          Libraries
8 Source0:        http://ftp.gnu.org/gnu/guile-sdl/%{name}-%{version}.tar.xz
9 # Source0-md5:  554c9524fbb1279111716576c65baf14
10 Patch0:         %{name}-info.patch
11 Patch1:         %{name}-system-sdlgfx.patch
12 Patch2:         %{name}-somode.patch
13 URL:            http://www.gnu.org/software/guile-sdl/
14 BuildRequires:  SDL-devel >= 1.2.0
15 BuildRequires:  SDL_gfx-devel >= 2.0.22
16 BuildRequires:  SDL_image-devel
17 BuildRequires:  SDL_mixer-devel
18 BuildRequires:  SDL_ttf-devel
19 BuildRequires:  autoconf >= 2.50
20 BuildRequires:  automake >= 1:1.12.2
21 BuildRequires:  guile-devel >= 5:1.4
22 BuildRequires:  libtool >= 2:2.4.2
23 BuildRequires:  texinfo
24 BuildRequires:  tar >= 1:1.22
25 BuildRequires:  xz
26 Requires(post,postun):  /sbin/ldconfig
27 Requires:       SDL >= 1.2.0
28 Requires:       SDL_gfx >= 2.0.22
29 Requires:       guile >= 5:1.4
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %description
33 This package contains Guile-SDL, a set of modules that provide
34 bindings for SDL (Simple DirectMedia Layer) to enable Guile
35 programmers to do all the nice things you can do with SDL.
36
37 Most of the SDL functions have been wrapped with the exception of a
38 few functions that were too C-centric. The SDL Threads and the Audio
39 functions haven't been included because of the problems with Guile
40 code being run from more than one thread. However audio programming
41 can be done with the module (sdl mixer) that requires the SDL_mixer
42 library. Bindings for SDL_gfx are also included.
43
44 %description -l pl.UTF-8
45 Ten pakiet zawiera Guile-SDL - zbiór modułów będących wiązaniami do
46 bibliotek SDL (Simple DirectMedia Layer), pozwalających programistom
47 Guile robić wszystkie przyjemne rzeczy, które można robić z użyciem
48 SDL-a.
49
50 Obudowanych jest większość funkcji SDL-a z wyjątkiem kilku, które były
51 zbyt C-centryczne. Funkcje dotyczące wątków (SDL Threads) i dźwięku
52 (SDL Audio) nie zostały dołączone ze względu na problemy z działaniem
53 kodu Guile w więcej niż jednym wątku. Pprogramowanie dźwięku jest
54 jednak możliwe przy użyciu modułu (sdl mixer), wymagającego biblioteki
55 SDL_mixer. Dołączone są także wiązania do biblioteki SDL_gfx.
56
57 %prep
58 %setup -q
59 %patch0 -p1
60 %patch1 -p1
61 %patch2 -p1
62
63 # ensure system SDL_gfx is used
64 %{__rm} -r src/SDL_gfx
65
66 %build
67 %{__libtoolize}
68 %{__aclocal} -I build-aux
69 %{__autoconf}
70 %{__autoheader}
71 %{__automake}
72 %configure
73 # build is racy (generating some files vs compilation)
74 %{__make} -j1
75
76 %install
77 rm -rf $RPM_BUILD_ROOT
78
79 %{__make} install \
80         DESTDIR=$RPM_BUILD_ROOT
81
82 %clean
83 rm -rf $RPM_BUILD_ROOT
84
85 %post   -p /sbin/postshell
86 /sbin/ldconfig
87 -/usr/sbin/fix-info-dir -c %{_infodir}
88
89 %postun -p /sbin/postshell
90 /sbin/ldconfig
91 -/usr/sbin/fix-info-dir -c %{_infodir}
92
93 %files
94 %defattr(644,root,root,755)
95 %doc AUTHORS ChangeLog HISTORY NEWS README THANKS
96 %dir %{_libdir}/guile-sdl
97 %attr(755,root,root) %{_libdir}/guile-sdl/gfx.so
98 %attr(755,root,root) %{_libdir}/guile-sdl/mixer.so
99 %attr(755,root,root) %{_libdir}/guile-sdl/sdl.so
100 %attr(755,root,root) %{_libdir}/guile-sdl/ttf.so
101 %dir %{_datadir}/guile/site/sdl
102 %{_datadir}/guile/site/sdl/gfx
103 %{_datadir}/guile/site/sdl/misc-utils.scm
104 %{_datadir}/guile/site/sdl/mixer
105 %{_datadir}/guile/site/sdl/sdl
106 %{_datadir}/guile/site/sdl/simple.scm
107 %{_datadir}/guile/site/sdl/ttf
108 %{_infodir}/guile-sdl.info*
109 # -devel (scripts to update for guile-sdl 0.5 API)
110 %dir %{_datadir}/guile-sdl
111 %{_datadir}/guile-sdl/0.5
This page took 0.052371 seconds and 2 git commands to generate.