Author: belegdol
Update of /cvs/free/rpms/bsnes/F-16
In directory se02.es.rpmfusion.net:/tmp/cvs-serv24751
Modified Files:
.cvsignore bsnes.spec sources
Added Files:
bsnes-0.086-systemwide.patch
Removed Files:
bsnes-0.085-systemwide.patch
Log Message:
* Tue Feb 14 2012 Julian Sikorski <belegdol(a)fedoraproject.org> - 0.086-1
- Updated to 0.086
- Dropped obsolete Group, Buildroot, %clean and %defattr
- Updated the systemlibs patch
- Build Compatibility and Accuracy profiles, as well as the laevateinn debugger
bsnes-0.086-systemwide.patch:
ui-debugger/Makefile | 3 ---
ui/Makefile | 3 ---
ui/general/main-window.cpp | 4 ++--
ui/tools/cheat-database.cpp | 2 +-
4 files changed, 3 insertions(+), 9 deletions(-)
--- NEW FILE bsnes-0.086-systemwide.patch ---
diff -up bsnes_v086-source/bsnes/ui-debugger/Makefile.systemwide
bsnes_v086-source/bsnes/ui-debugger/Makefile
--- bsnes_v086-source/bsnes/ui-debugger/Makefile.systemwide 2012-02-13 05:54:10.000000000
+0100
+++ bsnes_v086-source/bsnes/ui-debugger/Makefile 2012-02-15 23:37:47.524754749 +0100
@@ -66,11 +66,8 @@ endif
install:
ifeq ($(platform),x)
install -D -m 755 out/$(name) $(DESTDIR)$(prefix)/bin/$(name)
- mkdir -p ~/.config/$(name)
# install -D -m 644 data/$(name).png $(DESTDIR)$(prefix)/share/pixmaps/$(name).png
# install -D -m 644 data/$(name).desktop
$(DESTDIR)$(prefix)/share/applications/$(name).desktop
- cp data/cheats.xml ~/.config/$(name)/cheats.xml
- chmod 777 ~/.config/$(name) ~/.config/$(name)/cheats.xml
endif
uninstall:
diff -up bsnes_v086-source/bsnes/ui/general/main-window.cpp.systemwide
bsnes_v086-source/bsnes/ui/general/main-window.cpp
--- bsnes_v086-source/bsnes/ui/general/main-window.cpp.systemwide 2012-02-03
23:33:00.000000000 +0100
+++ bsnes_v086-source/bsnes/ui/general/main-window.cpp 2012-02-15 23:36:37.693287851
+0100
@@ -332,7 +332,7 @@ void MainWindow::synchronize() {
}
void MainWindow::setupVideoFilters() {
- string path = { application->basepath, "filters/" };
+ string path = { "/usr/lib/bsnes/filters/" };
lstring files = directory::files(path, "*.filter");
if(files.size() == 0) {
path = { application->userpath, "filters/" };
@@ -363,7 +363,7 @@ void MainWindow::setupVideoFilters() {
}
void MainWindow::setupVideoShaders() {
- string path = { application->basepath, "shaders/" };
+ string path = { "/usr/share/bsnes/shaders/" };
lstring files = directory::files(path, { "*.", config->video.driver,
".shader" });
if(files.size() == 0) {
path = { application->userpath, "shaders/" };
diff -up bsnes_v086-source/bsnes/ui/Makefile.systemwide
bsnes_v086-source/bsnes/ui/Makefile
--- bsnes_v086-source/bsnes/ui/Makefile.systemwide 2012-02-06 02:04:19.000000000 +0100
+++ bsnes_v086-source/bsnes/ui/Makefile 2012-02-15 23:36:35.509273332 +0100
@@ -67,11 +67,8 @@ endif
install:
ifeq ($(platform),x)
install -D -m 755 out/$(name) $(DESTDIR)$(prefix)/bin/$(name)
- mkdir -p ~/.config/$(name)
install -D -m 644 data/$(name).png $(DESTDIR)$(prefix)/share/pixmaps/$(name).png
install -D -m 644 data/$(name).desktop
$(DESTDIR)$(prefix)/share/applications/$(name).desktop
- cp data/cheats.xml ~/.config/$(name)/cheats.xml
- chmod 777 ~/.config/$(name) ~/.config/$(name)/cheats.xml
endif
uninstall:
diff -up bsnes_v086-source/bsnes/ui/tools/cheat-database.cpp.systemwide
bsnes_v086-source/bsnes/ui/tools/cheat-database.cpp
--- bsnes_v086-source/bsnes/ui/tools/cheat-database.cpp.systemwide 2012-02-13
05:50:01.000000000 +0100
+++ bsnes_v086-source/bsnes/ui/tools/cheat-database.cpp 2012-02-15 23:36:35.509273332
+0100
@@ -34,7 +34,7 @@ void CheatDatabase::findCodes() {
cheatCode.reset();
string data;
- data.readfile(application->path("cheats.xml"));
+ data.readfile("/usr/share/bsnes/cheats.xml");
XML::Document document(data);
for(auto &node : document["database"]) {
if(node.name != "cartridge") continue;
Index: .cvsignore
===================================================================
RCS file: /cvs/free/rpms/bsnes/F-16/.cvsignore,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- .cvsignore 3 Jan 2012 19:20:43 -0000 1.34
+++ .cvsignore 16 Feb 2012 19:23:37 -0000 1.35
@@ -1 +1 @@
-bsnes_v085-source.tar.bz2
+bsnes_v086-source.tar.bz2
Index: bsnes.spec
===================================================================
RCS file: /cvs/free/rpms/bsnes/F-16/bsnes.spec,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -r1.46 -r1.47
--- bsnes.spec 3 Jan 2012 19:20:43 -0000 1.46
+++ bsnes.spec 16 Feb 2012 19:23:37 -0000 1.47
@@ -1,17 +1,15 @@
-%global vernumber 085
+%global vernumber 086
Name: bsnes
Version: 0.%{vernumber}
Release: 1%{?dist}
Summary: SNES emulator focused on accuracy
-Group: Applications/Emulators
License: GPLv3
URL:
http://byuu.org/bsnes/
Source0:
http://bsnes.googlecode.com/files/%{name}_v%{vernumber}-source.tar.bz2
Source2: README.bsnes
-Patch1: bsnes-0.085-systemwide.patch
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+Patch1: bsnes-0.086-systemwide.patch
#bsnes does not use system snes_ntsc because the modified video processing
#filter algorithm calls back into bsnes specific c++ colortable code, that
@@ -66,8 +64,18 @@
%build
+#prepare for building compatibity and accuracy profile, as well as the debugger
+cp -pR bsnes bsnes-accuracy
+cp -pR bsnes laevateinn
+
pushd bsnes
-make %{?_smp_mflags} compiler=gcc phoenix=gtk
+make %{?_smp_mflags} compiler=gcc profile=compatibility phoenix=gtk
+popd
+pushd bsnes-accuracy
+make %{?_smp_mflags} compiler=gcc profile=accuracy phoenix=gtk
+popd
+pushd laevateinn
+make %{?_smp_mflags} compiler=gcc ui=ui-debugger phoenix=gtk
popd
pushd snesfilter
make %{?_smp_mflags} compiler=gcc
@@ -80,11 +88,22 @@
%install
rm -rf $RPM_BUILD_ROOT
pushd bsnes
+sed -i 's/Name=bsnes/Name=bsnes (Compatibility profile)/' data/bsnes.desktop
make install DESTDIR=$RPM_BUILD_ROOT prefix=%{_prefix}
desktop-file-install --vendor=rpmfusion \
--delete-original --dir $RPM_BUILD_ROOT%{_datadir}/applications \
$RPM_BUILD_ROOT%{_datadir}/applications/bsnes.desktop
popd
+pushd bsnes-accuracy
+sed -i 's/Name=bsnes/Name=bsnes (Accuracy profile)/' data/bsnes.desktop
+sed -i 's/Exec=bsnes/Exec=bsnes-accuracy/' data/bsnes.desktop
+install -pm 755 out/bsnes $RPM_BUILD_ROOT%{_bindir}/bsnes-accuracy
+desktop-file-install --dir $RPM_BUILD_ROOT%{_datadir}/applications \
+ data/bsnes.desktop
+popd
+pushd laevateinn
+install -pm 755 out/laevateinn $RPM_BUILD_ROOT%{_bindir}
+popd
install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
install -pm 644 bsnes/data/cheats.xml $RPM_BUILD_ROOT%{_datadir}/%{name}
install -d $RPM_BUILD_ROOT%{_libdir}/%{name}/filters
@@ -93,22 +112,27 @@
install -d $RPM_BUILD_ROOT%{_datadir}/%{name}/shaders
install -pm 644 snesshader/*.shader $RPM_BUILD_ROOT%{_datadir}/%{name}/shaders
-%clean
-rm -rf $RPM_BUILD_ROOT
-
%files
-%defattr(-,root,root,-)
%doc README.Fedora
%{_bindir}/bsnes
+%{_bindir}/bsnes-accuracy
+%{_bindir}/laevateinn
%{_bindir}/snespurify-gtk
%{_libdir}/bsnes
%{_datadir}/bsnes
%{_datadir}/pixmaps/bsnes.png
+%{_datadir}/applications/bsnes.desktop
%{_datadir}/applications/rpmfusion-bsnes.desktop
%changelog
+* Tue Feb 14 2012 Julian Sikorski <belegdol(a)fedoraproject.org> - 0.086-1
+- Updated to 0.086
+- Dropped obsolete Group, Buildroot, %%clean and %%defattr
+- Updated the systemlibs patch
+- Build Compatibility and Accuracy profiles, as well as the laevateinn debugger
+
* Tue Jan 03 2012 Julian Sikorski <belegdol(a)fedoraproject.org> - 0.085-1
- Updated to 0.085
- Updated the systemwide patch
Index: sources
===================================================================
RCS file: /cvs/free/rpms/bsnes/F-16/sources,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- sources 3 Jan 2012 19:20:43 -0000 1.34
+++ sources 16 Feb 2012 19:23:37 -0000 1.35
@@ -1 +1 @@
-2419710087ba28c894e5aa1c3c41b6e7 bsnes_v085-source.tar.bz2
+54f73b38d24405186b538e01713b0c1f bsnes_v086-source.tar.bz2
--- bsnes-0.085-systemwide.patch DELETED ---