/[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 464681 - (hide annotations) (download)
Thu Aug 8 16:25:14 2013 UTC (10 years, 7 months ago) by wally
Original Path: cauldron/sdl2/current/SPECS/sdl2.spec
File size: 2399 byte(s)
- rename devel pkg
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     Release: %mkrel 1
10     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 464664 BuildRequires: libx11-devel
15 blue_prawn 464665 BuildRequires: libxext-devel
16 blue_prawn 464667 BuildRequires: doxygen
17 blue_prawn 464662
18     %description
19     This is the Simple DirectMedia Layer 2, a generic API that provides low
20     level access to audio, keyboard, mouse, and display framebuffer across
21     multiple platforms.
22    
23     SDL fully supports high end 3D graphics using Direct3D and OpenGL,
24     and has a 2D graphics API for emulators and classic games.
25    
26     %package -n %{libname}
27     Summary: Main library for %{name}
28     Group: System/Libraries
29    
30     %description -n %{libname}
31     This package contains the library needed to run programs dynamically
32     linked with %{name}.
33    
34     %package -n %{develname}
35     Summary: Headers for developing programs that use %{name}
36     Group: Development/C
37     Requires: %{libname} = %{version}
38 wally 464679 Provides: %{name}-devel = %{version}-%{release}
39 wally 464681 # Just obsolete this one release to get rid of it as I don't know how BS acts
40     # when we also have %{_lib}SDL-devel.
41     # This can be removed later.
42     Obsoletes: %{_lib}sdl-devel = 2.0.0-1
43 blue_prawn 464662
44     %description -n %{develname}
45     This package contains the headers that programmers will need to develop
46     applications which will use %{name}.
47    
48     %package docs
49     Summary: Documentation for Simple DirectMedia Layer 2 (SDL2)
50     Group: Documentation
51     BuildArch: noarch
52    
53     %description docs
54     This package contains the generated API documentation for the SDL2 library.
55    
56     %prep
57     %setup -q -n SDL2-%{version}
58    
59     %build
60 wally 464680 %configure2_5x \
61     --disable-static
62 blue_prawn 464662 %make
63    
64     # generate docs
65     pushd include
66     doxygen -g
67     doxygen -w html headerFile footerFile styleSheetFile doxyfile
68     doxygen
69     popd
70    
71     %install
72 wally 464680 %makeinstall_std
73 blue_prawn 464662
74 wally 464677 #we don't want these
75     find %{buildroot} -name "*.la" -delete
76    
77 blue_prawn 464662 %files -n %{libname}
78     %doc README-SDL.txt README.txt
79     %doc CREDITS.txt COPYING.txt
80     %doc BUGS.txt TODO.txt WhatsNew.txt
81 wally 464678 %{_libdir}/libSDL2-%{apiver}.so.%{major}
82     %{_libdir}/libSDL2-%{apiver}.so.%{major}.*
83 blue_prawn 464662
84     %files -n %{develname}
85     %{_bindir}/*-config
86     %{_libdir}/lib*.so
87     %{_libdir}/pkgconfig/*
88     %{_datadir}/aclocal/*
89     %{_includedir}/SDL2/*.h
90    
91     %files docs
92     %doc include/html

  ViewVC Help
Powered by ViewVC 1.1.30