a63d192
Name:           vamp-plugin-sdk
b516465
Version:        2.0
4ea15c0
Release:        1%{?dist}
a63d192
Summary:        An API for audio analysis and feature extraction plugins
a63d192
a63d192
Group:          System Environment/Libraries
a63d192
License:        BSD
a63d192
URL:            http://www.vamp-plugins.org/
a63d192
Source0:        http://downloads.sourceforge.net/vamp/vamp-plugin-sdk-%{version}.tar.gz
b516465
Patch0:         %{name}-2.0-libdir.patch
a63d192
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
a63d192
a63d192
BuildRequires:  libsndfile-devel
a63d192
#Requires:
a63d192
a63d192
%description
a63d192
Vamp is an API for C and C++ plugins that process sampled audio data
a63d192
to produce descriptive output (measurements or semantic observations).
a63d192
a63d192
%package        devel
a63d192
Summary:        Development files for %{name}
a63d192
Group:          Development/Libraries
a63d192
Requires:       %{name} = %{version}-%{release}
a63d192
Requires:       pkgconfig
a63d192
a63d192
%description    devel
a63d192
The %{name}-devel package contains libraries and header files for
a63d192
developing applications that use %{name}.
a63d192
a63d192
%package        static
a63d192
Summary:        Static libraries for %{name}
a63d192
Group:          Development/Libraries
a63d192
Requires:       %{name}-devel = %{version}-%{release}
a63d192
a63d192
%description    static
a63d192
The %{name}-static package contains library files for
a63d192
developing static applications that use %{name}.
a63d192
a63d192
a63d192
%prep
4ea15c0
%setup -q
b516465
%patch0 -p1 -b .libdir
a63d192
a63d192
a63d192
%build
b516465
%configure
b516465
make %{?_smp_mflags}
a63d192
a63d192
a63d192
%install
a63d192
rm -rf $RPM_BUILD_ROOT
a63d192
# fix libdir
a63d192
find . -name '*.pc.in' -exec sed -i 's|/lib|/%{_lib}|' {} ';'
b516465
make install DESTDIR=$RPM_BUILD_ROOT
a63d192
a63d192
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
a63d192
a63d192
# create Makefile for examples
a63d192
cd examples
a63d192
echo CXXFLAGS=$RPM_OPT_FLAGS -fpic >> Makefile
a63d192
echo bundle: `ls *.o` >> Makefile
a63d192
echo -e "\t"g++ \$\(CXXFLAGS\) -shared -Wl,-Bsymbolic \
a63d192
     -o vamp-example-plugins.so \
a63d192
     *.o \$\(pkg-config --libs vamp-sdk\) >> Makefile
a63d192
echo `ls *.cpp`: >> Makefile
a63d192
echo -e "\t"g++ \$\(CXXFLAGS\) -c $*.cpp >> Makefile
a63d192
echo clean: >> Makefile
a63d192
echo -e "\t"-rm *.o *.so >> Makefile
a63d192
# clean directory up so we can package the sources
a63d192
make clean
a63d192
a63d192
a63d192
%clean
a63d192
rm -rf $RPM_BUILD_ROOT
a63d192
a63d192
a63d192
%post -p /sbin/ldconfig
a63d192
a63d192
%postun -p /sbin/ldconfig
a63d192
a63d192
a63d192
%files
a63d192
%defattr(-,root,root,-)
a63d192
%doc COPYING README
a63d192
%{_libdir}/*.so.*
b516465
%{_libdir}/vamp
a63d192
a63d192
%files devel
a63d192
%defattr(-,root,root,-)
a63d192
%doc examples
b516465
%{_bindir}/vamp-*
a63d192
%{_includedir}/*
a63d192
%{_libdir}/*.so
a63d192
%{_libdir}/pkgconfig/*.pc
a63d192
a63d192
%files static
a63d192
%defattr(-,root,root,-)
a63d192
%{_libdir}/*.a
a63d192
a63d192
a63d192
%changelog
b516465
* Sun Dec 14 2008 Michel Salim <salimma@fedoraproject.org> - 2.0-1
b516465
- Update to 2.0
b516465
4ea15c0
* Thu Jul 17 2008 Michel Alexandre Salim <salimma@fedoraproject.org> - 1.3-1
4ea15c0
- Update to 1.3
4ea15c0
220dea1
* Thu Jan 31 2008 Michel Salim <michel.sylvan@gmail.com> - 1.1b-4
220dea1
- Add some #includes, needed due to GCC 4.3's header dependency cleanup
220dea1
a63d192
* Mon Jan 28 2008 Michel Salim <michel.sylvan@gmail.com> - 1.1b-3
a63d192
- Add examples to -devel subpackage
a63d192
- Fix .pc files
a63d192
- Preserve timestamps when installing
a63d192
a63d192
* Sun Jan 27 2008 Michel Salim <michel.sylvan@gmail.com> - 1.1b-2
a63d192
- Add missing build requirement on libsndfile-devel
a63d192
a63d192
* Wed Jan 16 2008 Michel Salim <michel.sylvan@gmail.com> - 1.1b-1
a63d192
- Initial Fedora package