Sophie

Sophie

distrib > Mageia > 6 > armv7hl > media > core-updates-src > by-pkgid > db14f9764de9121c90f7ece7c5ab1775 > files > 2

wesnoth-1.14.5-1.mga6.src.rpm

# Mix of py2 and py3 files badly identified by RPM
%define _python_bytecompile_errors_terminate_build 0

Summary:	The Battle for Wesnoth - Fantasy turn-based strategy game
Name:		wesnoth
Version:	1.14.5
Release:	%mkrel 1
License:	GPLv2+
Group:		Games/Strategy
Url:		https://www.wesnoth.org
Source0:	https://www.wesnoth.org/files/%{name}-%{version}.tar.bz2

BuildRequires:	boost-devel
BuildRequires:	cmake
BuildRequires:	gettext
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(fribidi)
BuildRequires:	pkgconfig(libcrypto)
BuildRequires:	pkgconfig(lua)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(python)
BuildRequires:	pkgconfig(SDL2_image)
BuildRequires:	pkgconfig(SDL2_ttf)
BuildRequires:	pkgconfig(SDL2_mixer)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(x11)
BuildRequires:	readline-devel
Requires:	%{name}-data = %{version}

%description
The Battle for Wesnoth is a free, turn-based tactical strategy game
with a high fantasy theme, featuring both single-player, and online/hotseat
multiplayer combat. Fight a desperate battle to reclaim the throne
of Wesnoth, or take hand in any number of other adventures.

Battle for control of villages, using variety of units which
have advantages and disadvantages in different types of terrains and
against different types of attacks. Units gain experience and advance
levels, and are carried over from one scenario to the next campaign.

%package data
Summary:	Data files for the Battle for Wesnoth game
Group:		Games/Strategy
Conflicts:	wesnoth < 1.8.6-5
# Use DejaVu and Lato font packages rather than included fonts
Requires:	fonts-ttf-dejavu
Requires:	lato-fonts
BuildArch:	noarch

%description data
This package contains data files for Battle for Wesnoth.

%package server
Summary:	Server for the Battle for Wesnoth game
Group:		Games/Strategy
Requires(post):	rpm-helper >= 0.24.8-1
Requires(preun): rpm-helper >= 0.24.8-1

%description server
This package contains the Battle for Wesnoth server, used to host multiplayer
games without needing to install the full client.

%prep
%autosetup -p1

%build
%cmake \
	-DCMAKE_INSTALL_BINDIR=%{_gamesbindir} \
	-DCMAKE_INSTALL_DATADIR=%{_gamesdatadir} \
	-DCMAKE_INSTALL_DATAROOTDIR=%{_datadir} \
	-DENABLE_LTO=ON
%make_build

%install
%make_install -C build

%find_lang %{name} --with-man
%find_lang %{name}d --with-man

# Use DejaVu and Lato font packages rather than included fonts
pushd %{buildroot}%{_gamesdatadir}/wesnoth/fonts
for font in in DejaVuSans*; do
  rm -f $font
  ln -sf %{_datadir}/fonts/TTF/dejavu/$font $font
done
for font in Lato*; do
  rm -f $font
  ln -sf %{_datadir}/fonts/lato/$font $font
done
popd

%files -f %{name}.lang
%doc README.md changelog.md
%doc %{_docdir}/%{name}/html/
%license COPYING copyright
%{_gamesbindir}/%{name}
%{_mandir}/man6/%{name}.6*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/metainfo/%{name}.appdata.xml
%{_iconsdir}/hicolor/*/apps/%{name}-icon.png

%files data
%{_gamesdatadir}/%{name}/

%files server -f %{name}d.lang
%{_gamesbindir}/%{name}d
%{_mandir}/man6/%{name}d.6*
%ghost %{_localstatedir}/run/%{name}d/socket


%changelog
* Tue Sep 18 2018 akien <akien> 1.14.5-1.mga6
  (not released yet)
+ Revision: 1259948
- Version 1.14.5
- Version 1.14.4, fixes CVE-2018-1999023 (mga#23338)
- Version 1.14.1
- Version 1.14.0, using SDL2
- Unbundle Lato fonts

* Sat May 21 2016 akien <akien> 1.12.6-1.mga6
+ Revision: 1017387
- Version 1.12.6

* Sun Dec 27 2015 barjac <barjac> 1.12.5-2.mga6
+ Revision: 915913
- rebuild for boost-1.60.0

* Tue Nov 10 2015 akien <akien> 1.12.5-1.mga6
+ Revision: 900859
- Version 1.12.5

* Sat Sep 26 2015 fwang <fwang> 1.12.4-4.mga6
+ Revision: 883763
- update file list
- update file list
- rebuild for new boost

* Tue Aug 25 2015 cjw <cjw> 1.12.4-3.mga6
+ Revision: 869257
- rebuild with gcc 5

* Fri Jul 31 2015 sander85 <sander85> 1.12.4-2.mga6
+ Revision: 860048
- Rebuild for new boost

* Sat Jun 27 2015 akien <akien> 1.12.4-1.mga6
+ Revision: 846287
- Bugfix version 1.12.4 (includes previous patch for CVE-2015-5069)

* Thu Jun 25 2015 akien <akien> 1.12.3-1.mga6
+ Revision: 842977
- Bugfix version 1.12.3
  o Includes a partial fix to disallow file inclusion (CVE-2015-5069, mga#16208)
- Backported more complete fix to disallow file inclusion (CVE-2015-5069, mga#16208)

* Sun Apr 12 2015 akien <akien> 1.12.2-1.mga5
+ Revision: 820069
- Version 1.12.2
  o includes a security fix for arbitrary file read by WML/Lua API (CVE-2015-0844, mga#15685)

* Mon Jan 26 2015 akien <akien> 1.12.1-1.mga5
+ Revision: 812267
- Version 1.12.1

* Sun Nov 23 2014 akien <akien> 1.12.0-1.mga5
+ Revision: 798491
- Version 1.12.0
- Drop broken service file blindly imported from Fedora
- Improve description

* Wed Oct 15 2014 umeabot <umeabot> 1.10.7-4.mga5
+ Revision: 744212
- Second Mageia 5 Mass Rebuild

* Tue Sep 16 2014 umeabot <umeabot> 1.10.7-3.mga5
+ Revision: 690298
- Mageia 5 Mass Rebuild

* Sat Oct 19 2013 umeabot <umeabot> 1.10.7-2.mga5
+ Revision: 533377
- Mageia 4 Mass Rebuild

* Thu Aug 29 2013 fwang <fwang> 1.10.7-1.mga4
+ Revision: 472777
- new version 1.10.7

* Fri Jul 12 2013 fwang <fwang> 1.10.6-2.mga4
+ Revision: 453231
- rebuild for new boost

* Thu Jun 06 2013 dams <dams> 1.10.6-1.mga4
+ Revision: 438407
- new version 1.10.6

* Thu Apr 11 2013 barjac <barjac> 1.10.5-6.mga3
+ Revision: 409496
- rebuild for boost-1.53

* Wed Mar 20 2013 barjac <barjac> 1.10.5-5.mga3
+ Revision: 404191
- replace included droid font as exact font not in package

* Sun Mar 17 2013 lmenut <lmenut> 1.10.5-4.mga3
+ Revision: 403617
- rebuild for new rpm-mageia-setup
  do not own man lang directories (mga #9055)

* Thu Mar 14 2013 barjac <barjac> 1.10.5-3.mga3
+ Revision: 403176
- use external packaged fonts where available

* Mon Jan 14 2013 umeabot <umeabot> 1.10.5-2.mga3
+ Revision: 385681
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Wed Dec 26 2012 stormi <stormi> 1.10.5-1.mga3
+ Revision: 335343
- new version 1.10.5

* Thu Dec 20 2012 fwang <fwang> 1.10.4-2.mga3
+ Revision: 333123
- rebuild for new boost

* Tue Sep 11 2012 dams <dams> 1.10.4-1.mga3
+ Revision: 292266
- new version 1.10.4
- add a require on engine game on the data package
- fix ugly icon
- remove useless SOURCE1

* Tue Jul 31 2012 fwang <fwang> 1.10.3-2.mga3
+ Revision: 276845
- rebuild for new boost

* Mon Jun 11 2012 dams <dams> 1.10.3-1.mga3
+ Revision: 259788
- new version 1.10.3

* Wed May 30 2012 kamil <kamil> 1.10.2-5.mga3
+ Revision: 249755
- rebuild against boost 1.49.0

* Sat Apr 28 2012 tmb <tmb> 1.10.2-4.mga2
+ Revision: 233898
- Require rpm-helper >= 0.24.8-1 for systemd support

* Fri Apr 20 2012 boklm <boklm> 1.10.2-3.mga2
+ Revision: 231977
- rebuild to fix package signature problem

* Fri Apr 20 2012 guillomovitch <guillomovitch> 1.10.2-2.mga2
+ Revision: 231915
- systemd support
+ stormi <stormi>
- new version 1.10.2

* Sun Mar 04 2012 stormi <stormi> 1.10.1-1.mga2
+ Revision: 218105
- new version 1.10.1

* Wed Feb 08 2012 guillomovitch <guillomovitch> 1.10-1.mga2
+ Revision: 206412
- new version

* Sat Dec 10 2011 fwang <fwang> 1.8.6-5.mga2
+ Revision: 180198
- split data sub package

* Mon Nov 28 2011 fwang <fwang> 1.8.6-4.mga2
+ Revision: 173729
- fix build with latest boost
- rebuild for new boost
- rebuild for new boost

* Sat Jul 09 2011 stormi <stormi> 1.8.6-2.mga2
+ Revision: 121177
- remove Buildroot:
- use --with-man in %%find_lang
- fix server package summary

* Sat Jul 09 2011 stormi <stormi> 1.8.6-1.mga2
+ Revision: 120987
- new version 1.8.6

* Wed Jun 22 2011 fwang <fwang> 1.8.5-3.mga2
+ Revision: 111979
- rebuild for new boost

* Fri Mar 11 2011 stormi <stormi> 1.8.5-2.mga1
+ Revision: 68176
- clean spec
- imported package wesnoth