/[packages]/updates/5/clanlib/current/SPECS/clanlib.spec
ViewVC logotype

Contents of /updates/5/clanlib/current/SPECS/clanlib.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 904882 - (show annotations) (download)
Sun Nov 22 11:43:06 2015 UTC (8 years, 4 months ago) by zezinho
File size: 2790 byte(s)
enable SSE2 on i586 as it is required #17201
1 %define subrel 1
2 %define api 2.3
3 %define major 1
4 %define libname %mklibname clanlib %api %{major}
5 %define develname %mklibname -d clanlib %api
6
7 Name: clanlib
8 Summary: The ClanLib Game SDK series 2.3
9 Version: 2.3.7
10 Release: %mkrel 2
11 License: BSD-like
12 Group: System/Libraries
13 Source0: http://www.clanlib.org/download/releases-2.0/ClanLib-%version.tgz
14 Patch0: ClanLib-2.3.6-link.patch
15 Patch1: ClanLib-2.3.4-gcc47.patch
16 # from fedora
17 Patch3: ClanLib-2.3.4-non-x86.patch
18 URL: http://www.clanlib.org/
19 BuildRequires: libmikmod-devel
20 BuildRequires: libpng-devel
21 BuildRequires: mesa-common-devel
22 BuildRequires: autoconf2.5
23 BuildRequires: libtiff-devel
24 BuildRequires: bzip2-devel
25 BuildRequires: oggvorbis-devel
26 BuildRequires: libjpeg-devel
27 BuildRequires: libSDL_gfx-devel
28 BuildRequires: libxrender-devel
29 BuildRequires: libxslt-proc
30 BuildRequires: freetype2-devel
31 BuildRequires: sqlite3-devel
32 BuildRequires: fontconfig-devel
33 BuildRequires: libpcre-devel
34 BuildRequires: doxygen
35
36 %description
37 The ClanLib Game SDK is a crossplatform game library designed to ease the work
38 for game developers. The goal is to provide a common interface to classical
39 game problems (loading graphics eg.), so games can share as much code as
40 possible. Ideally anyone with small resources should be able to write
41 commercial quality games.
42
43 %package -n %{libname}
44 Summary: Main library for %{name}
45 Group: System/Libraries
46 Provides: %{name} = %{version}-%{release}
47
48 %description -n %{libname}
49 This package contains the library needed to run programs dynamically
50 linked with %{name}.
51
52 %package -n %{develname}
53 Summary: Headers for developing programs that will use %{name}
54 Group: Development/C++
55 Requires: %{libname} = %{version}-%{release}
56 Provides: ClanLib-devel = %{version}-%{release}
57 Provides: clanlib-devel = %{version}-%{release}
58 Provides: %{name}-devel = %{version}-%{release}
59
60 %description -n %{develname}
61 This package contains the headers that programmers will need to develop
62 applications which will use %{name}.
63
64 %package docs
65 Summary: ClanLib documentation
66 Group: Documentation
67 BuildArch: noarch
68
69 %description docs
70 The ClanLib Game SDK is a crossplatform game library designed to ease the
71 work for game developers. This package contains the documentation.
72
73 %prep
74 %setup -q -n ClanLib-%{version}
75 %patch0 -p0 -b .link
76 %patch1 -p1 -b .gcc
77 %patch3 -p1 -b .non-x86
78
79 %build
80 export CXXFLAGS="%{optflags} -fno-stack-protector"
81 autoreconf -fi
82 %configure2_5x \
83 --disable-static \
84 --enable-docs
85 %make
86
87 %install
88 %makeinstall_std
89 rm -rf %{buildroot}%{_libdir}/*.la
90
91 %files -n %{libname}
92 %doc README COPYING CREDITS
93 %{_libdir}/libclan*-%{api}.so.%{major}
94 %{_libdir}/libclan*-%{api}.so.%{major}.*
95
96 %files -n %{develname}
97 %{_libdir}/*.so
98 %{_includedir}/*
99 %{_libdir}/pkgconfig/*.pc
100
101 %files docs
102 %{_docdir}/clanlib-%{api}

  ViewVC Help
Powered by ViewVC 1.1.30