File twin-e.spec of Package twin-e

%define twin_e_tar twin-e-1
%define twin_e_name twin-e


Name:           twin-e
Version:        2.0.0
Release:        3%{?dist}
Summary:        LBA engine

License:        GPL-3.0+
Group:          Amusements/Games/Other
URL:            https://code.google.com/p/twin-e
Source:         %{twin_e_tar}.tar.gz
BuildRoot:      %{_tmppath}/%{twin_e_name}-%{version}-build

BuildRequires:  pkgconfig(sdl)
BuildRequires:  pkgconfig(SDL_mixer)
BuildRequires:  pkgconfig(SDL_ttf)

%description
LBA engine reimplementation

%prep
%setup -n %{twin_e_tar} -q


%build
cd src
make


%install
echo "install"
ls -l src | grep twin
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_datadir}/twin-e
install -m 755 src/twin-e %{buildroot}/%{_bindir}/twin-e
install -m 755 bin/lba.cfg %{buildroot}%{_datadir}/twin-e/lba.cfg

%files
%doc README COPYING CHANGES AUTHORS
%defattr(-,root,root)
%{_bindir}/twin-e
%attr(755,root,root) %dir %{_datadir}/twin-e
%{_datadir}/twin-e/lba.cfg


%changelog
* Tue Dec 09 2014 Ivan Gonzalez <xxx@xxxx.xxx> - 2.0.0
- First package
openSUSE Build Service is sponsored by