2d9008
%global maj 0
18b2a6
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
2d9008
2d9008
Name:       sratom
58bd59
Version:    0.6.2
d3c0b1
Release:    2%{?dist}
2d9008
Summary:    A C library for serializing LV2 plugins
2d9008
2d9008
Group:      System Environment/Libraries
2d9008
License:    MIT
2d9008
URL:        http://drobilla.net/software/%{name}/
2d9008
Source0:    http://download.drobilla.net/%{name}-%{version}.tar.bz2
8aac05
BuildRequires:  python2
58bd59
BuildRequires:  python2-devel
2d9008
BuildRequires:  doxygen
2d9008
BuildRequires:  graphviz
58bd59
BuildRequires:  sord-devel >= 0.14.0
58bd59
BuildRequires:  serd-devel >= 0.30.0
4adc68
BuildRequires:  lv2-devel >= 1.10.0
4adc68
BuildRequires:  gcc
2d9008
2d9008
%description
2d9008
%{name} is a new C library for serializing LV2 atoms to/from Turtle. It is 
2d9008
intended to be a full serialization solution for LV2 atoms, allowing 
2d9008
implementations to serialize binary atoms to strings and read them back again. 
2d9008
This is particularly useful for saving plugin state, or implementing plugin 
2d9008
control with network transparency.
2d9008
2d9008
%package devel
2d9008
Summary:    Development libraries and headers for %{name}
2d9008
Group:      Development/Libraries
2d9008
Requires:   %{name}%{_isa} = %{version}-%{release}
2d9008
2d9008
%description devel
2d9008
%{name} is a C library for serializing LV2 atoms to/from Turtle. It is 
2d9008
intended to be a full serialization solution for LV2 atoms, allowing 
2d9008
implementations to serialize binary atoms to strings and read them back again. 
2d9008
This is particularly useful for saving plugin state, or implementing plugin 
2d9008
control with network transparency.
2d9008
2d9008
This package contains the headers and development libraries for %{name}.
2d9008
2d9008
%prep
2d9008
%setup -q 
2d9008
2d9008
# for packagers sake, build the tests with debug symbols
2d9008
sed -i -e "s| '-ftest-coverage'\]|\
2d9008
 '-ftest-coverage'\] + '%{optflags}'.split(' ')|" wscript
2d9008
2d9008
%build
bb898f
%set_build_flags
bb898f
%{__python2} waf configure -v \
2d9008
    --prefix=%{_prefix} \
2d9008
    --libdir=%{_libdir} \
2d9008
    --mandir=%{_mandir} \
2d9008
    --datadir=%{_datadir} \
18b2a6
    --docdir=%{_pkgdocdir} \
2d9008
    --test \
2d9008
    --docs 
bb898f
%{__python2} waf build -v %{?_smp_mflags}
2d9008
2d9008
%install
bb898f
DESTDIR=%{buildroot} %{__python2} waf install
2d9008
chmod +x %{buildroot}%{_libdir}/lib%{name}-0.so.*
18b2a6
install -pm 644 COPYING NEWS README %{buildroot}%{_pkgdocdir}
2d9008
4adc68
%check
4adc68
./build/sratom_test
2d9008
2d9008
%files
18b2a6
%{_pkgdocdir}
18b2a6
%exclude %{_pkgdocdir}/%{name}-%{maj}/
4adc68
%exclude %{_pkgdocdir}/COPYING
4adc68
%license COPYING
2d9008
%{_libdir}/lib%{name}-%{maj}.so.*
2d9008
2d9008
%files devel
18b2a6
%{_pkgdocdir}/%{name}-%{maj}/
2d9008
%{_libdir}/lib%{name}-%{maj}.so
2d9008
%{_libdir}/pkgconfig/%{name}-%{maj}.pc
2d9008
%{_includedir}/%{name}-%{maj}/
2d9008
%{_mandir}/man3/*
2d9008
2d9008
%changelog
d3c0b1
* Tue Jul 31 2018 Florian Weimer <fweimer@redhat.com> - 0.6.2-2
d3c0b1
- Rebuild with fixed binutils
d3c0b1
58bd59
* Mon Jul 30 2018 Guido Aulisi <guido.aulisi@gmail.com> - 0.6.2-1
58bd59
- Update to 0.6.2
58bd59
- Remove ldconfig scriptlets
58bd59
bb898f
* Sun Jul 15 2018 Guido Aulisi <guido.aulisi@gmail.com> - 0.6.0-6
bb898f
- Fix FTBFS due to the move of /usr/bin/python into a separate package
bb898f
fa1913
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-5
fa1913
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
fa1913
2fa00f
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-4
2fa00f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2fa00f
8ce094
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-3
8ce094
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
8ce094
c26a13
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-2
c26a13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
c26a13
4adc68
* Tue Mar 14 2017 Guido Aulisi <guido.aulisi@gmail.com> - 0.6.0-1
4adc68
- Update to 0.6.0
4adc68
- Use hardened LDFLAGS
4adc68
- Enable tests
4adc68
- Use license macro
4adc68
bad486
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.6-5
bad486
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
bad486
4d65d2
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.6-4
4d65d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
4d65d2
8282b4
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.6-3
8282b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
8282b4
649f36
* Wed Aug 20 2014 Kevin Fenzi <kevin@scrye.com> - 0.4.6-2
649f36
- Rebuild for rpm bug 1131892
649f36
fbed46
* Wed Aug 20 2014 Brendan Jones <brendan.jones.it@gmail.com> 0.4.6-1
fbed46
- Update to 0.4.6
fbed46
ff1205
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.4-3
ff1205
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
ff1205
25b9c3
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.4-2
25b9c3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
25b9c3
aab503
* Fri Jan 10 2014 Brendan Jones <brendan.jones.it@gmail.com> 0.4.4-1
aab503
- New upstream release
aab503
18b2a6
* Sun Dec 15 2013 Ville Skyttä <ville.skytta@iki.fi> - 0.4.2-6
18b2a6
- Install docs to %%{_pkgdocdir} where available (#994105).
18b2a6
9b3037
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.2-5
9b3037
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
9b3037
910b35
* Tue May 21 2013 Brendan Jones <brendan.jones.it@gmail.com> 0.4.2-4
910b35
- Rebuilt again
910b35
e68462
* Tue May 21 2013 Brendan Jones <brendan.jones.it@gmail.com> 0.4.2-3
e68462
- Rebuild for new sord
e68462
792f31
* Tue May 21 2013 Brendan Jones <brendan.jones.it@gmail.com> 0.4.2-2
792f31
- Rebuild for new sord
792f31
792f31
* Tue May 21 2013 Brendan Jones <brendan.jones.it@gmail.com> 0.4.2-1
792f31
- New upstream release
792f31
ddc180
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-5
ddc180
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
ddc180
7a633b
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.0-4
7a633b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
7a633b
2d9008
* Sat May 12 2012 Brendan Jones <brendan.jones.it@gmail.com> - 0.2.0-3
2d9008
- Temporarily remove tests - http://dev.drobilla.net/ticket/832 
2d9008
2d9008
* Fri Apr 20 2012 Brendan Jones <brendan.jones.it@gmail.com> - 0.2.0-2
2d9008
- Correct spelling and add missing build requires 
2d9008
2d9008
* Fri Apr 20 2012 Brendan Jones <brendan.jones.it@gmail.com> - 0.2.0-1
2d9008
- Initial build