[packages/libechonest] new, version 2.1.0
glen
glen at pld-linux.org
Sun Jan 12 13:56:53 CET 2014
commit 3b62072fc3aecce528084db3e59899adb6fb101b
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun Jan 12 14:56:20 2014 +0200
new, version 2.1.0
based on fedora package
3f7e47d0669032cf10a7e66201fa872fc1283009
libechonest.spec | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 70 insertions(+)
---
diff --git a/libechonest.spec b/libechonest.spec
new file mode 100644
index 0000000..c379470
--- /dev/null
+++ b/libechonest.spec
@@ -0,0 +1,70 @@
+#
+# Conditional build:
+%bcond_with tests # build with tests. tests need active internet connection
+
+Summary: C++ wrapper for the Echo Nest API
+Name: libechonest
+Version: 2.1.0
+Release: 1
+License: GPL v2+
+Source0: http://files.lfranchi.com/%{name}-%{version}.tar.bz2
+# Source0-md5: 96d98dbc5b3b155b277a9901d1133c5e
+Group: Libraries
+URL: https://projects.kde.org/projects/playground/libs/libechonest
+BuildRequires: QtNetwork-devel
+BuildRequires: cmake
+BuildRequires: qjson-devel
+BuildRequires: rpmbuild(macros) >= 1.605
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+libechonest is a collection of C++/Qt classes designed to make a
+developer's life easy when trying to use the APIs provided by The Echo
+Nest.
+
+%package devel
+Summary: Development files for %{name}
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+%prep
+%setup -q
+
+%build
+install -d %{_target_platform}
+cd %{_target_platform}
+%cmake ..
+%{__make}
+
+%if %{with tests}
+export PKG_CONFIG_PATH=$RPM_BUILD_ROOT%{_npkgconfigdir}:$RPM_BUILD_ROOT%{_pkgconfigdir}
+test "$(pkg-config --modversion libechonest)" = "%{version}"
+%{__make} test
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} -C %{_target_platform} install/fast \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS COPYING README TODO
+%attr(755,root,root) %{_libdir}/libechonest.so.*.*.*
+# yes, SONAME is "libechonest.so.2.1"
+%ghost %{_libdir}/libechonest.so.2.1
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/echonest/
+%{_libdir}/libechonest.so
+%{_pkgconfigdir}/libechonest.pc
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libechonest.git/commitdiff/3b62072fc3aecce528084db3e59899adb6fb101b
More information about the pld-cvs-commit
mailing list