From 6c19a7e6fee37198778ba5f7ccb234de7b63a96c7daa9376dbd3eb13312da0ee Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Mon, 25 Nov 2024 09:52:20 +0000 Subject: [PATCH] NOTE: This is untested! - Replace wxWidgets-3_0-devel for wxWidgets-devel BuildRequires: Package builds just fine with the newer 3.2 version. OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/wxmp3gain?expand=0&rev=14 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + wxmp3gain-4.0-src.tar.gz | 3 ++ wxmp3gain-docs.patch | 12 ++++++ wxmp3gain.changes | 36 +++++++++++++++++ wxmp3gain.spec | 84 ++++++++++++++++++++++++++++++++++++++++ 6 files changed, 159 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 wxmp3gain-4.0-src.tar.gz create mode 100644 wxmp3gain-docs.patch create mode 100644 wxmp3gain.changes create mode 100644 wxmp3gain.spec 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-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.changes b/wxmp3gain.changes new file mode 100644 index 0000000..493dbcf --- /dev/null +++ b/wxmp3gain.changes @@ -0,0 +1,36 @@ +------------------------------------------------------------------- +Thu Nov 21 11:55:52 UTC 2024 - Bjørn Lie + +- Replace wxWidgets-3_0-devel for wxWidgets-devel BuildRequires: + Package builds just fine with the newer 3.2 version. + +------------------------------------------------------------------- +Tue Feb 20 15:26:13 UTC 2024 - Dominique Leuenberger + +- Use %autosetup macro. Allows to eliminate the usage of deprecated + %patchN + +------------------------------------------------------------------- +Sat Apr 11 21:21:38 UTC 2020 - Luigi Baldoni + +- Do not recommend lang package + +------------------------------------------------------------------- +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 + +- Initial package (v. 3.7) diff --git a/wxmp3gain.spec b/wxmp3gain.spec new file mode 100644 index 0000000..3a24e9a --- /dev/null +++ b/wxmp3gain.spec @@ -0,0 +1,84 @@ +# +# spec file for package wxmp3gain +# +# 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 +# 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 https://bugs.opensuse.org/ +# + + +Name: wxmp3gain +Version: 4.0 +Release: 0 +Summary: Front-end for mp3gain based on wxWidgets +License: GPL-3.0-or-later +Group: Productivity/Multimedia/Sound/Editors and Convertors +URL: https://wxmp3gain.sourceforge.io +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 +BuildRequires: pkgconfig +BuildRequires: update-desktop-files +BuildRequires: wxWidgets-devel +Requires: mp3gain + +%description +A front-end for mp3gain based on the wxWidgets toolkit. + +%lang_package + +%prep +%autosetup -p1 + +dos2unix docs/AUTHORS docs/CHANGELOG docs/README docs/TODO + +%build +%cmake +make %{?_smp_mflags} + +%install +%cmake_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 +%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/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