Projects
home:Kieltux:branches:Multimedia
qmp3gain
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 4
View file
_service:set_version:qmp3gain.spec
Added
@@ -0,0 +1,97 @@ +# +# spec file for package qmp3gain +# +# Copyright (c) 2024 Packman Team <packman@links2linux.de> +# +# 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.links2linux.org/ +# + + +Name: qmp3gain +Version: 0.9.6 +Release: 0 +Summary: Qt frontend for mp3gain +License: GPL-2.0-or-later +Group: Productivity/Multimedia/Sound/Editors and Convertors +URL: https://qmp3gain.sourceforge.io +Source0: %{name}-%{version}.tar.xz +BuildRequires: fdupes +BuildRequires: pkgconfig +BuildRequires: sqlite3 +BuildRequires: update-desktop-files +BuildRequires: pkgconfig(Qt5Help) +BuildRequires: pkgconfig(Qt5Multimedia) +BuildRequires: pkgconfig(Qt5Widgets) +BuildRequires: pkgconfig(Qt5Xml) +Requires: mp3gain +Supplements: mp3gain + +%description +QMP3Gain is a frontend for mp3gain which analyses and adjusts your +media files so that they have the same volume without the need to +reencode the files. + +%lang_package + +%prep +%autosetup -p1 + +%build +export QT_HASH_SEED=0 +%qmake5 +%make_build + +%install +ts='1234567890' +date="`date -u --iso-8601=seconds -d @${ts} | sed 's@+.*@@'`" +TimeStamp="${date}" +LastRegisterTime="${date}.123" +%qmake5_install +install -D -m0644 resources/linux/icons/hicolor/256x256/qmp3gain.png %{buildroot}%{_datadir}/pixmaps/%{name}.png +%suse_update_desktop_file -r %{name} Qt AudioVideo AudioVideoEditing + +%find_lang %{name} --with-qt + +if pushd %{buildroot}%{_datadir}/%{name}/help +then + sqlite3 qmp3gain.qhc .dump > dump.old + sqlite3 qmp3gain.qhc "UPDATE SettingsTable SET Value = '${LastRegisterTime}' WHERE Key = 'LastRegisterTime'" + sqlite3 qmp3gain.qhc "UPDATE SettingsTable SET Value = ${ts} WHERE Key = 'CreationTime'" + if grep -qw TimeStampTable dump.old + then + sqlite3 qmp3gain.qhc "UPDATE TimeStampTable SET TimeStamp = '${TimeStamp}' WHERE NamespaceId = 1" + fi + sqlite3 qmp3gain.qhc .dump > dump.new + if diff -u dump.old dump.new + then + exit 12 + fi + rm -f dump.old dump.new + touch -d "@${ts}" * . +fi + +%fdupes %{buildroot}%{_datadir} + +%files +%license LICENSE.txt +%{_bindir}/%{name} +%dir %{_datadir}/%{name} +%{_datadir}/applications/%{name}.desktop +%{_datadir}/icons/hicolor/* +%{_datadir}/pixmaps/%{name}.png +%{_datadir}/%{name}/help +%{_datadir}/%{name}/resources + +%files lang -f %{name}.lang +%dir %{_datadir}/%{name}/translations + +%changelog
View file
_service
Changed
@@ -1,5 +1,5 @@ <services> - <service name="tar_scm" mode="disabled"> + <service name="tar_scm"> <param name="filename">qmp3gain</param> <param name="revision">9dc09b7b31549d563c73632c895848b322079dff</param> <param name="scm">git</param> @@ -9,9 +9,9 @@ <param name="versionrewrite-pattern">v?(^++)(.*)</param> <param name="versionrewrite-replacement">\1</param> </service> - <service name="recompress" mode="disabled"> + <service name="recompress"> <param name="file">*.tar</param> <param name="compression">xz</param> </service> - <service name="set_version" mode="disabled"/> + <service name="set_version"/> </services>
View file
_service:recompress:tar_scm:qmp3gain-0.9.6.tar.xz
Added
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.