852d0a3
%global maj 0
3162b1e
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
852d0a3
852d0a3
Name:           serd
32887f7
Version:        0.20.0
32887f7
Release:        1%{?dist}
852d0a3
Summary:        A lightweight C library for RDF syntax
852d0a3
852d0a3
Group:          System Environment/Libraries
852d0a3
License:        ISC
852d0a3
URL:            http://drobilla.net/software/serd/
852d0a3
Source0:        http://download.drobilla.net/%{name}-%{version}.tar.bz2
852d0a3
852d0a3
BuildRequires:  doxygen
852d0a3
BuildRequires:  graphviz
852d0a3
BuildRequires:  glib2-devel
852d0a3
BuildRequires:  python
852d0a3
852d0a3
%description
852d0a3
%{name} is a lightweight C library for RDF syntax which supports reading and 
852d0a3
writing Turtle and NTriples.
852d0a3
852d0a3
Serd is not intended to be a swiss-army knife of RDF syntax, but rather is 
852d0a3
suited to resource limited or performance critical applications (e.g. 
852d0a3
converting many gigabytes of NTriples to Turtle), or situations where a 
852d0a3
simple reader/writer with minimal dependencies is ideal (e.g. in LV2 
852d0a3
implementations or embedded applications).is a library to make the use of 
852d0a3
LV2 plugins as simple as possible for applications. 
852d0a3
852d0a3
%package devel
852d0a3
Summary:        Development libraries and headers for %{name}
852d0a3
Group:          Development/Libraries
852d0a3
Requires:       %{name}%{_isa} = %{version}-%{release}
852d0a3
852d0a3
%description devel
852d0a3
%{name} is a lightweight C library for RDF syntax which supports reading and 
852d0a3
writing Turtle and NTriples.
852d0a3
852d0a3
This package contains the headers and development libraries for %{name}.
852d0a3
852d0a3
%prep
852d0a3
%setup -q
852d0a3
# we'll run ldconfig
852d0a3
sed -i -e 's|bld.add_post_fun(autowaf.run_ldconfig)||' wscript
852d0a3
852d0a3
%build
852d0a3
export CFLAGS="%{optflags}"
852d0a3
./waf configure \
852d0a3
    --prefix=%{_prefix} \
852d0a3
    --libdir=%{_libdir} \
852d0a3
    --mandir=%{_mandir} \
852d0a3
    --datadir=%{_datadir} \
3162b1e
    --docdir=%{_pkgdocdir} \
852d0a3
    --test \
852d0a3
    --docs 
852d0a3
./waf build -v %{?_smp_mflags}
852d0a3
852d0a3
%install
852d0a3
DESTDIR=%{buildroot} ./waf install
852d0a3
chmod +x %{buildroot}%{_libdir}/lib%{name}-%{maj}.so.*
3162b1e
install -pm 644 AUTHORS COPYING NEWS README %{buildroot}%{_pkgdocdir}
852d0a3
852d0a3
%post -p /sbin/ldconfig
852d0a3
852d0a3
%postun -p /sbin/ldconfig
852d0a3
852d0a3
%files
3162b1e
%dir %{_pkgdocdir}/
3162b1e
%{_pkgdocdir}/AUTHORS
3162b1e
%{_pkgdocdir}/COPYING
3162b1e
%{_pkgdocdir}/NEWS
3162b1e
%{_pkgdocdir}/README
852d0a3
%{_libdir}/lib%{name}-%{maj}.so.*
852d0a3
%{_bindir}/serdi
852d0a3
%{_mandir}/man1/serdi.1*
852d0a3
852d0a3
%files devel
852d0a3
%{_libdir}/lib%{name}-%{maj}*.so
852d0a3
%{_libdir}/pkgconfig/%{name}*.pc
852d0a3
%{_includedir}/%{name}-%{maj}/
3162b1e
%{_pkgdocdir}/%{name}-%{maj}/
852d0a3
%{_mandir}/man3/*.3*
852d0a3
852d0a3
%changelog
32887f7
* Wed Aug 20 2014 Brendan Jones <brendan.jones.it@gmail.com> 0.20.0-1
32887f7
- Update to 0.20.0
32887f7
41361ab
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.18.2-5
41361ab
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
41361ab
a21414a
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.18.2-4
a21414a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
a21414a
3162b1e
* Sat Dec 14 2013 Ville Skyttä <ville.skytta@iki.fi> - 0.18.2-3
3162b1e
- Install docs to %%{_pkgdocdir} where available (#994091).
3162b1e
9141ec5
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.18.2-2
9141ec5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
9141ec5
5599ea4
* Tue May 21 2013 Brendan Jones <brendan.jones.it@gmail.com> 0.18.2-1
5599ea4
- New upstream release
5599ea4
452f847
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.18.0-2
452f847
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
452f847
805b656
* Sat Dec 15 2012 Brendan Jones <brendan.jones.it@gmail.com> 0.18.0-1
805b656
- New upstream release
805b656
c1ed051
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14.0-2
c1ed051
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
c1ed051
e455e88
* Fri Apr 20 2012 Brendan Jones <brendan.jones.it@gmail.com> - 0.14.0-1
e455e88
- New upstream release. 
e455e88
852d0a3
* Sat Jan 14 2012 Brendan Jones <brendan.jones.it@gmail.com> - 0.5.0-3
852d0a3
- Move man1 file, furtherqualify wildcards. 
852d0a3
852d0a3
* Sat Jan 14 2012 Brendan Jones <brendan.jones.it@gmail.com> - 0.5.0-2
852d0a3
- License to ISC, remove tabs
852d0a3
852d0a3
* Fri Dec 23 2011 Brendan Jones <brendan.jones.it@gmail.com> - 0.5.0-1
852d0a3
- Initial build