From 0a8f17b30d77374ab4d821aabe88f10fcb621347 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 17:44:42 +0100 Subject: [PATCH] package created by silvan using the webbuild interface [release 0.18.2-1mamba;Thu Jan 31 2013] --- README.md | 3 ++ serd.spec | 84 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 87 insertions(+) create mode 100644 serd.spec diff --git a/README.md b/README.md index 0d6c20b..807ad1e 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # serd +Serd is a lightweight C library for RDF syntax which supports reading and writing Turtle and NTriples. +Serd is not intended to be a swiss-army knife of RDF syntax, but rather is suited to resource limited or performance critical applications (e.g. converting many gigabytes of NTriples to Turtle), or situations where a simple reader/writer with minimal dependencies is ideal (e.g. in LV2 implementations or embedded applications). + diff --git a/serd.spec b/serd.spec new file mode 100644 index 0000000..a0c9e9a --- /dev/null +++ b/serd.spec @@ -0,0 +1,84 @@ +Name: serd +Version: 0.18.2 +Release: 1mamba +Summary: A lightweight C library for RDF syntax which supports reading and writing Turtle and NTriples +Group: Applications/Multimedia +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://drobilla.net/software/serd/ +Source: http://download.drobilla.net/serd-%{version}.tar.bz2 +License: MIT +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +## AUTOBUILDREQ-END +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Serd is a lightweight C library for RDF syntax which supports reading and writing Turtle and NTriples. +Serd is not intended to be a swiss-army knife of RDF syntax, but rather is suited to resource limited or performance critical applications (e.g. converting many gigabytes of NTriples to Turtle), or situations where a simple reader/writer with minimal dependencies is ideal (e.g. in LV2 implementations or embedded applications). + +%package -n lib%{name} +Group: System/Libraries +Summary: A lightweight C library for RDF syntax which supports reading and writing Turtle and NTriples + +%description -n lib%{name} +This package contains shared libraries for %{name}. + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +## note: you can add this requirement if .pc files are provided by this package +#Requires: pkg-config + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + + +%debug_package + +%prep +%setup -q + +%build +./waf configure \ + --prefix=%{_prefix} \ + --libdir=%{_libdir} + +./waf %{?_smp_mflags} build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +./waf install --destdir=%{buildroot} + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_bindir}/serdi +%{_mandir}/man1/serdi.1.gz + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libserd-0.so.* +%doc AUTHORS COPYING + +%files -n lib%{name}-devel +%defattr(-,root,root) +%dir %{_includedir}/serd-0 +%dir %{_includedir}/serd-0/serd +%{_includedir}/serd-0/serd/serd.h +%{_libdir}/libserd-0.so +%{_libdir}/pkgconfig/serd-0.pc +%doc NEWS README + + +%changelog +* Thu Jan 31 2013 Silvan Calarco 0.18.2-1mamba +- package created by silvan using the webbuild interface