--- qsampler/trunk/qsampler.spec.in 2016/09/25 18:20:13 2997 +++ qsampler/trunk/qsampler.spec.in 2022/08/31 08:02:30 4044 @@ -1,6 +1,24 @@ +# +# spec file for package qsampler +# +# Copyright (C) 2004-2022, rncbc aka Rui Nuno Capela. All rights reserved. +# Copyright (C) 2007,2008,2015 Christian Schoenebeck +# +# 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/ +# + %define name @PACKAGE_TARNAME@ %define version @PACKAGE_VERSION@ -%define release 18 +%define release 50.2 %define _prefix @ac_prefix@ @@ -8,6 +26,12 @@ %define debug_package %{nil} %endif +%if 0%{?fedora_version} >= 34 || 0%{?suse_version} > 1500 || ( 0%{?sle_version} == 150200 && 0%{?is_opensuse} ) +%define qt_major_version 6 +%else +%define qt_major_version 5 +%endif + Summary: A LinuxSampler Qt GUI interface Name: %{name} Version: %{version} @@ -16,19 +40,54 @@ Group: Productivity/Multimedia/Sound/Midi Source0: %{name}-%{version}.tar.gz URL: http://qsampler.sourceforge.net/ -#Packager: rncbc.org +Packager: rncbc.org BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot -#BuildRequires: libqt4-devel >= 4.4 -%if %{defined fedora} +BuildRequires: coreutils BuildRequires: pkgconfig -BuildRequires: qt5-qtbase-devel >= 5.1, qt5-linguist -BuildRequires: qt5-qtx11extras-devel >= 5.1 +BuildRequires: glibc-devel + +%if %{defined fedora} || 0%{?suse_version} > 1500 +BuildRequires: gcc-c++ >= 8 +%define CXX /usr/bin/g++ %else -BuildRequires: pkg-config -BuildRequires: libqt5-qtbase-devel >= 5.1, libqt5-linguist -BuildRequires: libqt5-qtx11extras-devel >= 5.1 +BuildRequires: gcc8-c++ >= 8 +%define CXX /usr/bin/g++-8 +%endif + +BuildRequires: cmake >= 3.19 +%if %{defined fedora} +%if 0%{qt_major_version} == 6 +BuildRequires: qt6-qtbase-devel >= 6.1 +BuildRequires: qt6-qttools-devel +BuildRequires: qt6-qtsvg-devel +BuildRequires: qt6-linguist +%else +BuildRequires: qt5-qtbase-devel >= 5.1 +BuildRequires: qt5-qttools-devel +BuildRequires: qt5-qtsvg-devel +BuildRequires: qt5-linguist +%endif +%else +%if 0%{qt_major_version} == 6 +%if 0%{?sle_version} == 150200 && 0%{?is_opensuse} +BuildRequires: qtbase6-static >= 6.3 +BuildRequires: qttools6-static +BuildRequires: qttranslations6-static +BuildRequires: qtsvg6-static +%else +BuildRequires: qt6-base-devel >= 6.1 +BuildRequires: qt6-tools-devel +BuildRequires: qt6-svg-devel +BuildRequires: qt6-linguist-devel +%endif +%else +BuildRequires: libqt5-qtbase-devel >= 5.1 +BuildRequires: libqt5-qttools-devel +BuildRequires: libqt5-qtsvg-devel +BuildRequires: libqt5-linguist-devel +%endif %endif BuildRequires: liblscp-devel >= 0.5.6 BuildRequires: libgig-devel >= 3.3.0 @@ -39,22 +98,26 @@ interface of LinuxSampler Control Protocol (LSCP) (http://www.linuxsampler.org). %prep -%setup -[ -f Makefile.git ] && %__make -f Makefile.git +%setup -q %build -%configure -%__make %{?_smp_mflags} +%if 0%{?sle_version} == 150200 && 0%{?is_opensuse} +source /opt/qt6.3-static/bin/qt6.3-static-env.sh +%endif +CXX=%{CXX} \ +cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -Wno-dev -B build +cmake --build build %{?_smp_mflags} %install -%__make DESTDIR="%{buildroot}" install +DESTDIR="%{buildroot}" \ +cmake --install build %clean -[ -d "%{buildroot}" -a "%{buildroot}" != "" ] && %__rm -rf "%{buildroot}" +[ -d "%{buildroot}" -a "%{buildroot}" != "/" ] && %__rm -rf "%{buildroot}" %files %defattr(-,root,root) -%doc AUTHORS COPYING ChangeLog README TODO +%doc README LICENSE TRANSLATORS ChangeLog #dir %{_datadir}/mime #dir %{_datadir}/mime/packages #dir %{_datadir}/applications @@ -67,21 +130,64 @@ %dir %{_datadir}/icons/hicolor/scalable/mimetypes %dir %{_datadir}/%{name} %dir %{_datadir}/%{name}/translations -%dir %{_datadir}/appdata +%dir %{_datadir}/metainfo #dir %{_datadir}/man #dir %{_datadir}/man/man1 +#dir %{_datadir}/man/fr +#dir %{_datadir}/man/fr/man1 %{_bindir}/%{name} -%{_datadir}/mime/packages/%{name}.xml -%{_datadir}/applications/%{name}.desktop -%{_datadir}/icons/hicolor/32x32/apps/%{name}.png -%{_datadir}/icons/hicolor/32x32/mimetypes/application-x-%{name}*.png -%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg -%{_datadir}/icons/hicolor/scalable/mimetypes/application-x-%{name}*.svg +%{_datadir}/mime/packages/org.rncbc.%{name}.xml +%{_datadir}/applications/org.rncbc.%{name}.desktop +%{_datadir}/icons/hicolor/32x32/apps/org.rncbc.%{name}.png +%{_datadir}/icons/hicolor/scalable/apps/org.rncbc.%{name}.svg +%{_datadir}/icons/hicolor/32x32/mimetypes/org.rncbc.%{name}.application-x-%{name}*.png +%{_datadir}/icons/hicolor/scalable/mimetypes/org.rncbc.%{name}.application-x-%{name}*.svg %{_datadir}/%{name}/translations/%{name}_*.qm -%{_datadir}/appdata/%{name}.appdata.xml +%{_datadir}/metainfo/org.rncbc.%{name}.metainfo.xml %{_datadir}/man/man1/%{name}.1.gz +%{_datadir}/man/fr/man1/%{name}.1.gz %changelog +* Sat Apr 2 2022 Rui Nuno Capela 0.9.6 +- A Spring'22 Release. +* Sun Jan 9 2022 Rui Nuno Capela 0.9.5 +- A Winter'22 Release. +* Sun Jul 4 2021 Rui Nuno Capela 0.9.4 +- Early-Summer'21 release. +* Tue May 11 2021 Rui Nuno Capela 0.9.3 +- Spring'21 release. +* Sun Mar 14 2021 Rui Nuno Capela 0.9.2 +- End-of-Winter'21 release. +* Sun Feb 7 2021 Rui Nuno Capela 0.9.1 +- Winter'21 release. +* Thu Dec 17 2020 Rui Nuno Capela 0.9.0 +- Winter'20 release. +* Fri Jul 31 2020 Rui Nuno Capela 0.6.3 +- Summer'20 release. +* Tue Mar 24 2020 Rui Nuno Capela 0.6.2 +- Spring'20 release. +* Sun Dec 22 2019 Rui Nuno Capela 0.6.1 +- Winter'19 release. +* Thu Oct 17 2019 Rui Nuno Capela 0.6.0 +- Autumn'19 release. +* Fri Jul 12 2019 Rui Nuno Capela 0.5.6 +- Summer'19 release. +* Thu Apr 11 2019 Rui Nuno Capela 0.5.5 +- Spring-Break'19 release. +* Mon Mar 11 2019 Rui Nuno Capela 0.5.4 +- Pre-LAC2019 release frenzy. +* Thu Dec 06 2018 Rui Nuno Capela 0.5.3 +- An End of Autumn'18 Release. +* Sun Jul 22 2018 Rui Nuno Capela 0.5.2 +- Summer'18 Release. +* Mon May 21 2018 Rui Nuno Capela 0.5.1 +- Pre-LAC2018 release frenzy. +* Tue Dec 12 2017 Rui Nuno Capela 0.5.0 +- An Autumn'17 release. +* Thu Apr 27 2017 Rui Nuno Capela 0.4.3 +- Pre-LAC2017 release frenzy. +* Mon Nov 14 2016 Rui Nuno Capela 0.4.2 +- A Fall'16 release. * Wed Sep 14 2016 Rui Nuno Capela 0.4.1 - End of Summer'16 release. * Tue Apr 5 2016 Rui Nuno Capela 0.4.0