Accepting request 538327 from home:pluskalm:branches:multimedia:libs

- Update to version 0.28.0:
- Use python3
- Run spec-cleaner
- Rename devel subpackage
- Run tests during build

OBS-URL: https://build.opensuse.org/request/show/538327
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/serd?expand=0&rev=9
This commit is contained in:
Tomáš Chvátal 2017-11-02 11:36:33 +00:00 committed by Git OBS Bridge
parent f600085d4d
commit cfa5aeaf31
4 changed files with 47 additions and 20 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7b030287b4b75f35e6212b145648bec0be6580cc5434caa6d2fe64a38562afd2
size 340371

3
serd-0.28.0.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1df21a8874d256a9f3d51a18b8c6e2539e8092b62cc2674b110307e93f898aec
size 371592

View File

@ -1,3 +1,28 @@
-------------------------------------------------------------------
Thu Nov 2 11:24:42 UTC 2017 - mpluskal@suse.com
- Update to version 0.28.0:
* Add support for reading from a user provided callback
* Add serd_node_from_substring()
* Fix strict parsing of abolute URI schemes
* Fix parsing of hex escapes in file URIs (thanks Johannes Mueller)
* Gracefully handle applications that write corrupt UTF-8
* Fix hangs when reading corrupt UTF-8
* Add support for TriG and NQuads
* Add support for braindead SPARQL PREFIX and BASE directives
* Add serd_node_new_relative_uri()
* Fix construction and comparison of URIs with UTF-8 characters
* Report I/O errors with message and return appropriate status code
* Report missing statement separator errors
* Fix potential out of bounds read
* Fix unaligned memory access, undefined behaviour which breaks on ARM
* Fix documentation generation
* Update serdi man page
- Use python3
- Run spec-cleaner
- Rename devel subpackage
- Run tests during build
-------------------------------------------------------------------
Mon Jan 30 22:06:32 UTC 2017 - jengelh@inai.de

View File

@ -17,9 +17,8 @@
%define sover 0
Name: serd
Version: 0.22.0
Version: 0.28.0
Release: 0
Summary: A lightweight C library for RDF syntax
License: ISC
@ -27,17 +26,18 @@ Group: Development/Libraries/C and C++
Url: http://drobilla.net/software/serd/
Source0: http://download.drobilla.net/serd-%{version}.tar.bz2
Source1: baselibs.conf
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: doxygen
BuildRequires: graphviz
BuildRequires: pkg-config
BuildRequires: pkgconfig
BuildRequires: python-base
BuildRequires: python3
%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
%description -n serdi
@ -50,12 +50,14 @@ Group: System/Libraries
%description -n libserd-0-%{sover}
A lightweight C library for RDF syntax which supports reading and writing Turtle and NTriples.
%package -n libserd-0-devel
%package devel
Summary: Development files for libserd
Group: Development/Libraries/C and C++
Requires: libserd-0-%{sover} = %{version}
Provides: libserd-0-devel = %{version}
Obsoletes: libserd-0-devel < %{version}
%description -n libserd-0-devel
%description devel
Development files for libserd.
%prep
@ -64,37 +66,37 @@ Development files for libserd.
%build
export CFLAGS='%{optflags}'
export CXXFLAGS='%{optflags}'
./waf configure \
python3 ./waf configure \
--prefix=%{_prefix} \
--libdir=%{_libdir} \
--docdir=%{_defaultdocdir} \
--test \
--docs
# waf only understands -j, so do not use smp_mflags
./waf build -v %{?jobs:-j%jobs}
python3 ./waf build -v %{?_smp_mflags}
%install
./waf install --destdir=%{?buildroot}
python3 ./waf install --destdir=%{?buildroot}
rm -rf %{buildroot}%{_docdir}/serd-0/html
%check
python3 ./waf test
%post -n libserd-0-%{sover} -p /sbin/ldconfig
%postun -n libserd-0-%{sover} -p /sbin/ldconfig
%files -n serdi
%defattr(0644,root,root,0755)
%attr(0755,root,root) %{_bindir}/serdi
%{_mandir}/man1/serdi.1*
%files -n libserd-0-%{sover}
%defattr(0644,root,root,0755)
%doc AUTHORS COPYING NEWS README
%doc AUTHORS COPYING NEWS README.md
%{_libdir}/libserd-0.so.%{sover}*
%files -n libserd-0-devel
%defattr(0644,root,root,0755)
%files devel
%{_libdir}/libserd-0.so
%{_includedir}/serd-0/
%{_libdir}/pkgconfig/serd-0.pc
#%{_defaultdocdir}/serd-0/
#%{_mandir}/man3/*
%{_mandir}/man3/serd.3%{ext_man}
%changelog