dreua / rpms / mupen64plus

Forked from rpms/mupen64plus 2 years ago
Clone

Blame mupen64plus.spec

6e7e14f
6e7e14f
%global debug_package %{nil}
6e7e14f
6e7e14f
Name:		mupen64plus
6e7e14f
Version:	2.5
9f941f2
Release:	5%{?dist}
6e7e14f
6e7e14f
Summary:	Nintendo 64 Emulator
6e7e14f
License:	GPLv2+ and CC-BY-SA
6e7e14f
URL:		http://www.mupen64plus.org/
6e7e14f
Source:		https://github.com/mupen64plus/mupen64plus-core/releases/download/2.5/mupen64plus-bundle-src-2.5.tar.gz
6e7e14f
6e7e14f
6e7e14f
BuildRequires:	pkgconfig(SDL_ttf)
6e7e14f
BuildRequires:	pkgconfig(lirc)
6e7e14f
BuildRequires:	desktop-file-utils
6e7e14f
BuildRequires:	pkgconfig(glu)
6e7e14f
BuildRequires:	pkgconfig(samplerate)
6e7e14f
BuildRequires:	pkgconfig(libpng)
6e7e14f
BuildRequires:	pkgconfig(sdl2)
6e7e14f
BuildRequires:	pkgconfig(freetype2)
6e7e14f
BuildRequires:	boost-devel
6e7e14f
BuildRequires:	gzip
6e7e14f
BuildRequires:	pkgconfig(glew)
6e7e14f
BuildRequires:	binutils
9f941f2
BuildRequires:	gcc-c++
6e7e14f
6e7e14f
Requires:	hicolor-icon-theme
6e7e14f
6e7e14f
Conflicts:	mupen64plus-qt
6e7e14f
Conflicts:	mupen64plus-cli
6e7e14f
6e7e14f
%description
6e7e14f
Mupen64plus is a Nintendo 64 Emulator.
6e7e14f
This package includes all the plug-ins.
6e7e14f
6e7e14f
%package devel
6e7e14f
Summary:	Development files for mupen64plus
6e7e14f
Requires:	%{name}%{?_isa} = %{version}-%{release}
6e7e14f
6e7e14f
%description devel
6e7e14f
Development files for mupen64plus
6e7e14f
6e7e14f
%prep
6e7e14f
%setup -q -n %{name}-bundle-src-%{version}
6e7e14f
6e7e14f
# Need to avoid filename conflicts so they can be included in the package
6e7e14f
cp -a source/mupen64plus-rsp-hle/LICENSES LICENSE-rsp-hle
6e7e14f
cp -a source/mupen64plus-rom/mupen64plus/assets/LICENSES LICENSE-assets
6e7e14f
cp -a source/mupen64plus-rom/LICENSES LICENSE-rom
6e7e14f
cp -a source/mupen64plus-input-sdl/LICENSES LICENSE-input-sdl
6e7e14f
cp -a source/mupen64plus-video-glide64mk2/LICENSES LICENSE-video-glide64mk2
6e7e14f
cp -a source/mupen64plus-video-rice/LICENSES LICENSE-video-rice
6e7e14f
cp -a source/mupen64plus-ui-console/LICENSES LICENSE-ui-console
6e7e14f
cp -a source/mupen64plus-core/LICENSES LICENSE-core
6e7e14f
cp -a source/mupen64plus-audio-sdl/LICENSES LICENSE-audio-sdl
6e7e14f
6e7e14f
%build
6e7e14f
6e7e14f
export CFLAGS="%{optflags}"
6e7e14f
export CXXFLAGS="%{optflags}"
6e7e14f
export LDFLAGS="%{?__global_ldflags}"
6e7e14f
sh m64p_build.sh LIRC=1
6e7e14f
6e7e14f
%install
6e7e14f
6e7e14f
# NOTE: set LDCONFIG to true so it's not run during this script
6e7e14f
./m64p_install.sh DESTDIR=%{buildroot} PREFIX=%{_prefix} MANDIR=%{_mandir} LIBDIR=%{_libdir} DEBUG=1 LDCONFIG='true'
6e7e14f
find %{buildroot}%{_libdir} -type f -name "*.so*" -exec chmod 0755 "{}" \;
6e7e14f
6e7e14f
# NOTE: The build system should probably create this...
6e7e14f
ln -sf %{_libdir}/libmupen64plus.so.2.0.0 %{buildroot}%{_libdir}/libmupen64plus.so
6e7e14f
6e7e14f
desktop-file-validate %{buildroot}/%{_datadir}/applications/mupen64plus.desktop
6e7e14f
6e7e14f
%post -p /sbin/ldconfig
6e7e14f
6e7e14f
%postun -p /sbin/ldconfig
6e7e14f
6e7e14f
%files
6e7e14f
%{_bindir}/%{name}
6e7e14f
%{_libdir}/%{name}/
6e7e14f
%{_libdir}/libmupen64plus.so.2
6e7e14f
%{_libdir}/libmupen64plus.so.2.0.0
6e7e14f
%{_datadir}/%{name}/
6e7e14f
%{_datadir}/applications/mupen64plus.desktop
6e7e14f
%{_datadir}/icons/hicolor/48x48/apps/mupen64plus.png
6e7e14f
%{_datadir}/icons/hicolor/scalable/apps/mupen64plus.svg
6e7e14f
%{_mandir}/man6/mupen64plus.6.gz
6e7e14f
%license LICENSE-rsp-hle LICENSE-assets LICENSE-rom LICENSE-input-sdl LICENSE-video-glide64mk2 LICENSE-video-rice LICENSE-core LICENSE-audio-sdl
6e7e14f
6e7e14f
6e7e14f
%files devel
6e7e14f
%{_includedir}/mupen64plus/
6e7e14f
%{_libdir}/libmupen64plus.so
6e7e14f
6e7e14f
%changelog
6e7e14f
9f941f2
* Sat Apr 25 2020 Wade Berrier <wberrier@gmail.com> - 2.5-5
9f941f2
- Add gcc-c++ to BuildRequires
9f941f2
6e7e14f
* Sat Jan 27 2018 Wade Berrier <wberrier@gmail.com> - 2.5-4
6e7e14f
- Additional updates for Fedora package review (#1535549)
6e7e14f
6e7e14f
* Sat Jan 20 2018 Wade Berrier <wberrier@gmail.com> - 2.5-3
6e7e14f
- Various updates for Fedora package review (#1535549)
6e7e14f
6e7e14f
* Thu Jan 11 2018 Wade Berrier <wberrier@gmail.com> - 2.5-2
6e7e14f
- Update homepage url
6e7e14f
- Remove references to nonexistant gtk gui
6e7e14f
- add lirc build option
6e7e14f
- split out devel package
6e7e14f
6e7e14f
* Fri Oct 02 2015 David Vásquez <davidjeremias82[AT]gmail [DOT] com> - 2.5-1
6e7e14f
- Updated to 2.5
6e7e14f
6e7e14f
* Fri Jul 04 2014 David Vásquez <davidjeremias82[AT]gmail [DOT] com> - 2.0-6
6e7e14f
- Excluded innecesary sources
6e7e14f
6e7e14f
* Fri Nov 22 2013 David Vasquez <davidjeremias82[AT]gmail [DOT] com> - 2.0-5
6e7e14f
- Added Modules Input SDL
6e7e14f
6e7e14f
* Wed Sep 25 2013 David Vasquez <davidjeremias82[AT]gmail [DOT] com> - 2.0-4
6e7e14f
- Initial build rpm