3 %bcond_with tests # build with tests. tests need active internet connection
5 Summary: C++ wrapper for the Echo Nest API
10 Source0: http://files.lfranchi.com/%{name}-%{version}.tar.bz2
11 # Source0-md5: 96d98dbc5b3b155b277a9901d1133c5e
13 URL: https://projects.kde.org/projects/playground/libs/libechonest
14 BuildRequires: QtNetwork-devel
16 BuildRequires: pkgconfig
17 BuildRequires: qjson-devel
18 BuildRequires: qt4-build
19 BuildRequires: rpmbuild(macros) >= 1.605
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 libechonest is a collection of C++/Qt classes designed to make a
24 developer's life easy when trying to use the APIs provided by The Echo
28 Summary: Development files for %{name}
29 Requires: %{name} = %{version}-%{release}
32 The %{name}-devel package contains libraries and header files for
33 developing applications that use %{name}.
39 install -d %{_target_platform}
40 cd %{_target_platform}
45 export PKG_CONFIG_PATH=$RPM_BUILD_ROOT%{_npkgconfigdir}:$RPM_BUILD_ROOT%{_pkgconfigdir}
46 test "$(pkg-config --modversion libechonest)" = "%{version}"
51 rm -rf $RPM_BUILD_ROOT
52 %{__make} -C %{_target_platform} install/fast \
53 DESTDIR=$RPM_BUILD_ROOT
56 rm -rf $RPM_BUILD_ROOT
58 %post -p /sbin/ldconfig
59 %postun -p /sbin/ldconfig
62 %defattr(644,root,root,755)
63 %doc AUTHORS COPYING README TODO
64 %attr(755,root,root) %{_libdir}/libechonest.so.*.*.*
65 # yes, SONAME is "libechonest.so.2.1"
66 %ghost %{_libdir}/libechonest.so.2.1
69 %defattr(644,root,root,755)
70 %{_includedir}/echonest/
71 %{_libdir}/libechonest.so
72 %{_pkgconfigdir}/libechonest.pc