/[svn]/qsampler/trunk/qsampler.spec.in
ViewVC logotype

Diff of /qsampler/trunk/qsampler.spec.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3861 by capela, Mon Mar 1 15:38:42 2021 UTC revision 4044 by capela, Wed Aug 31 08:02:30 2022 UTC
# Line 1  Line 1 
1  #  #
2  # spec file for package qsampler  # spec file for package qsampler
3  #  #
4  # Copyright (C) 2004-2021, rncbc aka Rui Nuno Capela. All rights reserved.  # Copyright (C) 2004-2022, 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
# Line 18  Line 18 
18    
19  %define name    @PACKAGE_TARNAME@  %define name    @PACKAGE_TARNAME@
20  %define version @PACKAGE_VERSION@  %define version @PACKAGE_VERSION@
21  %define release 45  %define release 50.2
22    
23  %define _prefix @ac_prefix@  %define _prefix @ac_prefix@
24    
# Line 26  Line 26 
26  %define debug_package %{nil}  %define debug_package %{nil}
27  %endif  %endif
28    
29    %if 0%{?fedora_version} >= 34 || 0%{?suse_version} > 1500 || ( 0%{?sle_version} == 150200 && 0%{?is_opensuse} )
30    %define qt_major_version  6
31    %else
32    %define qt_major_version  5
33    %endif
34    
35  Summary:        A LinuxSampler Qt GUI interface  Summary:        A LinuxSampler Qt GUI interface
36  Name:           %{name}  Name:           %{name}
37  Version:        %{version}  Version:        %{version}
# Line 38  Packager:      rncbc.org Line 44  Packager:      rncbc.org
44    
45  BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot  BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot
46    
47  %if %{defined fedora}  BuildRequires:  coreutils
48  BuildRequires:  pkgconfig  BuildRequires:  pkgconfig
49  BuildRequires:  qt5-qtbase-devel >= 5.1, qt5-linguist  BuildRequires:  glibc-devel
50  BuildRequires:  qt5-qtsvg-devel, qt5-qtwayland-devel  
51    %if %{defined fedora} || 0%{?suse_version} > 1500
52    BuildRequires:  gcc-c++ >= 8
53    %define CXX             /usr/bin/g++
54    %else
55    BuildRequires:  gcc8-c++ >= 8
56    %define CXX             /usr/bin/g++-8
57    %endif
58    
59    BuildRequires:  cmake >= 3.19
60    %if %{defined fedora}
61    %if 0%{qt_major_version} == 6
62    BuildRequires:  qt6-qtbase-devel >= 6.1
63    BuildRequires:  qt6-qttools-devel
64    BuildRequires:  qt6-qtsvg-devel
65    BuildRequires:  qt6-linguist
66    %else
67    BuildRequires:  qt5-qtbase-devel >= 5.1
68    BuildRequires:  qt5-qttools-devel
69    BuildRequires:  qt5-qtsvg-devel
70    BuildRequires:  qt5-linguist
71    %endif
72    %else
73    %if 0%{qt_major_version} == 6
74    %if 0%{?sle_version} == 150200 && 0%{?is_opensuse}
75    BuildRequires:  qtbase6-static >= 6.3
76    BuildRequires:  qttools6-static
77    BuildRequires:  qttranslations6-static
78    BuildRequires:  qtsvg6-static
79  %else  %else
80  BuildRequires:  pkg-config  BuildRequires:  qt6-base-devel >= 6.1
81  BuildRequires:  libqt5-qtbase-devel >= 5.1, libqt5-linguist  BuildRequires:  qt6-tools-devel
82  BuildRequires:  libqt5-qtsvg-devel, libqt5-qtwayland-devel  BuildRequires:  qt6-svg-devel
83    BuildRequires:  qt6-linguist-devel
84    %endif
85    %else
86    BuildRequires:  libqt5-qtbase-devel >= 5.1
87    BuildRequires:  libqt5-qttools-devel
88    BuildRequires:  libqt5-qtsvg-devel
89    BuildRequires:  libqt5-linguist-devel
90    %endif
91  %endif  %endif
92  BuildRequires:  liblscp-devel >= 0.5.6  BuildRequires:  liblscp-devel >= 0.5.6
93  BuildRequires:  libgig-devel >= 3.3.0  BuildRequires:  libgig-devel >= 3.3.0
# Line 56  the Qt framework using Qt Designer. For Line 98  the Qt framework using Qt Designer. For
98  interface of LinuxSampler Control Protocol (LSCP) (http://www.linuxsampler.org).  interface of LinuxSampler Control Protocol (LSCP) (http://www.linuxsampler.org).
99    
100  %prep  %prep
101  %setup  %setup -q
 [ -x ./autogen.sh ] && ./autogen.sh  
102    
103  %build  %build
104  %configure  %if 0%{?sle_version} == 150200 && 0%{?is_opensuse}
105  %__make %{?_smp_mflags}  source /opt/qt6.3-static/bin/qt6.3-static-env.sh
106    %endif
107    CXX=%{CXX} \
108    cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -Wno-dev -B build
109    cmake --build build %{?_smp_mflags}
110    
111  %install  %install
112  %__make DESTDIR="%{buildroot}" install  DESTDIR="%{buildroot}" \
113    cmake --install build
114    
115  %clean  %clean
116  [ -d "%{buildroot}" -a "%{buildroot}" != "/" ] && %__rm -rf "%{buildroot}"  [ -d "%{buildroot}" -a "%{buildroot}" != "/" ] && %__rm -rf "%{buildroot}"
117    
118  %files  %files
119  %defattr(-,root,root)  %defattr(-,root,root)
120  %doc AUTHORS COPYING ChangeLog README TODO  %doc README LICENSE TRANSLATORS ChangeLog
121  #dir %{_datadir}/mime  #dir %{_datadir}/mime
122  #dir %{_datadir}/mime/packages  #dir %{_datadir}/mime/packages
123  #dir %{_datadir}/applications  #dir %{_datadir}/applications
# Line 90  interface of LinuxSampler Control Protoc Line 136  interface of LinuxSampler Control Protoc
136  #dir %{_datadir}/man/fr  #dir %{_datadir}/man/fr
137  #dir %{_datadir}/man/fr/man1  #dir %{_datadir}/man/fr/man1
138  %{_bindir}/%{name}  %{_bindir}/%{name}
139  %{_datadir}/mime/packages/%{name}.xml  %{_datadir}/mime/packages/org.rncbc.%{name}.xml
140  %{_datadir}/applications/%{name}.desktop  %{_datadir}/applications/org.rncbc.%{name}.desktop
141  %{_datadir}/icons/hicolor/32x32/apps/%{name}.png  %{_datadir}/icons/hicolor/32x32/apps/org.rncbc.%{name}.png
142  %{_datadir}/icons/hicolor/32x32/mimetypes/application-x-%{name}*.png  %{_datadir}/icons/hicolor/scalable/apps/org.rncbc.%{name}.svg
143  %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg  %{_datadir}/icons/hicolor/32x32/mimetypes/org.rncbc.%{name}.application-x-%{name}*.png
144  %{_datadir}/icons/hicolor/scalable/mimetypes/application-x-%{name}*.svg  %{_datadir}/icons/hicolor/scalable/mimetypes/org.rncbc.%{name}.application-x-%{name}*.svg
145  %{_datadir}/%{name}/translations/%{name}_*.qm  %{_datadir}/%{name}/translations/%{name}_*.qm
146  %{_datadir}/metainfo/%{name}.appdata.xml  %{_datadir}/metainfo/org.rncbc.%{name}.metainfo.xml
147  %{_datadir}/man/man1/%{name}.1.gz  %{_datadir}/man/man1/%{name}.1.gz
148  %{_datadir}/man/fr/man1/%{name}.1.gz  %{_datadir}/man/fr/man1/%{name}.1.gz
149    
150  %changelog  %changelog
151    * Sat Apr  2 2022 Rui Nuno Capela <rncbc@rncbc.org> 0.9.6
152    - A Spring'22 Release.
153    * Sun Jan  9 2022 Rui Nuno Capela <rncbc@rncbc.org> 0.9.5
154    - A Winter'22 Release.
155    * Sun Jul  4 2021 Rui Nuno Capela <rncbc@rncbc.org> 0.9.4
156    - Early-Summer'21 release.
157    * Tue May 11 2021 Rui Nuno Capela <rncbc@rncbc.org> 0.9.3
158    - Spring'21 release.
159    * Sun Mar 14 2021 Rui Nuno Capela <rncbc@rncbc.org> 0.9.2
160    - End-of-Winter'21 release.
161  * Sun Feb  7 2021 Rui Nuno Capela <rncbc@rncbc.org> 0.9.1  * Sun Feb  7 2021 Rui Nuno Capela <rncbc@rncbc.org> 0.9.1
162  - Winter'21 release.  - Winter'21 release.
163  * Thu Dec 17 2020 Rui Nuno Capela <rncbc@rncbc.org> 0.9.0  * Thu Dec 17 2020 Rui Nuno Capela <rncbc@rncbc.org> 0.9.0

Legend:
Removed from v.3861  
changed lines
  Added in v.4044

  ViewVC Help
Powered by ViewVC