commit 3f2fc5c7254b818d299a7a3323028468dcc1d3d52308598056f6504810e120fd Author: Dave Plater Date: Mon Feb 12 07:03:08 2018 +0000 Accepting request 575416 from home:alois:branches:multimedia:apps - Initial package (v. 3.7) OBS-URL: https://build.opensuse.org/request/show/575416 OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/wxmp3gain?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/wxmp3gain-makefile.patch b/wxmp3gain-makefile.patch new file mode 100644 index 0000000..88defb4 --- /dev/null +++ b/wxmp3gain-makefile.patch @@ -0,0 +1,91 @@ +Index: wxmp3gain/makefile +=================================================================== +--- wxmp3gain.orig/makefile ++++ wxmp3gain/makefile +@@ -9,26 +9,26 @@ INSTALL_SHARE_DIR = $(DESTDIR)$(PREFIX)/ + APP_SHARE_DIR = $(INSTALL_SHARE_DIR)/$(APP_NAME) + DOC_SHARE_DIR = $(INSTALL_SHARE_DIR)/doc/$(APP_NAME) + +-COMMON_COMPILE_FLAGS = -Wall -ansi -pthread -O2 ++COMMON_COMPILE_FLAGS = -Wall -ansi -pthread -O2 $(RPM_OPT_FLAGS) -std=c++11 + COMMON_LINK_FLAGS = -pthread -s + + CPPFLAGS = $(COMMON_COMPILE_FLAGS) `wx-config --cxxflags --debug=no --unicode=yes` + LINKFLAGS = $(COMMON_LINK_FLAGS) `wx-config --libs std,aui --debug=no --unicode=yes` + + all: +- @g++ $(CPPFLAGS) -c $(SRC_DIR)/*.cpp +- @g++ -o $(APP_NAME) *.o $(LINKFLAGS) ++ g++ $(CPPFLAGS) -c $(SRC_DIR)/*.cpp ++ g++ -o $(APP_NAME) *.o $(LINKFLAGS) + +- @mkdir -p ./resource/msg/cs/ +- @mkdir -p ./resource/msg/de/ +- @mkdir -p ./resource/msg/es/ +- @mkdir -p ./resource/msg/pt_BR/ +- @mkdir -p ./resource/msg/ru/ +- @msgfmt ./msg/cs.po -o ./resource/msg/cs/$(APP_NAME).mo +- @msgfmt ./msg/de.po -o ./resource/msg/de/$(APP_NAME).mo +- @msgfmt ./msg/es.po -o ./resource/msg/es/$(APP_NAME).mo +- @msgfmt ./msg/pt_BR.po -o ./resource/msg/pt_BR/$(APP_NAME).mo +- @msgfmt ./msg/ru.po -o ./resource/msg/ru/$(APP_NAME).mo ++ mkdir -p ./resource/msg/cs/ ++ mkdir -p ./resource/msg/de/ ++ mkdir -p ./resource/msg/es/ ++ mkdir -p ./resource/msg/pt_BR/ ++ mkdir -p ./resource/msg/ru/ ++ msgfmt ./msg/cs.po -o ./resource/msg/cs/$(APP_NAME).mo ++ msgfmt ./msg/de.po -o ./resource/msg/de/$(APP_NAME).mo ++ msgfmt ./msg/es.po -o ./resource/msg/es/$(APP_NAME).mo ++ msgfmt ./msg/pt_BR.po -o ./resource/msg/pt_BR/$(APP_NAME).mo ++ msgfmt ./msg/ru.po -o ./resource/msg/ru/$(APP_NAME).mo + + clean: + @rm -f *.o *.depend *.layout +@@ -38,29 +38,25 @@ clean: + @rm -f $(APP_NAME) + + install: +- @mkdir -p $(INSTALL_BIN_DIR) +- @cp $(APP_NAME) $(INSTALL_BIN_DIR) ++ mkdir -p $(INSTALL_BIN_DIR) ++ cp $(APP_NAME) $(INSTALL_BIN_DIR) + +- @mkdir -p $(APP_SHARE_DIR) +- @cp -r ./resource $(APP_SHARE_DIR) ++ mkdir -p $(APP_SHARE_DIR) ++ cp -r ./resource $(APP_SHARE_DIR) + +- @mkdir -p $(DOC_SHARE_DIR) +- @cp -r ./docs/* $(DOC_SHARE_DIR) +- +- @mkdir -p $(INSTALL_SHARE_DIR)/icons/hicolor/32x32/apps +- @mkdir -p $(INSTALL_SHARE_DIR)/icons/hicolor/48x48/apps +- @mkdir -p $(INSTALL_SHARE_DIR)/icons/hicolor/64x64/apps +- @mkdir -p $(INSTALL_SHARE_DIR)/icons/hicolor/128x128/apps +- @mkdir -p $(INSTALL_SHARE_DIR)/menu +- @mkdir -p $(INSTALL_SHARE_DIR)/pixmaps +- @mkdir -p $(INSTALL_SHARE_DIR)/applications +- @cp ./debian/menu/icon32x32.png $(INSTALL_SHARE_DIR)/icons/hicolor/32x32/apps/$(APP_NAME).png +- @cp ./debian/menu/icon48x48.png $(INSTALL_SHARE_DIR)/icons/hicolor/48x48/apps/$(APP_NAME).png +- @cp ./debian/menu/icon64x64.png $(INSTALL_SHARE_DIR)/icons/hicolor/64x64/apps/$(APP_NAME).png +- @cp ./debian/menu/icon128x128.png $(INSTALL_SHARE_DIR)/icons/hicolor/128x128/apps/$(APP_NAME).png +- @cp ./debian/menu/icon.xpm $(INSTALL_SHARE_DIR)/pixmaps/$(APP_NAME).xpm +- @cp ./debian/menu/$(APP_NAME) $(INSTALL_SHARE_DIR)/menu/$(APP_NAME) +- @cp ./debian/menu/$(APP_NAME).desktop $(INSTALL_SHARE_DIR)/applications/$(APP_NAME).desktop ++ mkdir -p $(INSTALL_SHARE_DIR)/icons/hicolor/32x32/apps ++ mkdir -p $(INSTALL_SHARE_DIR)/icons/hicolor/48x48/apps ++ mkdir -p $(INSTALL_SHARE_DIR)/icons/hicolor/64x64/apps ++ mkdir -p $(INSTALL_SHARE_DIR)/icons/hicolor/128x128/apps ++ mkdir -p $(INSTALL_SHARE_DIR)/menu ++ mkdir -p $(INSTALL_SHARE_DIR)/pixmaps ++ mkdir -p $(INSTALL_SHARE_DIR)/applications ++ cp ./debian/menu/icon32x32.png $(INSTALL_SHARE_DIR)/icons/hicolor/32x32/apps/$(APP_NAME).png ++ cp ./debian/menu/icon48x48.png $(INSTALL_SHARE_DIR)/icons/hicolor/48x48/apps/$(APP_NAME).png ++ cp ./debian/menu/icon64x64.png $(INSTALL_SHARE_DIR)/icons/hicolor/64x64/apps/$(APP_NAME).png ++ cp ./debian/menu/icon128x128.png $(INSTALL_SHARE_DIR)/icons/hicolor/128x128/apps/$(APP_NAME).png ++ cp ./debian/menu/icon.xpm $(INSTALL_SHARE_DIR)/pixmaps/$(APP_NAME).xpm ++ cp ./debian/menu/$(APP_NAME).desktop $(INSTALL_SHARE_DIR)/applications/$(APP_NAME).desktop + + uninstall: + @rm -f $(INSTALL_BIN_DIR)/$(APP_NAME) diff --git a/wxmp3gain.changes b/wxmp3gain.changes new file mode 100644 index 0000000..faba756 --- /dev/null +++ b/wxmp3gain.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Sun Feb 11 12:59:48 UTC 2018 - aloisio@gmx.com + +- Initial package (v. 3.7) diff --git a/wxmp3gain.spec b/wxmp3gain.spec new file mode 100644 index 0000000..303aa4a --- /dev/null +++ b/wxmp3gain.spec @@ -0,0 +1,80 @@ +# +# spec file for package wxmp3gain +# +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +Name: wxmp3gain +Version: 3.7 +Release: 0 +Summary: Front-end for mp3gain based on wxWidgets +License: GPL-3.0+ +Group: Productivity/Multimedia/Sound/Editors and Convertors +URL: https://wxmp3gain.sourceforge.io +Source0: http://sourceforge.net/projects/wxmp3gain/files/%{version}/wxmp3gain_%{version}_src.tar.gz +# PATCH-FIX-OPENSUSE wxmp3gain-makefile.patch aloisio@gmx.com -- sets suitable paths and flags +Patch0: wxmp3gain-makefile.patch +BuildRequires: dos2unix +BuildRequires: gcc-c++ +BuildRequires: hicolor-icon-theme +BuildRequires: pkgconfig +BuildRequires: update-desktop-files +BuildRequires: wxWidgets-devel +Recommends: %{name}-lang = %{version} +Requires: mp3gain + +%description +A front-end for mp3gain based on the wxWidgets toolkit. + +%lang_package + +%prep +%setup -q -n %{name} +%patch0 -p1 +dos2unix docs/CHANGELOG + +%build +make %{?_smp_mflags} + +%install +%make_install +%suse_update_desktop_file %{name} AudioVideoEditing + +%files +%doc docs/AUTHORS docs/CHANGELOG docs/README docs/TODO +%license docs/COPYING +%{_bindir}/%{name} +%{_datadir}/applications/%{name}.desktop +%{_datadir}/icons/hicolor/*/apps/%{name}.png +%{_datadir}/pixmaps/%{name}.xpm +%dir %{_datadir}/%{name} +%dir %{_datadir}/%{name}/resource +%{_datadir}/%{name}/resource/*.ico +%{_datadir}/%{name}/resource/toolbar + +%files lang +%dir %{_datadir}/%{name}/resource/msg +%dir %{_datadir}/%{name}/resource/msg/cs +%dir %{_datadir}/%{name}/resource/msg/de +%dir %{_datadir}/%{name}/resource/msg/es +%dir %{_datadir}/%{name}/resource/msg/pt_BR +%dir %{_datadir}/%{name}/resource/msg/ru +%lang(cs) %{_datadir}/%{name}/resource/msg/cs/%{name}.mo +%lang(de) %{_datadir}/%{name}/resource/msg/de/%{name}.mo +%lang(es) %{_datadir}/%{name}/resource/msg/es/%{name}.mo +%lang(pt) %{_datadir}/%{name}/resource/msg/pt_BR/%{name}.mo +%lang(ru) %{_datadir}/%{name}/resource/msg/ru/%{name}.mo + +%changelog diff --git a/wxmp3gain_3.7_src.tar.gz b/wxmp3gain_3.7_src.tar.gz new file mode 100644 index 0000000..a8a93a6 --- /dev/null +++ b/wxmp3gain_3.7_src.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6ab5aaa300c579edb5c3b2c0c3c419c40f5c05a56ff5eb8ece00341e13a54710 +size 157552