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)
22 # Unresolved symbol __stack_chk_fail in libechonest.so.2.1.0
24 %define skip_post_check_so libechonest.so.%{version}
28 libechonest is a collection of C++/Qt classes designed to make a
29 developer's life easy when trying to use the APIs provided by The Echo
33 Summary: Development files for %{name}
34 Requires: %{name} = %{version}-%{release}
37 The %{name}-devel package contains libraries and header files for
38 developing applications that use %{name}.
44 install -d %{_target_platform}
45 cd %{_target_platform}
50 export PKG_CONFIG_PATH=$(pwd)
51 test "$(pkg-config --modversion libechonest)" = "%{version}"
56 rm -rf $RPM_BUILD_ROOT
57 %{__make} -C %{_target_platform} install/fast \
58 DESTDIR=$RPM_BUILD_ROOT
61 rm -rf $RPM_BUILD_ROOT
63 %post -p /sbin/ldconfig
64 %postun -p /sbin/ldconfig
67 %defattr(644,root,root,755)
68 %doc AUTHORS COPYING README TODO
69 %attr(755,root,root) %{_libdir}/libechonest.so.*.*.*
70 # yes, SONAME is "libechonest.so.2.1"
71 %ghost %{_libdir}/libechonest.so.2.1
74 %defattr(644,root,root,755)
75 %{_includedir}/echonest/
76 %{_libdir}/libechonest.so
77 %{_pkgconfigdir}/libechonest.pc