3d2b3ca
%global icon_dest_dir %{_datadir}/icons/hicolor/32x32/apps
3d2b3ca
Name:     7kaa
c2556d1
Version:  2.15.4p1
6b58d0c
Release:  3%{?dist}
3d2b3ca
Summary:  Seven Kingdoms: Ancient Adversaries
3d2b3ca
be24d25
# Main program: GPLv2+
be24d25
# misc_uuid: BSD
be24d25
License:  GPLv2+ and BSD
3d2b3ca
URL:      http://7kfans.com/
be24d25
Source0:  https://github.com/the3dfxdude/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
3d2b3ca
be24d25
BuildRequires: autoconf
be24d25
BuildRequires: automake
be24d25
BuildRequires: desktop-file-utils
be24d25
BuildRequires: gcc-c++
3d2b3ca
BuildRequires: gettext-devel
6b58d0c
BuildRequires: pkgconfig(libcurl)
6b58d0c
BuildRequires: pkgconfig(libenet)
6b58d0c
BuildRequires: pkgconfig(openal)
6b58d0c
BuildRequires: pkgconfig(sdl2)
6b58d0c
BuildRequires: pkgconfig(SDL2_net)
1b37431
BuildRequires: make
3d2b3ca
3d2b3ca
Requires: %{name}-data = %{version}-%{release}
be24d25
Requires: hicolor-icon-theme
3d2b3ca
3d2b3ca
%description
3d2b3ca
Seven Kingdoms is a real-time strategy (RTS) computer game developed
3d2b3ca
by Trevor Chan of Enlight Software. The game enables players to
3d2b3ca
compete against up to six other kingdoms allowing players to conquer
3d2b3ca
opponents by defeating them in war (with troops or machines),
3d2b3ca
capturing their buildings with spies, or offering opponents money
3d2b3ca
for their kingdom.
3d2b3ca
3d2b3ca
Seven Kingdoms: Ancient Adversaries is a free patch provided by
3d2b3ca
Interactive Magic and added three new cultures, the Egyptians, the
3d2b3ca
Mughals and the Zulus, and a new war machine, Unicorn.
3d2b3ca
be24d25
Due to licensing, in-game music needs to be downloaded separately.
c2556d1
Place the music files in /usr/share/7kaa/music.
be24d25
3d2b3ca
%package data
3d2b3ca
BuildArch: noarch
3d2b3ca
Summary: In-Game data Seven Kingdoms: Ancient Adversaries
3d2b3ca
3d2b3ca
Requires: %{name} = %{version}-%{release}
3d2b3ca
Requires: hicolor-icon-theme
3d2b3ca
3d2b3ca
%description data
be24d25
In-Game data Seven Kingdoms: Ancient Adversaries.
3d2b3ca
3d2b3ca
%prep
3d2b3ca
%setup -q
3d2b3ca
3d2b3ca
%build
3d2b3ca
# https://bugzilla.redhat.com/show_bug.cgi?id=1306226
3d2b3ca
export CXXFLAGS="%{optflags} -fsigned-char"
be24d25
./autogen.sh
3d2b3ca
%configure
be24d25
%make_build
3d2b3ca
3d2b3ca
%install
be24d25
%make_install -p
be24d25
%find_lang %{name}
be24d25
be24d25
### == icon files
3d2b3ca
mkdir -p %{buildroot}%{icon_dest_dir}
be24d25
install -m 644 doc/7kicon.png %{buildroot}%{icon_dest_dir}
3d2b3ca
3d2b3ca
### == desktop file
be24d25
cat > %{name}.desktop << EOF
3d2b3ca
[Desktop Entry]
3d2b3ca
Name=%{name}
3d2b3ca
GenericName=Seven Kingdoms: Ancient Adversaries
3d2b3ca
Comment=A real-time strategy (RTS) computer game
be24d25
Exec=%{_bindir}/%{name}
3d2b3ca
Icon=%{name}_icon
3d2b3ca
Terminal=false
3d2b3ca
Type=Application
3d2b3ca
Categories=Game;StrategyGame
be24d25
EOF
3d2b3ca
3d2b3ca
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{name}.desktop
3d2b3ca
be24d25
### == remove misplaced license file
3d2b3ca
rm -f %{buildroot}%{_docdir}/%{name}/COPYING
3d2b3ca
be24d25
%files -f %{name}.lang
3d2b3ca
%doc README
3d2b3ca
%license COPYING
3d2b3ca
%{_bindir}/%{name}
3d2b3ca
%{_datadir}/applications/%{name}.desktop
be24d25
%{icon_dest_dir}/7kicon.png
3d2b3ca
3d2b3ca
%files data
be24d25
%{_datadir}/%{name}/
3d2b3ca
3d2b3ca
%changelog
6b58d0c
* Sun Sep 13 2020 Andy Mender <andymenderunix@fedoraproject.org> - 2.15.4p1-3
6b58d0c
- Use pkgconfig for libcurl, enet, SDL2, SDL2_net, openal-soft
6b58d0c
b9ee0dd
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.15.4p1-2
b9ee0dd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
b9ee0dd
c2556d1
* Tue Jul 14 2020 Andy Mender <andymenderunix@fedoraproject.org> - 2.15.4p1-1
c2556d1
- Bump version and add note about music files to description
c2556d1
be24d25
* Sun Jul 05 2020 Andy Mender <andymenderunix@fedoraproject.org> - 2.15.4-1
be24d25
- Bump version and improve spec file
be24d25
be24d25
* Wed Jun 17 2020 Andy Mender <andymenderunix@fedoraproject.org> - 2.15.3-5
be24d25
- Use the make_build macro instead of legacy _smp_mflags
be24d25
be24d25
* Wed May 27 2020 Andy Mender <andymenderunix@fedoraproject.org> - 2.15.3-4
be24d25
- Fix files section, correct description
be24d25
be24d25
* Tue May 26 2020 Andy Mender <andymenderunix@fedoraproject.org> - 2.15.3-3
be24d25
- Split off music installation from main 7kaa package
be24d25
be24d25
* Sat May 23 2020 Andy Mender <andymenderunix@fedoraproject.org> - 2.15.3-2
be24d25
- Clean up and improve spec file
be24d25
be24d25
* Sun May 17 2020 Andy Mender <andymenderunix@fedoraproject.org> - 2.15.3-1
be24d25
- Try to unorphan and update the package
be24d25
3d2b3ca
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.14.7-6
3d2b3ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
3d2b3ca
3d2b3ca
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.14.7-5
3d2b3ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
3d2b3ca
3d2b3ca
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.14.7-4
3d2b3ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
3d2b3ca
3d2b3ca
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.14.7-3
3d2b3ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
3d2b3ca
3d2b3ca
* Sun Jan 07 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 2.14.7-2
3d2b3ca
- Remove obsolete scriptlets
3d2b3ca
3d2b3ca
* Thu Dec 07 2017 Ding-Yi Chen <dchen@redhat.com> - 2.14.7-1
3d2b3ca
- Upstream update to 2.14.7
3d2b3ca
  Fixes Bug 1458610 - 7kaa-2.14.7 is available
3d2b3ca
- Add Requires and BuildRequires libcurl
3d2b3ca
3d2b3ca
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.14.6-4
3d2b3ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
3d2b3ca
3d2b3ca
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.14.6-3
3d2b3ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
3d2b3ca
3d2b3ca
* Sat Mar 11 2017 Raphael Groner <projects.rg@smart.ms> - 2.14.6-2
3d2b3ca
- rebuilt due to branching
3d2b3ca
3d2b3ca
* Wed Mar 01 2017 Ding-Yi Chen <dchen@redhat.com> 2.14.6-1
3d2b3ca
- Upstream update to 2.14.6
3d2b3ca
3d2b3ca
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.14.5-13
3d2b3ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
3d2b3ca
3d2b3ca
* Mon Mar 07 2016 Yaakov Selkowitz <yselkowi@redhat.com> - 2.14.5-12
3d2b3ca
- Build with -fsigned-char to fix FTBFS with GCC 6 (#1306226)
3d2b3ca
3d2b3ca
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.14.5-11
3d2b3ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
3d2b3ca
3d2b3ca
* Tue Oct 20 2015 Ding-Yi Chen <dchen@redhat.com> 2.14.5-10
3d2b3ca
- music won't get uninstall when upgrading.
3d2b3ca
- Remove /usr/share/doc/COPYING as it is already installed.
3d2b3ca
3d2b3ca
* Fri Jun 26 2015 Ding-Yi Chen <dchen@redhat.com> 2.14.5-8
3d2b3ca
- Use name macro whenever possible.
3d2b3ca
3d2b3ca
* Wed Jun 24 2015 Ding-Yi Chen <dchen@redhat.com> 2.14.5-7
3d2b3ca
- Fix the .desktop file.
3d2b3ca
3d2b3ca
* Tue Jun 23 2015 Ding-Yi Chen <dchen@redhat.com> 2.14.5-6
3d2b3ca
- Requires: hicolor-icon-theme
3d2b3ca
- License become GPLv3+ and GPLv2+ as "gettext.h" is GPLv3
3d2b3ca
3d2b3ca
* Wed Jun 17 2015 Ding-Yi Chen <dchen@redhat.com> 2.14.5-5
3d2b3ca
- Fix for Review Request Comment #11
3d2b3ca
3d2b3ca
* Tue Jun 16 2015 Ding-Yi Chen <dchen@redhat.com> 2.14.5-4
3d2b3ca
- Fix for Review Request Comment #10
3d2b3ca
3d2b3ca
* Tue Jun 02 2015 Ding-Yi Chen <dchen@redhat.com> 2.14.5-3
3d2b3ca
- Fix for Review Request Comment #8
3d2b3ca
3d2b3ca
* Mon Jun 01 2015 Ding-Yi Chen <dchen@redhat.com> 2.14.5-2
3d2b3ca
- Fix for Review Request Comment #6
3d2b3ca
3d2b3ca
* Sun May 31 2015 Ding-Yi Chen <dchen@redhat.com> 2.14.5-1
3d2b3ca
- Upstream update to 2.14.5
3d2b3ca
- BuildRequires: add enet-devel
3d2b3ca
- Use autodownloader to download music.
3d2b3ca
3d2b3ca
* Wed May 27 2015 Ding-Yi Chen <dchen@redhat.com> 2.14.4-2
3d2b3ca
- Remove music.
3d2b3ca
3d2b3ca
* Tue May 05 2015 Ding-Yi Chen <dchen@redhat.com> 2.14.4-1
3d2b3ca
- Initial packaging.
3d2b3ca