Skip to content

Commit

Permalink
Updated rpm.spec to partial openSUSE standards.
Browse files Browse the repository at this point in the history
  • Loading branch information
rncbc committed Apr 27, 2024
1 parent cca6084 commit 887750d
Showing 1 changed file with 12 additions and 24 deletions.
36 changes: 12 additions & 24 deletions rpm/qsampler.spec
Original file line number Diff line number Diff line change
Expand Up @@ -12,38 +12,27 @@
# 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 qsampler
%define version 0.9.90
%define release 1.1

%define _prefix /usr
Summary: A LinuxSampler Qt GUI interface
Name: qsampler
Version: 9.9.90
Release: 1.1
License: GPL-2.0-or-later
Group: Productivity/Multimedia/Sound/Midi
Source: %{name}-%{version}.tar.gz
URL: https://qsampler.sourceforge.io/
#Packager: rncbc.org

%if %{defined fedora}
%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}
Release: %{release}
License: GPL-2.0+
Group: Productivity/Multimedia/Sound/Midi
Source0: %{name}-%{version}.tar.gz
URL: http://qsampler.sourceforge.net/
Packager: rncbc.org

BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot

BuildRequires: coreutils
BuildRequires: pkgconfig
BuildRequires: glibc-devel
Expand Down Expand Up @@ -89,6 +78,7 @@ Qsampler is a LinuxSampler GUI front-end application written in C++ around
the Qt framework using Qt Designer. For the moment it just wraps the client
interface of LinuxSampler Control Protocol (LSCP) (http://www.linuxsampler.org).


%prep
%setup -q

Expand All @@ -104,11 +94,8 @@ cmake --build build %{?_smp_mflags}
DESTDIR="%{buildroot}" \
cmake --install build

%clean
[ -d "%{buildroot}" -a "%{buildroot}" != "/" ] && %__rm -rf "%{buildroot}"

%files
%defattr(-,root,root)
%license LICENSE
%doc README TRANSLATORS ChangeLog
#dir %{_datadir}/mime
Expand Down Expand Up @@ -142,6 +129,7 @@ cmake --install build
%{_datadir}/man/fr/man1/%{name}.1.gz
%{_datadir}/%{name}/palette/*.conf


%changelog
* Wed Apr 10 2024 Rui Nuno Capela <rncbc@rncbc.org> 0.9.90
- A Spring'24 Release Candidate.
Expand Down

0 comments on commit 887750d

Please sign in to comment.