SHA256
1
0
forked from pool/csound

Accepting request 1083095 from home:jengelh:branches:multimedia:apps

- Drop unused BuildRequire on xorg-x11-devel
- Modernize specfile constructs

OBS-URL: https://build.opensuse.org/request/show/1083095
OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/csound?expand=0&rev=56
This commit is contained in:
Takashi Iwai 2023-04-27 16:05:08 +00:00 committed by Git OBS Bridge
parent d9850108bb
commit ff4631ec97
2 changed files with 9 additions and 7 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Apr 26 19:27:59 UTC 2023 - Jan Engelhardt <jengelh@inai.de>
- Drop unused BuildRequire on xorg-x11-devel
- Modernize specfile constructs
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Dec 14 01:02:31 UTC 2022 - Konstantin Voinov <kv@kott.no-ip.biz> Wed Dec 14 01:02:31 UTC 2022 - Konstantin Voinov <kv@kott.no-ip.biz>

View File

@ -1,7 +1,7 @@
# #
# spec file for package csound # spec file for package csound
# #
# Copyright (c) 2022 SUSE LLC # Copyright (c) 2023 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -75,10 +75,8 @@ BuildRequires: python3-devel
BuildRequires: fltk-devel BuildRequires: fltk-devel
BuildRequires: libjpeg-devel BuildRequires: libjpeg-devel
BuildRequires: libpng-devel BuildRequires: libpng-devel
BuildRequires: xorg-x11-devel
%endif %endif
Recommends: %{name}-lang Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%global luaver %(lua -v | sed -r 's/Lua ([[:digit:]]+\\.[[:digit:]]+).*/\\1/') %global luaver %(lua -v | sed -r 's/Lua ([[:digit:]]+\\.[[:digit:]]+).*/\\1/')
@ -151,8 +149,7 @@ Development files for Csound, a sound synthesis program.
%lang_package %lang_package
%prep %prep
%setup -q %autosetup -p1
%autopatch -p1
# remove __DATE__ from source files, causes unnecessary rebuilds # remove __DATE__ from source files, causes unnecessary rebuilds
#sed -i 's:__DATE__:"":' Engine/musmon.c include/version.h Top/main.c #sed -i 's:__DATE__:"":' Engine/musmon.c include/version.h Top/main.c
# copy readme # copy readme
@ -180,7 +177,7 @@ export CXXFLAGS="%{optflags} -std=c++11"
-DUSE_LIB64:BOOL=OFF -DUSE_LIB64:BOOL=OFF
%endif %endif
make %{_smp_mflags} %make_build
%install %install
%cmake_install %cmake_install
@ -236,6 +233,5 @@ cp -v OOps/README.md README.OOps
%{_datadir}/cmake/Csound/ %{_datadir}/cmake/Csound/
%files lang -f %{name}%{maj}.lang %files lang -f %{name}%{maj}.lang
%defattr(-,root,root)
%changelog %changelog