SHA256
1
0
forked from pool/serd

Accepting request 562463 from multimedia:libs

- Tweak a bit more py3 dep to not pull whole python but just base
- Fix group on one of the subpkgs
- Remove python-base dependency and change headers in python scripts
  to python3

OBS-URL: https://build.opensuse.org/request/show/562463
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/serd?expand=0&rev=12
This commit is contained in:
Dominique Leuenberger 2018-01-16 08:26:00 +00:00 committed by Git OBS Bridge
commit 4a52108c45
2 changed files with 22 additions and 10 deletions

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Mon Jan 8 09:12:15 UTC 2018 - tchvatal@suse.com
- Tweak a bit more py3 dep to not pull whole python but just base
- Fix group on one of the subpkgs
-------------------------------------------------------------------
Fri Jan 5 12:49:59 UTC 2018 - davejplater@gmail.com
- Remove python-base dependency and change headers in python scripts
to python3
-------------------------------------------------------------------
Thu Nov 2 11:24:42 UTC 2017 - mpluskal@suse.com

View File

@ -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,16 +29,14 @@ Source1: baselibs.conf
BuildRequires: doxygen
BuildRequires: graphviz
BuildRequires: pkgconfig
BuildRequires: python-base
BuildRequires: python3
BuildRequires: python3-base
%description
A lightweight C library for RDF syntax which supports reading and writing Turtle and NTriples.
%package -n serdi
Summary: Read and write RDF syntax
# FIXME: use correct group, see "https://en.opensuse.org/openSUSE:Package_group_guidelines"
Group: Productivity/Editors/Other
Group: Productivity/Text/Editors
%description -n serdi
Read and write RDF syntax.
@ -62,25 +60,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