diff --git a/wxmp3gain-4.0-src.tar.gz b/wxmp3gain-4.0-src.tar.gz new file mode 100644 index 0000000..a9a963c --- /dev/null +++ b/wxmp3gain-4.0-src.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:10ffaf8f7cb1231df01ba40459e688112f8f0b35fea16076a5150bcb795e6d5f +size 209292 diff --git a/wxmp3gain-docs.patch b/wxmp3gain-docs.patch new file mode 100644 index 0000000..b1aba1f --- /dev/null +++ b/wxmp3gain-docs.patch @@ -0,0 +1,12 @@ +Index: wxmp3gain-4.0/CMakeLists.txt +=================================================================== +--- wxmp3gain-4.0.orig/CMakeLists.txt ++++ wxmp3gain-4.0/CMakeLists.txt +@@ -35,7 +35,6 @@ target_link_libraries(wxmp3gain ${wxWidg + if(UNIX) + install(TARGETS "wxmp3gain" DESTINATION "bin") + install(DIRECTORY "resource/" DESTINATION "share/${PROJECT_NAME}/resource/") +- install(DIRECTORY "docs/" DESTINATION "share/doc/${PROJECT_NAME}/") + install(FILES "debian/menu/icon32x32.png" DESTINATION "share/icons/hicolor/32x32/apps/" RENAME "${PROJECT_NAME}.png") + install(FILES "debian/menu/icon48x48.png" DESTINATION "share/icons/hicolor/48x48/apps/" RENAME "${PROJECT_NAME}.png") + install(FILES "debian/menu/icon64x64.png" DESTINATION "share/icons/hicolor/64x64/apps/" RENAME "${PROJECT_NAME}.png") diff --git a/wxmp3gain-makefile.patch b/wxmp3gain-makefile.patch deleted file mode 100644 index 88defb4..0000000 --- a/wxmp3gain-makefile.patch +++ /dev/null @@ -1,91 +0,0 @@ -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 index faba756..f445d50 100644 --- a/wxmp3gain.changes +++ b/wxmp3gain.changes @@ -1,3 +1,18 @@ +------------------------------------------------------------------- +Mon Apr 22 13:11:06 UTC 2019 - Luigi Baldoni + +- Update to version 4.0 + * Bug fix for unicode filenames + * Added Turkish translation + * Added Croatian translation + * Code refactor in make/build process + +- Switched build to cmake + +- Dropped wxmp3gain-makefile.patch + +- Added wxmp3gain-docs.patch + ------------------------------------------------------------------- Sun Feb 11 12:59:48 UTC 2018 - aloisio@gmx.com diff --git a/wxmp3gain.spec b/wxmp3gain.spec index d10e5ed..7bc2edd 100644 --- a/wxmp3gain.spec +++ b/wxmp3gain.spec @@ -1,7 +1,7 @@ # # spec file for package wxmp3gain # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 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 @@ -12,20 +12,21 @@ # 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/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: wxmp3gain -Version: 3.7 +Version: 4.0 Release: 0 Summary: Front-end for mp3gain based on wxWidgets -License: GPL-3.0+ +License: GPL-3.0-or-later 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 +Source0: https://sourceforge.net/projects/wxmp3gain/files/%{version}/wxmp3gain-%{version}-src.tar.gz +# PATCH-FEATURE-OPENSUSE wxmp3gain-docs.patch aloisio@gmx.com -- do not install docs +Patch1: wxmp3gain-docs.patch +BuildRequires: cmake BuildRequires: dos2unix BuildRequires: gcc-c++ BuildRequires: hicolor-icon-theme @@ -41,15 +42,16 @@ A front-end for mp3gain based on the wxWidgets toolkit. %lang_package %prep -%setup -q -n %{name} -%patch0 -p1 -dos2unix docs/CHANGELOG +%setup -q +%patch1 -p1 +dos2unix docs/AUTHORS docs/CHANGELOG docs/README docs/TODO %build +%cmake make %{?_smp_mflags} %install -%make_install +%cmake_install %suse_update_desktop_file %{name} AudioVideoEditing %files @@ -58,7 +60,6 @@ make %{?_smp_mflags} %{_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 @@ -69,12 +70,16 @@ make %{?_smp_mflags} %dir %{_datadir}/%{name}/resource/msg/cs %dir %{_datadir}/%{name}/resource/msg/de %dir %{_datadir}/%{name}/resource/msg/es +%dir %{_datadir}/%{name}/resource/msg/hr_HR %dir %{_datadir}/%{name}/resource/msg/pt_BR %dir %{_datadir}/%{name}/resource/msg/ru +%dir %{_datadir}/%{name}/resource/msg/tr %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(hr) %{_datadir}/%{name}/resource/msg/hr_HR/%{name}.mo %lang(pt) %{_datadir}/%{name}/resource/msg/pt_BR/%{name}.mo %lang(ru) %{_datadir}/%{name}/resource/msg/ru/%{name}.mo +%lang(tr) %{_datadir}/%{name}/resource/msg/tr/%{name}.mo %changelog diff --git a/wxmp3gain_3.7_src.tar.gz b/wxmp3gain_3.7_src.tar.gz deleted file mode 100644 index a8a93a6..0000000 --- a/wxmp3gain_3.7_src.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6ab5aaa300c579edb5c3b2c0c3c419c40f5c05a56ff5eb8ece00341e13a54710 -size 157552