2012-08-11 08:10:09 +00:00
|
|
|
#
|
|
|
|
# spec file for package sratom
|
|
|
|
#
|
2017-01-31 05:22:47 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-08-11 08:10:09 +00:00
|
|
|
#
|
|
|
|
# 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 http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2017-01-31 05:22:47 +00:00
|
|
|
%define sover 0
|
2012-08-11 08:10:09 +00:00
|
|
|
Name: sratom
|
2017-11-02 13:00:04 +00:00
|
|
|
Version: 0.6.0
|
2012-08-11 08:10:09 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: A library for serialising LV2 atoms to/from RDF
|
|
|
|
License: ISC
|
2017-01-31 05:22:47 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2012-08-11 08:10:09 +00:00
|
|
|
Url: http://drobilla.net/software/sratom/
|
|
|
|
Source0: http://download.drobilla.net/sratom-%{version}.tar.bz2
|
2017-01-30 20:28:00 +00:00
|
|
|
Source1: baselibs.conf
|
2012-08-11 08:10:09 +00:00
|
|
|
BuildRequires: doxygen
|
|
|
|
BuildRequires: graphviz
|
2017-11-02 13:00:04 +00:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: python3
|
|
|
|
BuildRequires: pkgconfig(lv2) >= 1.10.0
|
|
|
|
BuildRequires: pkgconfig(serd-0) >= 0.23.0
|
2015-12-16 05:16:47 +00:00
|
|
|
BuildRequires: pkgconfig(sord-0) >= 0.12.0
|
2012-08-11 08:10:09 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
A library for serialising LV2 atoms to/from RDF, particularly the Turtle syntax.
|
|
|
|
|
2017-01-31 05:22:47 +00:00
|
|
|
%package -n libsratom-0-%{sover}
|
2012-08-11 08:10:09 +00:00
|
|
|
Summary: A library for serialising LV2 atoms to/from RDF
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2017-01-31 05:22:47 +00:00
|
|
|
%description -n libsratom-0-%{sover}
|
2012-08-11 08:10:09 +00:00
|
|
|
A library for serialising LV2 atoms to/from RDF, particularly the Turtle syntax.
|
|
|
|
|
2017-11-02 13:00:04 +00:00
|
|
|
%package devel
|
2012-08-11 08:10:09 +00:00
|
|
|
Summary: Development files for libsratom
|
|
|
|
Group: Development/Libraries/C and C++
|
2017-01-31 05:22:47 +00:00
|
|
|
Requires: libsratom-0-%{sover} = %{version}
|
2017-11-02 13:00:04 +00:00
|
|
|
Provides: libsratom-0-devel = %{version}
|
|
|
|
Obsoletes: libsratom-0-devel < %{version}
|
2012-08-11 08:10:09 +00:00
|
|
|
|
2017-11-02 13:00:04 +00:00
|
|
|
%description devel
|
2012-08-11 08:10:09 +00:00
|
|
|
Development files for libsratom.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
export CFLAGS='%{optflags}'
|
|
|
|
export CXXFLAGS='%{optflags}'
|
2017-11-02 13:00:04 +00:00
|
|
|
python3 ./waf configure \
|
2012-08-11 08:10:09 +00:00
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--libdir=%{_libdir} \
|
|
|
|
--docdir=%{_defaultdocdir} \
|
2017-11-02 13:00:04 +00:00
|
|
|
--test \
|
2012-08-11 08:10:09 +00:00
|
|
|
--docs
|
2017-11-02 13:00:04 +00:00
|
|
|
python3 ./waf build -v %{?_smp_mflags}
|
2012-08-11 08:10:09 +00:00
|
|
|
|
|
|
|
%install
|
2017-11-02 13:00:04 +00:00
|
|
|
python3 ./waf install --destdir=%{?buildroot}
|
2012-08-11 08:10:09 +00:00
|
|
|
|
2017-11-02 13:00:04 +00:00
|
|
|
%check
|
|
|
|
python3 ./waf test
|
2012-08-11 08:10:09 +00:00
|
|
|
|
2017-11-02 13:00:04 +00:00
|
|
|
%post -n libsratom-0-%{sover} -p /sbin/ldconfig
|
2017-01-31 05:22:47 +00:00
|
|
|
%postun -n libsratom-0-%{sover} -p /sbin/ldconfig
|
2012-08-11 08:10:09 +00:00
|
|
|
|
2017-01-31 05:22:47 +00:00
|
|
|
%files -n libsratom-0-%{sover}
|
2012-08-11 08:10:09 +00:00
|
|
|
%doc COPYING NEWS README
|
2017-01-31 05:22:47 +00:00
|
|
|
%{_libdir}/libsratom-0.so.%{sover}*
|
2012-08-11 08:10:09 +00:00
|
|
|
|
2017-11-02 13:00:04 +00:00
|
|
|
%files devel
|
2012-08-11 08:10:09 +00:00
|
|
|
%{_libdir}/libsratom-0.so
|
|
|
|
%{_includedir}/sratom-0/
|
|
|
|
%{_libdir}/pkgconfig/sratom-0.pc
|
2015-12-16 05:16:47 +00:00
|
|
|
%{_defaultdocdir}/sratom-0/
|
2012-08-11 08:10:09 +00:00
|
|
|
%{_mandir}/man3/*
|
|
|
|
|
|
|
|
%changelog
|