84 lines
2.4 KiB
RPMSpec
84 lines
2.4 KiB
RPMSpec
|
|
%global maj 0
|
||
|
|
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
|
||
|
|
|
||
|
|
Name: sord
|
||
|
|
Version: 0.16.8
|
||
|
|
Release: 1
|
||
|
|
Summary: A lightweight Resource Description Framework (RDF) C library
|
||
|
|
License: ISC
|
||
|
|
URL: http://drobilla.net/software/sord/
|
||
|
|
Source0: http://download.drobilla.net/%{name}-%{version}.tar.bz2
|
||
|
|
# This fixes a potential BTree crash with GCC 10, patch from upstream
|
||
|
|
Patch0: %{name}-update-zix.patch
|
||
|
|
|
||
|
|
BuildRequires: boost-devel
|
||
|
|
BuildRequires: doxygen
|
||
|
|
BuildRequires: graphviz
|
||
|
|
BuildRequires: glib2-devel
|
||
|
|
BuildRequires: python3
|
||
|
|
BuildRequires: serd-devel >= 0.30.0
|
||
|
|
BuildRequires: gcc
|
||
|
|
BuildRequires: gcc-c++
|
||
|
|
|
||
|
|
%description
|
||
|
|
%{name} is a lightweight C library for storing Resource Description
|
||
|
|
Framework (RDF) data in memory. %{name} and parent library serd form
|
||
|
|
a lightweight RDF tool-set for resource limited or performance critical
|
||
|
|
applications.
|
||
|
|
|
||
|
|
%package devel
|
||
|
|
Summary: Development libraries and headers for %{name}
|
||
|
|
Requires: %{name}%{_isa} = %{version}-%{release}
|
||
|
|
|
||
|
|
%description devel
|
||
|
|
%{name} is a lightweight C library for storing Resource Description
|
||
|
|
Framework (RDF) data in memory.
|
||
|
|
|
||
|
|
This package contains the headers and development libraries for %{name}.
|
||
|
|
|
||
|
|
%prep
|
||
|
|
%autosetup -p1
|
||
|
|
# Do not run ldconfig, and add our optflags
|
||
|
|
sed -i -e "s|bld.add_post_fun(autowaf.run_ldconfig)||" \
|
||
|
|
-e "s|cflags = [ '-DSORD_INTERNAL' ]\
|
||
|
|
|cflags = [ '-DSORD_INTERNAL' ] + '%optflags'.split(' ') |" wscript
|
||
|
|
|
||
|
|
%build
|
||
|
|
%set_build_flags
|
||
|
|
export LINKFLAGS="%{__global_ldflags}"
|
||
|
|
%{__python3} waf configure \
|
||
|
|
--prefix=%{_prefix} \
|
||
|
|
--libdir=%{_libdir} \
|
||
|
|
--mandir=%{_mandir} \
|
||
|
|
--datadir=%{_datadir} \
|
||
|
|
--docdir=%{_pkgdocdir} \
|
||
|
|
--test \
|
||
|
|
--docs
|
||
|
|
%{__python3} waf build -v %{?_smp_mflags}
|
||
|
|
|
||
|
|
%install
|
||
|
|
DESTDIR=%{buildroot} %{__python3} waf install
|
||
|
|
chmod +x %{buildroot}%{_libdir}/lib%{name}-%{maj}.so.*
|
||
|
|
install -pm 644 AUTHORS NEWS README.md %{buildroot}%{_pkgdocdir}
|
||
|
|
|
||
|
|
%files
|
||
|
|
%{_pkgdocdir}
|
||
|
|
%exclude %{_pkgdocdir}/%{name}-%{maj}/
|
||
|
|
%exclude %{_pkgdocdir}/COPYING
|
||
|
|
%license COPYING
|
||
|
|
%{_libdir}/lib%{name}-%{maj}.so.*
|
||
|
|
%{_bindir}/sordi
|
||
|
|
%{_bindir}/sord_validate
|
||
|
|
%{_mandir}/man1/%{name}*.1*
|
||
|
|
|
||
|
|
%files devel
|
||
|
|
%{_pkgdocdir}/%{name}-%{maj}/
|
||
|
|
%{_libdir}/lib%{name}-%{maj}.so
|
||
|
|
%{_libdir}/pkgconfig/%{name}-%{maj}.pc
|
||
|
|
%{_includedir}/%{name}-%{maj}/
|
||
|
|
%{_mandir}/man3/%{name}*.3*
|
||
|
|
|
||
|
|
%changelog
|
||
|
|
* Mon Jun 13 2022 lin zhang <lin.zhang@turbolinux.com.cn> - 0.16.8-1
|
||
|
|
- Initial Packaging
|