sord/sord.spec

86 lines
2.4 KiB
RPMSpec
Raw Permalink Normal View History

2022-06-16 17:11:45 +08:00
%global maj 0
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
Name: sord
2023-02-01 21:40:07 +08:00
Version: 0.16.10
2022-06-16 17:11:45 +08:00
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
BuildRequires: boost-devel
BuildRequires: doxygen
BuildRequires: graphviz
BuildRequires: glib2-devel
BuildRequires: python3
BuildRequires: serd-devel >= 0.30.0
BuildRequires: gcc
BuildRequires: gcc-c++
2023-02-01 21:40:07 +08:00
BuildRequires: pcre-devel
2022-06-16 17:11:45 +08:00
%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
2023-02-01 21:40:07 +08:00
* Mon Jan 02 2023 lin zhang <lin.zhang@turbolinux.com.cn> - 0.16.10-1
- update to 0.16.10
2022-06-16 17:11:45 +08:00
* Mon Jun 13 2022 lin zhang <lin.zhang@turbolinux.com.cn> - 0.16.8-1
- Initial Packaging