Accepting request 561877 from home:plater
Remove python-base dependency and change headers in python scripts to python3 OBS-URL: https://build.opensuse.org/request/show/561877 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/serd?expand=0&rev=11
This commit is contained in:
parent
cfa5aeaf31
commit
66380c662a
16
serd.spec
16
serd.spec
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package serd
|
||||
#
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -29,7 +29,7 @@ Source1: baselibs.conf
|
||||
BuildRequires: doxygen
|
||||
BuildRequires: graphviz
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: python-base
|
||||
#BuildRequires: python-base
|
||||
BuildRequires: python3
|
||||
|
||||
%description
|
||||
@ -62,25 +62,27 @@ Development files for libserd.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
#Convert all file headers to python3
|
||||
for i in `grep -rl "/usr/bin/env python"`;do sed -i '1s/^#!.*/#!\/usr\/bin\/python3/' ${i} ;done
|
||||
|
||||
%build
|
||||
export CFLAGS='%{optflags}'
|
||||
export CXXFLAGS='%{optflags}'
|
||||
python3 ./waf configure \
|
||||
./waf configure \
|
||||
--prefix=%{_prefix} \
|
||||
--libdir=%{_libdir} \
|
||||
--docdir=%{_defaultdocdir} \
|
||||
--test \
|
||||
--docs
|
||||
# waf only understands -j, so do not use smp_mflags
|
||||
python3 ./waf build -v %{?_smp_mflags}
|
||||
|
||||
./waf build -v %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
python3 ./waf install --destdir=%{?buildroot}
|
||||
./waf install --destdir=%{?buildroot}
|
||||
rm -rf %{buildroot}%{_docdir}/serd-0/html
|
||||
|
||||
%check
|
||||
python3 ./waf test
|
||||
./waf test
|
||||
|
||||
%post -n libserd-0-%{sover} -p /sbin/ldconfig
|
||||
%postun -n libserd-0-%{sover} -p /sbin/ldconfig
|
||||
|
Loading…
x
Reference in New Issue
Block a user