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:
commit
4a52108c45
12
serd.changes
12
serd.changes
@ -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
|
Thu Nov 2 11:24:42 UTC 2017 - mpluskal@suse.com
|
||||||
|
|
||||||
|
20
serd.spec
20
serd.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package serd
|
# 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
|
# 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
|
||||||
@ -29,16 +29,14 @@ Source1: baselibs.conf
|
|||||||
BuildRequires: doxygen
|
BuildRequires: doxygen
|
||||||
BuildRequires: graphviz
|
BuildRequires: graphviz
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: python-base
|
BuildRequires: python3-base
|
||||||
BuildRequires: python3
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
A lightweight C library for RDF syntax which supports reading and writing Turtle and NTriples.
|
A lightweight C library for RDF syntax which supports reading and writing Turtle and NTriples.
|
||||||
|
|
||||||
%package -n serdi
|
%package -n serdi
|
||||||
Summary: Read and write RDF syntax
|
Summary: Read and write RDF syntax
|
||||||
# FIXME: use correct group, see "https://en.opensuse.org/openSUSE:Package_group_guidelines"
|
Group: Productivity/Text/Editors
|
||||||
Group: Productivity/Editors/Other
|
|
||||||
|
|
||||||
%description -n serdi
|
%description -n serdi
|
||||||
Read and write RDF syntax.
|
Read and write RDF syntax.
|
||||||
@ -62,25 +60,27 @@ Development files for libserd.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%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
|
%build
|
||||||
export CFLAGS='%{optflags}'
|
export CFLAGS='%{optflags}'
|
||||||
export CXXFLAGS='%{optflags}'
|
export CXXFLAGS='%{optflags}'
|
||||||
python3 ./waf configure \
|
./waf configure \
|
||||||
--prefix=%{_prefix} \
|
--prefix=%{_prefix} \
|
||||||
--libdir=%{_libdir} \
|
--libdir=%{_libdir} \
|
||||||
--docdir=%{_defaultdocdir} \
|
--docdir=%{_defaultdocdir} \
|
||||||
--test \
|
--test \
|
||||||
--docs
|
--docs
|
||||||
# waf only understands -j, so do not use smp_mflags
|
|
||||||
python3 ./waf build -v %{?_smp_mflags}
|
./waf build -v %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python3 ./waf install --destdir=%{?buildroot}
|
./waf install --destdir=%{?buildroot}
|
||||||
rm -rf %{buildroot}%{_docdir}/serd-0/html
|
rm -rf %{buildroot}%{_docdir}/serd-0/html
|
||||||
|
|
||||||
%check
|
%check
|
||||||
python3 ./waf test
|
./waf test
|
||||||
|
|
||||||
%post -n libserd-0-%{sover} -p /sbin/ldconfig
|
%post -n libserd-0-%{sover} -p /sbin/ldconfig
|
||||||
%postun -n libserd-0-%{sover} -p /sbin/ldconfig
|
%postun -n libserd-0-%{sover} -p /sbin/ldconfig
|
||||||
|
Loading…
x
Reference in New Issue
Block a user