Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > 36719a03ab1a716c7b666f826a89e228 > files > 4

valyriatear-0.6.0-2.mga4.src.rpm

%define sname   ValyriaTear

Name:           valyriatear
Version:        0.6.0
Release:        %mkrel 2
Summary:        Valyria Tear is a free 2D J-RPG based on the Hero of Allacrost engine
Group:          Games/Adventure
License:        GPLv2+
URL:            http://valyriatear.blogspot.de
Source0:        http://www.sourceforge.net/projects/valyriatear/files/%{sname}-%{version}.tar.gz
Patch0:         valyriatear-0.6.0-mga-gamespath.patch
Patch1:         valyriatear-0.6.0-mga-desktop-locale.patch

BuildRequires:  boost-devel
BuildRequires:  cmake
BuildRequires:  gettext
BuildRequires:  pkgconfig(lua) > 5.0
BuildRequires:  pkgconfig(openal)
BuildRequires:  pkgconfig(SDL_image)
BuildRequires:  pkgconfig(SDL_ttf)
BuildRequires:  pkgconfig(vorbis)
BuildRequires:  pkgconfig(zlib)
# Needed to build the map editor (not enabled as default)
#BuildRequires:  qt4-devel
Requires:       %{name}-data = %{version}-%{release}

%description
Valyria Tear is a free 2D J-RPG game based on the Hero of Allacrost engine.

You can play it very much like a typical console role-playing game.
You can explore maps and talk to non-playable characters (NPCs),
fight active-time battles against multiple enemies,
and manage your characters and equipment through a series of menus.

%package data
Summary:        Data files for 2D J-RPG Valyria Tear
License:        GPLv2 and GPLv2+ and GPLv3 and CC-BY-SA 3.0 and CC-BY 3.0 and CC0 and OFL 1.1
Requires:       %{name} = %{version}-%{release}
BuildArch:      noarch

%description data
Data files for Valyria Tear 2D J-RPG.

%prep
%setup -q -n %{sname}-%{version}
# Fix DOS-like text files
# Search for DOS-like files with: find . -type f -exec file "{}" + | grep CRLF

for ext in cpp h lua txt;
    do find . -type f -name \*.$ext -exec perl -pi -e 's/\r\n/\n/g' '{}' \; ;
done;
%apply_patches


%build
%cmake
%make

%install
cd build
%makeinstall_std
cd ..
install -D -p -m644 doc/%{name}.6 %{buildroot}/%{_mandir}/man6/%{name}.6

# Not using %%files_lang so that the user has the in-game possibility to change the locale
%files
%doc AUTHORS LICENSES MANUAL
%{_datadir}/applications/%{name}.desktop
%{_datadir}/locale/*/LC_MESSAGES/%{name}.mo
%{_gamesbindir}/%{name}
%{_iconsdir}/hicolor/48x48/apps/%{name}.png
%{_mandir}/man6/%{name}.6.xz

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


%changelog
* Mon Oct 21 2013 umeabot <umeabot> 0.6.0-2.mga4
+ Revision: 539304
- Mageia 4 Mass Rebuild

* Sat Oct 05 2013 akien <akien> 0.6.0-1.mga4
+ Revision: 491909
- Added missing BR on cmake
- New upstream version 0.6.0
- Rediffed patches
- Fixed version number and renamed the patches accordingly
- New tarball from upstream (previous tarball was home made)
- imported package valyriatear