/[packages]/updates/8/sdl2/current/SPECS/sdl2.spec
ViewVC logotype

Annotation of /updates/8/sdl2/current/SPECS/sdl2.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 464718 - (hide annotations) (download)
Thu Aug 8 18:42:51 2013 UTC (10 years, 8 months ago) by wally
Original Path: cauldron/sdl2/current/SPECS/sdl2.spec
File size: 2881 byte(s)
- disable rpath
1 blue_prawn 464662 %define apiver 2.0
2     %define major 0
3     %define libname %mklibname sdl %{apiver} %{major}
4 wally 464681 %define develname %mklibname sdl %{apiver} -d
5 blue_prawn 464662
6     Name: sdl2
7     Summary: Simple DirectMedia Layer 2
8     Version: 2.0.0
9 wally 464704 Release: %mkrel 3
10 blue_prawn 464662 License: Zlib
11     Group: System/Libraries
12     URL: http://wiki.libsdl.org/moin.fcg/FrontPage
13     Source0: http://www.libsdl.org/tmp/release/SDL2-%{version}.tar.gz
14 blue_prawn 464667 BuildRequires: doxygen
15 wally 464693 BuildRequires: libnas-devel
16     BuildRequires: pkgconfig(alsa)
17 wally 464703 BuildRequires: pkgconfig(egl)
18     BuildRequires: pkgconfig(gl)
19 wally 464693 BuildRequires: pkgconfig(libpulse-simple)
20     BuildRequires: pkgconfig(libudev)
21     BuildRequires: pkgconfig(x11)
22     BuildRequires: pkgconfig(xcursor)
23     BuildRequires: pkgconfig(xext)
24     BuildRequires: pkgconfig(xi)
25     BuildRequires: pkgconfig(xinerama)
26     BuildRequires: pkgconfig(xrandr)
27     BuildRequires: pkgconfig(xscrnsaver)
28     BuildRequires: pkgconfig(xxf86vm)
29 blue_prawn 464662
30     %description
31     This is the Simple DirectMedia Layer 2, a generic API that provides low
32     level access to audio, keyboard, mouse, and display framebuffer across
33     multiple platforms.
34    
35     SDL fully supports high end 3D graphics using Direct3D and OpenGL,
36     and has a 2D graphics API for emulators and classic games.
37    
38     %package -n %{libname}
39     Summary: Main library for %{name}
40     Group: System/Libraries
41    
42     %description -n %{libname}
43     This package contains the library needed to run programs dynamically
44     linked with %{name}.
45    
46     %package -n %{develname}
47     Summary: Headers for developing programs that use %{name}
48     Group: Development/C
49 wally 464682 Requires: %{libname} = %{version}-%{release}
50 wally 464679 Provides: %{name}-devel = %{version}-%{release}
51 wally 464704 Obsoletes: %{_lib}sdl-devel < 2.0.0-2
52 blue_prawn 464662
53     %description -n %{develname}
54     This package contains the headers that programmers will need to develop
55     applications which will use %{name}.
56    
57     %package docs
58     Summary: Documentation for Simple DirectMedia Layer 2 (SDL2)
59     Group: Documentation
60     BuildArch: noarch
61    
62     %description docs
63     This package contains the generated API documentation for the SDL2 library.
64    
65     %prep
66     %setup -q -n SDL2-%{version}
67    
68     %build
69 wally 464717 %configure2_5x \
70 wally 464718 --disable-rpath \
71 wally 464717 --disable-static
72    
73     #from openmandriva
74     sed -i s,"objdir=.libs","objdir=",g libtool
75    
76 blue_prawn 464662 %make
77    
78     # generate docs
79     pushd include
80     doxygen -g
81     doxygen -w html headerFile footerFile styleSheetFile doxyfile
82     doxygen
83     popd
84    
85     %install
86 wally 464717 #from openmandriva
87     rm -rf build/libSDL2.la
88     cp build/libSDL2.lai build/libSDL2.la
89    
90 wally 464680 %makeinstall_std
91 blue_prawn 464662
92 wally 464677 #we don't want these
93 wally 464717 find %{buildroot} -name "*.la" -delete
94     find %{buildroot} -name "*.a" -delete
95 wally 464677
96 blue_prawn 464662 %files -n %{libname}
97     %doc README-SDL.txt README.txt
98     %doc CREDITS.txt COPYING.txt
99     %doc BUGS.txt TODO.txt WhatsNew.txt
100 wally 464678 %{_libdir}/libSDL2-%{apiver}.so.%{major}
101     %{_libdir}/libSDL2-%{apiver}.so.%{major}.*
102 blue_prawn 464662
103     %files -n %{develname}
104     %{_bindir}/*-config
105     %{_libdir}/lib*.so
106     %{_libdir}/pkgconfig/*
107     %{_datadir}/aclocal/*
108     %{_includedir}/SDL2/*.h
109    
110     %files docs
111     %doc include/html

  ViewVC Help
Powered by ViewVC 1.1.30