sratom/sratom.spec
Dave Plater 2ccebe96de Accepting request 983586 from home:dirkmueller:Factory
- update to 0.6.10:
  * Fix documentation installation directory
  * Fix potential blank node ID truncation
- drop fix-FORTIFY_SOURCE3.patch: obsolete

OBS-URL: https://build.opensuse.org/request/show/983586
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/sratom?expand=0&rev=24
2022-06-19 05:59:00 +00:00

90 lines
2.5 KiB
RPMSpec

#
# spec file for package sratom
#
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define sover 0
Name: sratom
Version: 0.6.10
Release: 0
Summary: A library for serialising LV2 atoms to/from RDF
License: ISC
Group: Development/Libraries/C and C++
URL: https://drobilla.net/software/sratom.html
Source0: https://download.drobilla.net/sratom-%{version}.tar.bz2
Source1: baselibs.conf
BuildRequires: doxygen
BuildRequires: graphviz
BuildRequires: pkgconfig
BuildRequires: python3
BuildRequires: pkgconfig(lv2) >= 1.10.0
BuildRequires: pkgconfig(serd-0) >= 0.30.0
BuildRequires: pkgconfig(sord-0) >= 0.12.0
%description
A library for serialising LV2 atoms to/from RDF, particularly the Turtle syntax.
%package -n libsratom-0-%{sover}
Summary: A library for serialising LV2 atoms to/from RDF
Group: System/Libraries
%description -n libsratom-0-%{sover}
A library for serialising LV2 atoms to/from RDF, particularly the Turtle syntax.
%package devel
Summary: Development files for libsratom
Group: Development/Libraries/C and C++
Requires: libsratom-0-%{sover} = %{version}
Provides: libsratom-0-devel = %{version}
Obsoletes: libsratom-0-devel < %{version}
%description devel
Development files for libsratom.
%prep
%autosetup -p1
%build
export CFLAGS='%{optflags} -std=gnu99'
export CXXFLAGS='%{optflags}'
python3 ./waf configure \
--prefix=%{_prefix} \
--libdir=%{_libdir} \
--docdir=%{_defaultdocdir} \
--test
python3 ./waf build -v %{?_smp_mflags}
%install
python3 ./waf install --destdir=%{?buildroot}
%check
python3 ./waf test
%post -n libsratom-0-%{sover} -p /sbin/ldconfig
%postun -n libsratom-0-%{sover} -p /sbin/ldconfig
%files -n libsratom-0-%{sover}
%license COPYING
%doc NEWS
%{_libdir}/libsratom-0.so.%{sover}*
%files devel
%{_libdir}/libsratom-0.so
%{_includedir}/sratom-0/
%{_libdir}/pkgconfig/sratom-0.pc
%changelog