Package clanlib: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 | # BEGIN SourceDeps(oneline): BuildRequires: /usr/bin/perl gcc-c++ imake libX11-devel libXt-devel libalsa-devel libogg-devel libpng-devel perl(English.pm) xorg-cf-files zlib-devel # END SourceDeps(oneline) # see https://bugzilla.altlinux.org/show_bug.cgi?id=10382 %define _localstatedir %{_var} %define api 2.3 %define major 1 %define libname libclanlib%{api}_%{major} %define develname libclanlib%{api}-devel Name: clanlib Summary: The ClanLib Game SDK series 2.3 Version: 2.3.7 Release: alt2_11 License: BSD-like Group: System/Libraries URL: http://www.clanlib.org/ Source0: http://www.clanlib.org/download/releases-2.0/ClanLib-%version.tgz Patch0: ClanLib-2.3.6-link.patch Patch1: ClanLib-2.3.4-gcc47.patch # from fedora Patch3: ClanLib-2.3.4-non-x86.patch Patch6: ClanLib-2.3.7-ftbfs.patch Patch13: ClanLib-2.3.7-no-wm_type-in-fs.patch Patch14: ClanLib-2.3.7-no-ldflags-for-conftest.patch Patch15: ClanLib-2.3.7-gcc7.patch Patch8: ClanLib-2.3.7-alt-i586.patch # suse Patch9: ClanLib-2.3.6-fix-opengl.patch BuildRequires: pkgconfig(libmikmod) BuildRequires: pkgconfig(libpng) BuildRequires: libfreeglut-devel libGL-devel libGLU-devel libGLES-devel BuildRequires: autoconf BuildRequires: pkgconfig(libtiff-4) BuildRequires: bzip2-devel BuildRequires: libvorbis-devel BuildRequires: pkgconfig(libjpeg) BuildRequires: pkgconfig(SDL_gfx) BuildRequires: pkgconfig(xrender) BuildRequires: xsltproc BuildRequires: libfreetype-devel BuildRequires: pkgconfig(sqlite3) BuildRequires: pkgconfig(fontconfig) BuildRequires: pkgconfig(libpcre) BuildRequires: doxygen Source44: import.info %description The ClanLib Game SDK is a crossplatform game library designed to ease the work for game developers. The goal is to provide a common interface to classical game problems (loading graphics eg.), so games can share as much code as possible. Ideally anyone with small resources should be able to write commercial quality games. %package -n %{libname} Summary: Main library for %{name} Group: System/Libraries Provides: %{name} = %{version}-%{release} %description -n %{libname} This package contains the library needed to run programs dynamically linked with %{name}. %package -n %{develname} Summary: Headers for developing programs that will use %{name} Group: Development/C++ Requires: %{libname} = %{version}-%{release} Provides: ClanLib-devel = %{version}-%{release} Provides: clanlib-devel = %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} %description -n %{develname} This package contains the headers that programmers will need to develop applications which will use %{name}. %package docs Summary: ClanLib documentation Group: Documentation BuildArch: noarch %description docs The ClanLib Game SDK is a crossplatform game library designed to ease the work for game developers. This package contains the documentation. %prep %setup -q -n ClanLib-%{version} %patch0 -p0 -b .link %patch1 -p1 -b .gcc %patch3 -p1 -b .non-x86 %patch6 -p1 %patch13 -p1 %patch14 -p1 %patch15 -p1 %ifarch %ix86 # no need; see patch6 #patch8 -p0 %endif %patch9 -p1 %build export CXXFLAGS="%{optflags} -fno-stack-protector" %ifarch aarch64 export CXXFLAGS="$CXXFLAGS -mno-outline-atomics" %endif autoreconf -fi %configure \ --disable-static \ --enable-docs %make_build %install %makeinstall_std find %{buildroot} -name '*.la' -delete %files -n %{libname} %doc README COPYING CREDITS %{_libdir}/libclan*-%{api}.so.%{major} %{_libdir}/libclan*-%{api}.so.%{major}.* %files -n %{develname} %{_libdir}/*.so %{_includedir}/* %{_libdir}/pkgconfig/*.pc %files docs %{_docdir}/clanlib-%{api} %changelog * Mon Jan 25 2021 Igor Vlasenko <viy@altlinux.ru> 2.3.7-alt2_11 - update by mgaimport * Wed Oct 02 2019 Michael Shigorin <mike@altlinux.org> 2.3.7-alt2_7 - E2K: explicit -std=c++11 - enable parallel build * Thu Feb 07 2019 Igor Vlasenko <viy@altlinux.ru> 2.3.7-alt1_7 - fixed build * Thu Mar 22 2018 Igor Vlasenko <viy@altlinux.ru> 2.3.7-alt1_6 - new version |