File Musicsystem.spec of Package Musicsystem
#
# spec file for package Musiksystem
#
# Copyright (c) 2024 - 2025 E W
#
# 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 <unkown>
#
Name: Musicsystem
Version: 3.5.4.36
Release: 0
Summary: Musicdatabase management
License: GPL-3.0-or-later
URL: https://codeberg.org/catfood/Musicsystem
Source0: %{name}-%{version}.tar.xz
Source1: %{name}.desktop
Group: Productivity/Multimedia/Other
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: cmake >= 3.14
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
BuildRequires: cmake(Qt5Core)
BuildRequires: cmake(Qt5Widgets)
BuildRequires: cmake(Qt5LinguistTools)
BuildRequires: cmake(SqlWorker)
BuildRequires: cmake(UmlauteWeb)
BuildRequires: cmake(Qt5Keychain)
BuildRequires: libmusicbrainz5-devel
#Requires: libMySqlWorker3-lang
%if 0%{?suse_version}
Requires: libqt5-sql-mysql
%endif
%if 0%{?fedora}
Requires: qt5-qtbase-mysql
BuildRequires: glibc-all-langpacks
%endif
%description
A tool for managing music representations (CDs or files) with the help of a database.
%prep
%setup -q -n %{name}-%{version}
%build
%cmake
%cmake_build
%install
%cmake_install
for i in 16 24 32 64 128 256; do
install -D -m0644 resources/desktop-icons/musicsystem_${i}x${i}-32.png %{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/apps/musicsystem.png
done
install -D -m0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop
%files
%defattr(-,root,root,-)
%{_bindir}/*
%{_datadir}/icons/hicolor/*/apps/musicsystem.png
%{_datadir}/applications/%{name}.desktop
%if 0%{?suse_version}
%lang_package -r libSqlWorker4-lang
%files lang
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/i18n
%{_datadir}/%{name}/i18n/
%endif
%if 0%{?fedora}
%define lang_subpkg() \
%package langpack-%{1}\
Summary: %{2} language data for %{name}\
BuildArch: noarch\
Requires: %{name} = %{version}-%{release}\
Requires: libSqlWorker4-langpack-%{3}\
Supplements: (%{name} = %{version}-%{release} and langpacks-%{1})\
\
%description langpack-%{1}\
%{2} language data for %{name}.\
\
%files langpack-%{1}\
%{_datadir}/%{name}/i18n/%{name}_%{1}.qm
%lang_subpkg de German de_DE
%endif
%changelog
* Sun Jan 05 2025 W. <webe.info@gmx-topmail.de> - 3.5.4.36-0
- dependency update
* Wed Oct 16 2024 W. <webe.info@gmx-topmail.de> - 3.5.4.35-0
- correct handling of lang package
* Tue Oct 15 2024 W. <webe.info@gmx-topmail.de> - 3.5.4.34-0
- correcting barcode handling
- add lang package
* Fri Aug 16 2024 W. <webe.info@gmx-topmail.de> - 3.5.4.32-2
- remembering of values of owners and locations
* Thu Aug 15 2024 W. <webe.info@gmx-topmail.de> - 3.5.3.23-0
- make application ready for publication
* Tue Oct 10 2023 W. <webe.info@gmx-topmail.de> - 3.4.2.6-0
- fix displaying of media type
- fix segfault in online search
* Sat Jul 01 2023 W. <webe.info@gmx-topmail.de>
- change default sorting of entries
- correct resizing behaviour of table views
* Thu Mar 16 2023 W. <webe.info@gmx-topmail.de>
- online search show now also artist
- adoption to version 2 of libUmlauteWeb
- bugfixes
* Tue Mar 14 2023 W. <webe.info@gmx-topmail.de>
- online search for albums containing a specific title
- local search with multiple creteria
* Tue Oct 11 2022 W. <webe.info@gmx-topmail.de>
- initial version