[normalize/f33] Add mpg123
by Leigh Scott
Summary of changes:
b7b7b01... Add mpg123 (*)
(*) This commit already existed in another branch; no separate mail sent
4 years, 3 months
[normalize] Add mpg123
by Leigh Scott
commit b7b7b01b7031ae9c7d328e6ea0a51ef267a60df1
Author: Leigh Scott <leigh123linux(a)gmail.com>
Date: Sun Aug 23 12:59:26 2020 +0100
Add mpg123
normalize.spec | 29 ++++++++++++++++++-----------
sources | 2 +-
2 files changed, 19 insertions(+), 12 deletions(-)
---
diff --git a/normalize.spec b/normalize.spec
index 060e50b..7f70983 100644
--- a/normalize.spec
+++ b/normalize.spec
@@ -3,22 +3,24 @@
Summary: Tool for adjusting the volume of audio files to a standard level
Name: normalize
Version: 0.7.7
-Release: 20%{?dist}
+Release: 21%{?dist}
URL: http://normalize.nongnu.org/
License: GPLv2+
-Group: Applications/Multimedia
Source: http://savannah.nongnu.org/download/normalize/normalize-0.7.7.tar.bz2
Patch0: normalize-0.7.7-audiofile.patch
Patch1: normalize-0.7.7-autoreconf.patch
-BuildRequires: audiofile-devel >= 1:0.2.1-2 gettext gcc
-# For autoreconf
+
+
+BuildRequires: audiofile-devel >= 1:0.2.1-2
+BuildRequires: gettext
+BuildRequires: gcc
BuildRequires: libtool perl(Carp)
# For dependency generation
BuildRequires: perl-generators
# Binaries from the following are required.
-BuildRequires: lame vorbis-tools flac
+BuildRequires: lame vorbis-tools flac mpg123
# Explicit, because won't be detected automatically.
-Requires: lame vorbis-tools flac
+Requires: lame vorbis-tools flac mpg123
%description
normalize is a tool for adjusting the volume of audio files to a
@@ -42,7 +44,7 @@ Plugin for XMMS to honour relative volume adjustment (RVA2) ID3 tag frames.
%patch0 -p1
%patch1 -p1
touch AUTHORS ChangeLog
-autoreconf -i -f
+autoreconf -fi
for i in THANKS doc/normalize-mp3.1; do
iconv -f ISO-8859-1 -t UTF8 "$i" > "$i.UTF8"
touch -r "$i" "$i.UTF8"
@@ -52,12 +54,13 @@ done
%build
%configure --enable-xmms --with-audiofile --disable-static
-make %{?_smp_mflags}
+%make_build
%install
-make DESTDIR=$RPM_BUILD_ROOT install
+%make_install
rm $RPM_BUILD_ROOT%{_libdir}/xmms/Effect/librva.la
+
%find_lang %{name}
@@ -67,14 +70,18 @@ rm $RPM_BUILD_ROOT%{_libdir}/xmms/Effect/librva.la
%{_bindir}/normalize
%{_bindir}/normalize-mp3
%{_bindir}/normalize-ogg
-%{_mandir}/man1/normalize.1.gz
-%{_mandir}/man1/normalize-mp3.1.gz
+%{_mandir}/man1/normalize.1.*
+%{_mandir}/man1/normalize-mp3.1.*
%files -n xmms-%{name}
%{plugindir}/librva.so
%changelog
+* Sun Aug 23 2020 Leigh Scott <leigh123linux(a)gmail.com> - 0.7.7-21
+- Add mpg123
+- Clean up spec file
+
* Tue Aug 18 2020 RPM Fusion Release Engineering <leigh123linux(a)gmail.com> - 0.7.7-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
diff --git a/sources b/sources
index 8587cef..cd56b17 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-1749b16fc7a08aa5d0cf9f76eeaa8436 normalize-0.7.7.tar.bz2
+SHA512 (normalize-0.7.7.tar.bz2) = 5fb2265eac93b243682cedb955d2ddfe05f55cafdeb1d757aaef0afb36bc9907ea3321b8554e128f6228bdeeaeef96e3e9ba000d0ad84282cc76a50b3e460ce4
4 years, 3 months
[vice/f33] (2 commits) ...Simplify build
by jwrdegoede
Summary of changes:
3a615a8... New upstream release 3.4 Fix Fedora 33 FTBFS Remove obsolet (*)
24a0c85... Simplify build (*)
(*) This commit already existed in another branch; no separate mail sent
4 years, 3 months
[vice] Simplify build
by jwrdegoede
commit 24a0c8507d88b5a729038417f40167315e6500eb
Author: Hans de Goede <hdegoede(a)redhat.com>
Date: Sun Aug 23 13:38:57 2020 +0200
Simplify build
Siumplify buid, get rid of having 2 separate copies of the src dir
for the SDL and GTK versions.
vice.spec | 69 +++++++++++++++++++++++++++++----------------------------------
1 file changed, 32 insertions(+), 37 deletions(-)
---
diff --git a/vice.spec b/vice.spec
index 43721bd..8919ca2 100644
--- a/vice.spec
+++ b/vice.spec
@@ -139,23 +139,18 @@ Vice Commodore VIC-20 Emulator.
%prep
-%setup -c -q
-pushd %{name}-%{version}
+%autosetup -p1
sed -i 's/\r//' `find -name "*.h"`
sed -i 's/\r//' `find -name "*.c"`
sed -i 's/\r//' `find -name "*.cc"`
-%patch1 -p1 -z .datadir
-%patch2 -p1
for i in man/*.1 doc/*.info* README AUTHORS; do
iconv -f ISO-8859-1 -t UTF8 $i > $i.tmp
touch -r $i $i.tmp
mv $i.tmp $i
done
+# Avoid "make distclean" removing this, as we need it
+mv doc/%{name}.pdf .
./autogen.sh
-popd
-
-mv %{name}-%{version} %{name}-%{version}.gtk
-cp -a %{name}-%{version}.gtk %{name}-%{version}.sdl
%build
@@ -174,37 +169,38 @@ COMMON_FLAGS="--enable-ethernet --enable-parsid --without-oss --disable-arch --e
export CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE=1"
export CXXFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE=1"
-pushd %{name}-%{version}.gtk
- %configure --enable-native-gtk3ui $COMMON_FLAGS
- # Ensure the system versions of these are used
- rm -r src/lib/lib* src/lib/ffmpeg
- %make_build
-popd
+# Build SDL version
+%configure --enable-sdlui2 $COMMON_FLAGS
+# Ensure the system versions of these are used
+mkdir src/lib/bak
+mv src/lib/lib* src/lib/ffmpeg src/lib/bak
+%make_build
+# Rename / save SDL binaries
+for i in src/x*; do
+ mv $i $i.sdl
+done
-pushd %{name}-%{version}.sdl
- %configure --enable-sdlui2 $COMMON_FLAGS
- # Ensure the system versions of these are used
- rm -r src/lib/lib* src/lib/ffmpeg
- %make_build
-popd
+# Reset source tree for building GTK version
+mv src/lib/bak/* src/lib
+make distclean
+
+# Build GTK version
+%configure --enable-native-gtk3ui $COMMON_FLAGS
+# Ensure the system versions of these are used
+rm -r src/lib/lib* src/lib/ffmpeg
+%make_build
%install
-pushd %{name}-%{version}.gtk
%make_install VICEDIR=%{_datadir}/%{name}
-popd
-
-pushd %{name}-%{version}.sdl
- pushd src
- for i in x*; do
- install -p -m 755 $i $RPM_BUILD_ROOT%{_bindir}/$i.sdl
- done
- popd
- pushd data
- for i in */sdl_sym.vkm; do
- cp -a --parents $i $RPM_BUILD_ROOT%{_datadir}/%{name}
- done
- popd
+# Manual install SDL version
+for i in src/x*.sdl; do
+ install -p -m 755 $i $RPM_BUILD_ROOT%{_bindir}
+done
+pushd data
+ for i in */sdl_sym.vkm; do
+ cp -a --parents $i $RPM_BUILD_ROOT%{_datadir}/%{name}
+ done
popd
rm $RPM_BUILD_ROOT%{_infodir}/dir
@@ -222,8 +218,7 @@ mv $RPM_BUILD_ROOT%{_docdir}/%{name}/{*.png,*.gif,*.svg} \
$RPM_BUILD_ROOT%{_docdir}/%{name}/images
# For the manual entry in the help menu
-install -p -m 644 %{name}-%{version}.gtk/doc/%{name}.pdf \
- $RPM_BUILD_ROOT%{_docdir}/%{name}
+install -p -m 644 %{name}.pdf $RPM_BUILD_ROOT%{_docdir}/%{name}
ln -s ../doc/%{name} $RPM_BUILD_ROOT%{_datadir}/%{name}/doc
# for use of the -data package with libsidplay bases sid players
@@ -261,7 +256,7 @@ popd
%files common
%doc %{_docdir}/%{name}
-%license %{name}-%{version}.gtk/COPYING
+%license COPYING
%{_bindir}/c1541
%{_bindir}/cartconv
%{_bindir}/petcat
4 years, 3 months
[vice] New upstream release 3.4 Fix Fedora 33 FTBFS Remove obsolete gtk-icon-cache and instlal-info scriptl
by jwrdegoede
commit 3a615a8087f413a246517ea9611b34be8ab6e1da
Author: Hans de Goede <hdegoede(a)redhat.com>
Date: Sat Aug 22 20:44:51 2020 +0200
New upstream release 3.4
Fix Fedora 33 FTBFS
Remove obsolete gtk-icon-cache and instlal-info scriptlets
.gitignore | 1 +
sources | 8 ++--
vice-2.4.24-datadir.patch | 45 ---------------------
vice-cflags-ldflags-mixup.patch | 14 +++++++
vice-datadir.patch | 23 +++++++++++
vice-htmlview.patch | 12 ------
vice-new-ffmpeg.patch | 49 ----------------------
vice-norpath.patch | 14 -------
vice.spec | 90 ++++++++++++++++++++---------------------
x64.desktop | 2 +-
10 files changed, 86 insertions(+), 172 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index db7efba..7ea58a2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,4 @@ vice-2.4.24.tar.gz
vice-2.4.28.tar.gz
/vice-3.1.tar.gz
/vice-3.2.tar.gz
+/vice-3.4.tar.gz
diff --git a/sources b/sources
index 811b1be..deb1268 100644
--- a/sources
+++ b/sources
@@ -1,4 +1,4 @@
-58ba6b6653097898e059e0194615705a vice-3.2.tar.gz
-a4936bbfe1cc7b37d4fd93f0901de974 vice-largeicons.tar.bz2
-c944e3eeaac9c3962983423f8e7609e7 vice-miniicons.tar.bz2
-1e024cef652bc4bf929905b182ef689b vice-normalicons.tar.bz2
+SHA512 (vice-3.4.tar.gz) = 3d42e7bbe15ec6efac918d11e354052048dac8efdeedc64bb724cb8aaf2dd8ec7a2fc176ddbc93722ce7c680f06d3966efc10587c24e9643238315ded025c4b8
+SHA512 (vice-largeicons.tar.bz2) = c17e8dd44ee04b1af8f9a3adf91e1a5e0292adde23f263c3df7c0abe8d2a1060f8bf53ce9d4d79206ae21514c164c73ddda577cfcae7b4c1059d0fe782e9ef6e
+SHA512 (vice-miniicons.tar.bz2) = d3552ff91898ff6e79dbcf53945966b65d572440ae6b8bffe0beda95cc65ea1e997b02d2fed51b93dd69a20129661465945322196f48e794a1db925fae4af731
+SHA512 (vice-normalicons.tar.bz2) = 7f5c4a6482d8ca4b5e5797f7ac16330087dedaf512a83372a94b710018f558ee6202e462b91a3dfadc782f26b1b57f1c0c1df50263e996b7c75fadd8db862c3c
diff --git a/vice-cflags-ldflags-mixup.patch b/vice-cflags-ldflags-mixup.patch
new file mode 100644
index 0000000..d376785
--- /dev/null
+++ b/vice-cflags-ldflags-mixup.patch
@@ -0,0 +1,14 @@
+Patch configure.proto to not use its own CFLAGS with our LDFLAGS when checking
+time_t size, this results in a compilation error building the test.
+Note we patch configure.proto as configure.ac gets generated from that.
+diff -up vice-3.4.gtk/configure.proto~ vice-3.4.gtk/configure.proto
+--- vice-3.4.gtk/configure.proto~ 2020-08-22 16:39:21.000000000 +0200
++++ vice-3.4.gtk/configure.proto 2020-08-22 16:45:20.070343974 +0200
+@@ -429,7 +429,6 @@ fi
+
+
+ old_CFLAGS="$CFLAGS"
+-CFLAGS="$VICE_CFLAGS"
+ dnl Do these checks before any Gtk3 flags are added
+ AC_MSG_CHECKING(for time_t in time.h)
+ AC_CACHE_VAL(bu_cv_decl_time_t_time_h,
diff --git a/vice-datadir.patch b/vice-datadir.patch
new file mode 100644
index 0000000..ff227dc
--- /dev/null
+++ b/vice-datadir.patch
@@ -0,0 +1,23 @@
+Use netbsd settings for the paths as those match what we want.
+Note we patch configure.proto as configure.ac gets generated from that.
+diff -up vice-3.4/configure.proto.datadir vice-3.4/configure.proto
+--- vice-3.4/configure.proto.datadir 2020-08-22 16:24:14.294644292 +0200
++++ vice-3.4/configure.proto 2020-08-22 16:24:53.355124602 +0200
+@@ -3625,7 +3625,7 @@ AC_DEFINE_UNQUOTED(PREFIX, "$PREFIX", [W
+
+ dnl Path for keymaps, ROMs etc.
+ case "$host_os" in
+- netbsd*)
++ linux*)
+ VICEDIR="$PREFIX/share/vice"
+ AM_CONDITIONAL(ALTERNATE_DOCDIR, true)
+ ;;
+@@ -3633,7 +3633,7 @@ case "$host_os" in
+ VICEDIR="$PREFIX/lib/vice"
+ AM_CONDITIONAL(ALTERNATE_DOCDIR, true)
+ ;;
+- linux*)
++ foo*)
+ if test x"$host_cpu" = "xx86_64"; then
+ VICEDIR="$PREFIX/lib64/vice"
+ AM_CONDITIONAL(ALTERNATE_DOCDIR, false)
diff --git a/vice.spec b/vice.spec
index 80c0e56..43721bd 100644
--- a/vice.spec
+++ b/vice.spec
@@ -1,8 +1,8 @@
%define _legacy_common_support 1
Name: vice
-Version: 3.2
-Release: 7%{?dist}
+Version: 3.4
+Release: 1%{?dist}
Summary: Emulator for a variety of Commodore 8bit machines
Group: Applications/Emulators
License: GPLv2+
@@ -23,10 +23,8 @@ Source12: xcbm-ii.metainfo.xml
Source13: xpet.metainfo.xml
Source14: xplus4.metainfo.xml
Source15: xvic.metainfo.xml
-Patch1: vice-2.4.24-datadir.patch
-Patch2: vice-htmlview.patch
-Patch3: vice-norpath.patch
-Patch4: vice-new-ffmpeg.patch
+Patch1: vice-datadir.patch
+Patch2: vice-cflags-ldflags-mixup.patch
BuildRequires: gtk3-devel
BuildRequires: SDL2-devel
BuildRequires: libXext-devel
@@ -37,6 +35,8 @@ BuildRequires: libpng-devel
BuildRequires: ffmpeg-devel
BuildRequires: x264-devel
BuildRequires: lame-devel
+BuildRequires: flac-devel
+BuildRequires: mpg123-devel
BuildRequires: readline-devel
BuildRequires: pulseaudio-libs-devel
BuildRequires: libpcap-devel
@@ -49,6 +49,7 @@ BuildRequires: xa
BuildRequires: desktop-file-utils
BuildRequires: xorg-x11-font-utils
BuildRequires: libappstream-glib
+BuildRequires: gcc-c++ automake
Requires: %{name}-x64 = %{version}-%{release}
Requires: %{name}-x128 = %{version}-%{release}
@@ -144,14 +145,13 @@ sed -i 's/\r//' `find -name "*.h"`
sed -i 's/\r//' `find -name "*.c"`
sed -i 's/\r//' `find -name "*.cc"`
%patch1 -p1 -z .datadir
-%patch2 -p1 -z .htmlview
-%patch3 -p1 -z .norpath
-%patch4 -p1 -z .ffmpeg
+%patch2 -p1
for i in man/*.1 doc/*.info* README AUTHORS; do
iconv -f ISO-8859-1 -t UTF8 $i > $i.tmp
touch -r $i $i.tmp
mv $i.tmp $i
done
+./autogen.sh
popd
mv %{name}-%{version} %{name}-%{version}.gtk
@@ -159,12 +159,16 @@ cp -a %{name}-%{version}.gtk %{name}-%{version}.sdl
%build
-COMMON_FLAGS="--enable-ethernet --enable-parsid --without-oss --disable-arch --enable-external-ffmpeg"
+# The build fails with linking errors when enabling LTO.
+# The build fails because of the .a archives from ARCH_LIBS being passed on the
+# cmdline twice. Fixing this leads to errors about undefined symbols because
+# the various .a archives from ARCH_LIBS have interdependencies in 2 directions,
+# so there is no working order in which they can be passed which resolves all
+# symbols in one go. Passing ARCH_LIBS twice, as the upstream Makefile does
+# works around this, but this breaks LTO. So lets just disable LTO for now.
+%define _lto_cflags %{nil}
-# workaround needed to fix incorrect toolchain check in configure script
-export toolchain_check=no
-export CC=gcc
-export CXX=g++
+COMMON_FLAGS="--enable-ethernet --enable-parsid --without-oss --disable-arch --enable-external-ffmpeg"
# Some of the code uses GNU / XOPEN libc extensions
export CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE=1"
@@ -203,16 +207,25 @@ pushd %{name}-%{version}.sdl
popd
popd
-#find_lang %%{name}
+rm $RPM_BUILD_ROOT%{_infodir}/dir
+
+# vice installs a bunch of docs under /usr/share/doc/vice which are not really
+# end user oriented. Remove these.
+rm $RPM_BUILD_ROOT%{_docdir}/%{name}/*.txt
+rm $RPM_BUILD_ROOT%{_docdir}/%{name}/COPYING
+rm $RPM_BUILD_ROOT%{_docdir}/%{name}/GTK3-*.md
+rm $RPM_BUILD_ROOT%{_docdir}/%{name}/Lato-*
+
+# Fixup wrongly installed images for the html-docs
+mkdir $RPM_BUILD_ROOT%{_docdir}/%{name}/images
+mv $RPM_BUILD_ROOT%{_docdir}/%{name}/{*.png,*.gif,*.svg} \
+ $RPM_BUILD_ROOT%{_docdir}/%{name}/images
+
+# For the manual entry in the help menu
+install -p -m 644 %{name}-%{version}.gtk/doc/%{name}.pdf \
+ $RPM_BUILD_ROOT%{_docdir}/%{name}
+ln -s ../doc/%{name} $RPM_BUILD_ROOT%{_datadir}/%{name}/doc
-rm -f $RPM_BUILD_ROOT%{_infodir}/dir
-# for some reason make install drops a .txt and .pdf in the infodir ... ?
-rm -f $RPM_BUILD_ROOT%{_infodir}/%{name}.txt*
-rm -f $RPM_BUILD_ROOT%{_infodir}/%{name}.pdf*
-# vice installs its docs under /usr/share/vice/doc, we install them ourselves
-# with %%doc, so nuke vice's install and create a symlink for the help function
-rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/doc
-ln -s ../doc/%{name}-%{version} $RPM_BUILD_ROOT%{_datadir}/%{name}/doc
# for use of the -data package with libsidplay bases sid players
mkdir -p $RPM_BUILD_ROOT%{_datadir}/sidplayfp
for i in basic chargen kernal; do
@@ -244,33 +257,11 @@ for i in */apps/*icon.png; do mv $i `echo $i|sed s/icon//`; done
popd
-%post common
-/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
-touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
-
-%preun common
-if [ "$1" = 0 ]; then
- /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
-fi
-
-%postun common
-if [ $1 -eq 0 ] ; then
- touch --no-create %{_datadir}/icons/hicolor &>/dev/null
- gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
-fi
-
-%posttrans common
-gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
-
-
%files
%files common
-%doc %{name}-%{version}.gtk/AUTHORS %{name}-%{version}.gtk/ChangeLog
-%doc %{name}-%{version}.gtk/FEEDBACK %{name}-%{version}.gtk/README
-%doc %{name}-%{version}.gtk/doc/iec-bus.txt
-%doc %{name}-%{version}.gtk/doc/html/*.html
-%doc %{name}-%{version}.gtk/doc/html/images
+%doc %{_docdir}/%{name}
+%license %{name}-%{version}.gtk/COPYING
%{_bindir}/c1541
%{_bindir}/cartconv
%{_bindir}/petcat
@@ -316,6 +307,11 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%changelog
+* Sat Aug 22 2020 Hans de Goede <j.w.r.degoede(a)gmail.com> - 3.4-1
+- New upstream release 3.4
+- Fix Fedora 33 FTBFS
+- Remove obsolete gtk-icon-cache and instlal-info scriptlets
+
* Wed Aug 19 2020 RPM Fusion Release Engineering <leigh123linux(a)gmail.com> - 3.2-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
diff --git a/x64.desktop b/x64.desktop
index 3247a46..8d14375 100644
--- a/x64.desktop
+++ b/x64.desktop
@@ -1,7 +1,7 @@
[Desktop Entry]
Name=X64 (Vice)
Comment=Commodore 64 Emulator
-Exec=x64
+Exec=x64sc
Icon=c64
Terminal=false
StartupNotify=true
4 years, 3 months