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

- Ensure neutrality of descriptions.
- Replace old $RPM_* shell vars by macros.
- Favor find -exec over xargs.

OBS-URL: https://build.opensuse.org/request/show/595387
OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/snd?expand=0&rev=36
This commit is contained in:
Takashi Iwai 2018-04-12 14:47:04 +00:00 committed by Git OBS Bridge
parent 8c0ebd1e4e
commit 37ba549898
2 changed files with 22 additions and 15 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Apr 10 23:22:58 UTC 2018 - jengelh@inai.de
- Ensure neutrality of descriptions.
- Replace old $RPM_* shell vars by macros.
- Favor find -exec over xargs.
-------------------------------------------------------------------
Wed Mar 28 12:55:23 UTC 2018 - guillaume.gardet@opensuse.org

View File

@ -28,7 +28,7 @@ BuildRequires: libdrm-devel
BuildRequires: libjack-devel
BuildRequires: libsamplerate-devel
BuildRequires: update-desktop-files
Summary: Powerful Sound File Editor
Summary: Sound File Editor
License: LGPL-2.1-or-later
Group: Productivity/Multimedia/Sound/Editors and Convertors
Version: 17.1
@ -45,22 +45,22 @@ ExclusiveArch: %ix86 x86_64 %ppc ppc64 ppc64le
%description
Snd is a sound editor modelled loosely after Emacs and an old,
sorely-missed PDP-10 sound editor named Dpysnd. It can accommodate any
PDP-10 sound editor named Dpysnd. It can accommodate any
number of sounds each with any number of channels and can be customized
and extended using guile and guile-gtk.
%prep
%setup -q
find -name "*~" -type f | xargs -r rm -v
find -name "*~" -type f -print -delete
%patch1 -p1
%patch2 -p1
find -name "*.png" -type f | xargs chmod 0644
find -name "*.png" -type f -exec chmod 0644 "{}" "+"
%build
CFLAGS="$RPM_OPT_FLAGS $CFLAGS -fno-strict-aliasing" \
CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
LDFLAGS="$LDFLAGS -Wl,-z -Wl,noexecstack" \
%configure \
CFLAGS="%{optflags} -fno-strict-aliasing" \
CXXFLAGS="%{optflags} -fno-strict-aliasing" \
LDFLAGS="-Wl,-z -Wl,noexecstack" \
--with-gtk \
--with-alsa \
--with-ladspa \
@ -73,17 +73,17 @@ make %{?_smp_mflags}
make sndplay sndinfo
%install
install -d -m 755 $RPM_BUILD_ROOT%{_bindir}
install -d -m 755 %{buildroot}/%{_bindir}
for i in snd sndplay sndinfo ; do
install -c -m 755 $i $RPM_BUILD_ROOT%{_bindir}
install -c -m 755 $i %{buildroot}/%{_bindir}
done
mkdir -p $RPM_BUILD_ROOT%{_libdir}/snd/scheme
cp -a *.scm $RPM_BUILD_ROOT%{_libdir}/snd/scheme
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
install -c -m 0644 snd.1 $RPM_BUILD_ROOT%{_mandir}/man1
mkdir -p %{buildroot}/%{_libdir}/snd/scheme
cp -a *.scm %{buildroot}/%{_libdir}/snd/scheme
mkdir -p %{buildroot}/%{_mandir}/man1
install -c -m 0644 snd.1 %{buildroot}/%{_mandir}/man1
%suse_update_desktop_file -i snd AudioVideo AudioVideoEditing
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
cp %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/pixmaps
mkdir -p %{buildroot}/%{_datadir}/pixmaps
cp %{SOURCE2} %{buildroot}/%{_datadir}/pixmaps
%files
%defattr(-, root, root)