1 |
# |
# |
2 |
# spec file for package qsampler |
# spec file for package qsampler |
3 |
# |
# |
4 |
# Copyright (C) 2004-2022, rncbc aka Rui Nuno Capela. All rights reserved. |
# Copyright (C) 2004-2023, rncbc aka Rui Nuno Capela. All rights reserved. |
5 |
# Copyright (C) 2007,2008,2015 Christian Schoenebeck |
# Copyright (C) 2007,2008,2015 Christian Schoenebeck |
6 |
# |
# |
7 |
# All modifications and additions to the file contributed by third parties |
# All modifications and additions to the file contributed by third parties |
17 |
# |
# |
18 |
|
|
19 |
%define name qsampler |
%define name qsampler |
20 |
%define version 0.9.7 |
%define version 0.9.9 |
21 |
%define release 51.1 |
%define release 53.1 |
22 |
|
|
23 |
%define _prefix @ac_prefix@ |
%define _prefix /usr |
24 |
|
|
25 |
%if %{defined fedora} |
%if %{defined fedora} |
26 |
%define debug_package %{nil} |
%define debug_package %{nil} |
47 |
BuildRequires: coreutils |
BuildRequires: coreutils |
48 |
BuildRequires: pkgconfig |
BuildRequires: pkgconfig |
49 |
BuildRequires: glibc-devel |
BuildRequires: glibc-devel |
50 |
|
BuildRequires: cmake >= 3.15 |
51 |
%if %{defined fedora} || 0%{?suse_version} > 1500 |
%if 0%{?sle_version} >= 150200 && 0%{?is_opensuse} |
52 |
BuildRequires: gcc-c++ >= 8 |
BuildRequires: gcc10 >= 10 |
53 |
%define CXX /usr/bin/g++ |
BuildRequires: gcc10-c++ >= 10 |
54 |
%else |
%define _GCC /usr/bin/gcc-10 |
55 |
BuildRequires: gcc8-c++ >= 8 |
%define _GXX /usr/bin/g++-10 |
56 |
%define CXX /usr/bin/g++-8 |
%else |
57 |
|
BuildRequires: gcc >= 10 |
58 |
|
BuildRequires: gcc-c++ >= 10 |
59 |
|
%define _GCC /usr/bin/gcc |
60 |
|
%define _GXX /usr/bin/g++ |
61 |
%endif |
%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 |
|
62 |
%if 0%{qt_major_version} == 6 |
%if 0%{qt_major_version} == 6 |
63 |
%if 0%{?sle_version} == 150200 && 0%{?is_opensuse} |
%if 0%{?sle_version} == 150200 && 0%{?is_opensuse} |
64 |
BuildRequires: qtbase6-static >= 6.3 |
BuildRequires: qtbase6-static >= 6.1 |
65 |
BuildRequires: qttools6-static |
BuildRequires: qttools6-static |
66 |
BuildRequires: qttranslations6-static |
BuildRequires: qttranslations6-static |
67 |
BuildRequires: qtsvg6-static |
BuildRequires: qtsvg6-static |
68 |
|
#BuildRequires: qtwayland6-static |
69 |
%else |
%else |
70 |
BuildRequires: qt6-base-devel >= 6.1 |
BuildRequires: cmake(Qt6LinguistTools) |
71 |
BuildRequires: qt6-tools-devel |
BuildRequires: pkgconfig(Qt6Core) |
72 |
BuildRequires: qt6-svg-devel |
BuildRequires: pkgconfig(Qt6Gui) |
73 |
BuildRequires: qt6-linguist-devel |
BuildRequires: pkgconfig(Qt6Widgets) |
74 |
%endif |
BuildRequires: pkgconfig(Qt6Svg) |
75 |
%else |
BuildRequires: pkgconfig(Qt6Network) |
76 |
BuildRequires: libqt5-qtbase-devel >= 5.1 |
%endif |
77 |
BuildRequires: libqt5-qttools-devel |
%else |
78 |
BuildRequires: libqt5-qtsvg-devel |
BuildRequires: cmake(Qt5LinguistTools) |
79 |
BuildRequires: libqt5-linguist-devel |
BuildRequires: pkgconfig(Qt5Core) |
80 |
%endif |
BuildRequires: pkgconfig(Qt5Gui) |
81 |
|
BuildRequires: pkgconfig(Qt5Widgets) |
82 |
|
BuildRequires: pkgconfig(Qt5Svg) |
83 |
|
BuildRequires: pkgconfig(Qt5Network) |
84 |
%endif |
%endif |
85 |
BuildRequires: liblscp-devel >= 0.5.6 |
BuildRequires: liblscp-devel >= 0.5.6 |
86 |
BuildRequires: libgig-devel >= 3.3.0 |
BuildRequires: libgig-devel >= 3.3.0 |
95 |
|
|
96 |
%build |
%build |
97 |
%if 0%{?sle_version} == 150200 && 0%{?is_opensuse} |
%if 0%{?sle_version} == 150200 && 0%{?is_opensuse} |
98 |
source /opt/qt6.4-static/bin/qt6.4-static-env.sh |
source /opt/qt6.5-static/bin/qt6.5-static-env.sh |
99 |
%endif |
%endif |
100 |
CXX=%{CXX} \ |
CXX=%{_GXX} CC=%{_GCC} \ |
101 |
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -Wno-dev -B build |
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -Wno-dev -B build |
102 |
cmake --build build %{?_smp_mflags} |
cmake --build build %{?_smp_mflags} |
103 |
|
|
110 |
|
|
111 |
%files |
%files |
112 |
%defattr(-,root,root) |
%defattr(-,root,root) |
113 |
%doc README LICENSE TRANSLATORS ChangeLog |
%license LICENSE |
114 |
|
%doc README TRANSLATORS ChangeLog |
115 |
#dir %{_datadir}/mime |
#dir %{_datadir}/mime |
116 |
#dir %{_datadir}/mime/packages |
#dir %{_datadir}/mime/packages |
117 |
#dir %{_datadir}/applications |
#dir %{_datadir}/applications |
142 |
%{_datadir}/man/fr/man1/%{name}.1.gz |
%{_datadir}/man/fr/man1/%{name}.1.gz |
143 |
|
|
144 |
%changelog |
%changelog |
145 |
|
* Thu Mar 23 2023 Rui Nuno Capela <rncbc@rncbc.org> 0.9.9 |
146 |
|
- An Early-Spring'23 Release. |
147 |
|
* Wed Dec 28 2022 Rui Nuno Capela <rncbc@rncbc.org> 0.9.8 |
148 |
|
- An End-of-Year'22 Release. |
149 |
* Mon Oct 3 2022 Rui Nuno Capela <rncbc@rncbc.org> 0.9.7 |
* Mon Oct 3 2022 Rui Nuno Capela <rncbc@rncbc.org> 0.9.7 |
150 |
- An Early-Autumn'22 Release. |
- An Early-Autumn'22 Release. |
151 |
* Sat Apr 2 2022 Rui Nuno Capela <rncbc@rncbc.org> 0.9.6 |
* Sat Apr 2 2022 Rui Nuno Capela <rncbc@rncbc.org> 0.9.6 |