Search
SailfishOS Open Build Service
>
Projects
>
home:nephros
:
devel
:
games
:
amiga
>
amiberry
> amiberry.spec_5.5.1
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File amiberry.spec_5.5.1 of Package amiberry
# # Do NOT Edit the Auto-generated Part! # Generated by: spectacle version 0.32 # Name: amiberry # >> macros # << macros Summary: Amiga emulator Version: 5.5.1 Release: 1 Group: Amusements/Games License: GPLv2+ URL: https://amiberry.com/ Source0: %{name}-%{version}.tar.gz Source1: %{name}_wrapper.sh Source2: %{name}.conf Source3: %{name}-open.desktop Source100: amiberry.yaml BuildRequires: pkgconfig(freetype2) BuildRequires: pkgconfig(libpng) BuildRequires: pkgconfig(flac) BuildRequires: pkgconfig(ogg) BuildRequires: pkgconfig(vorbis) BuildRequires: pkgconfig(zlib) BuildRequires: gcc-c++ BuildRequires: SDL2_image-devel BuildRequires: SDL2_ttf-devel BuildRequires: SDL2-devel BuildRequires: libstdc++-devel BuildRequires: libmpeg2-devel BuildRequires: mpg123-devel BuildRequires: pkgconfig BuildRequires: desktop-file-utils %description Optimized Amiga emulator for the Raspberry Pi and other ARM boards NOTE: Original kickstart ROM files are needed. This build uses the config file in these dirs: - $XDG_CONFIG_HOME/amiberry or $HOME/.config/amiberry and data files in these dirs: - $XDG_DATA_HOME/amiberry or $HOME/.local/share}/amiberry Screenshots and recordings go to ~/Pictures and ~/Music # This description section includes metadata for SailfishOS:Chum, see # https://github.com/sailfishos-chum/main/blob/main/Metadata.md %if "%{?vendor}" == "chum" PackageName: Amiberry Type: desktop-application PackagerName: nephros DeveloperName: BlitterStudio Categories: - Game Custom: Repo: https://github.com/BlitterStudio/amiberry Icon: https://raw.githubusercontent.com/BlitterStudio/amiberry/master/data/amiberry.png Screenshots: - https://i2.wp.com/blitterstudio.com/wp-content/uploads/2020/01/Logo-v3-1.png Url: Homepage: https://amiberry.com/ Help: https://github.com/BlitterStudio/amiberry/wiki/ %endif %prep %setup -q -n %{name}-%{version} # >> setup # << setup %build # >> build pre CFLAGS="$CFLAGS $RPM_OPT_FLAGS -fPIC -pie" CXXFLAGS="$CXXFLAGS $RPM_OPT_FLAGS -fPIC -pie" export CFLAGS export CXXFLAGS ### sometimes the build fails with smp flags. just retry if it does %ifarch aarch64 %make_build PLATFORM=a64 %{?_smp_mflags} || %make_build PLATFORM=a64 %{?_smp_mflags} %endif %ifarch %arm # s812 is the only non-RPi 32bit platform. # maybe omitting PLATFORM and relying on build system C*FLAGS is better? #%%make_build %{?_smp_mflags} %make_build PLATFORM=s812 %{?_smp_mflags} %endif # << build pre # >> build post # << build post %install rm -rf %{buildroot} # >> install pre # use a wrapper script in bin: %{__install} -m 0755 -D %SOURCE1 %{buildroot}%{_bindir}/%{name} # the binary proper: %{__install} -m 0755 -D %{name} %{buildroot}%{_datadir}/%{name}/%{name} %{__install} -m 0644 -D %SOURCE2 %{buildroot}%{_datadir}/%{name}/conf/%{name}.conf %{__install} -m 0644 -D %SOURCE3 %{buildroot}%{_datadir}/applications/%{name}-open.desktop # install all the rest: for f in $(find abr controllers data kickstarts whdboot -type f) do %{__install} -p -D $f %{buildroot}/%{_datadir}/%{name}/$f done # << install pre # >> install post # << install post desktop-file-install --delete-original \ --dir %{buildroot}%{_datadir}/applications \ %{buildroot}%{_datadir}/applications/*.desktop %files %defattr(-,root,root,-) %attr(755,root,root) %{_bindir}/%{name} %attr(755,root,root) %{_datadir}/%{name}/%{name} %defattr(644,root,root,755) %dir %{_datadir}/%{name} %{_datadir}/%{name}/* %{_datadir}/applications/%{name}-open.desktop # >> files # << files