From: Elan Ruusamäe Date: Mon, 12 Sep 2016 21:24:55 +0000 (+0300) Subject: up to 1.0.9; new SONAME X-Git-Tag: auto/th/liblastfm-1.0.9-1~5 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=84425f4b388ae6ea289f03b4be18ad441012207a;p=packages%2Fliblastfm.git up to 1.0.9; new SONAME --- diff --git a/liblastfm.spec b/liblastfm.spec index b3e3e0b..49747c4 100644 --- a/liblastfm.spec +++ b/liblastfm.spec @@ -1,18 +1,19 @@ Summary: Library to access Last.fm features Name: liblastfm -Version: 0.3.3 -Release: 2 +Version: 1.0.9 +Release: 1 License: GPL v3 Group: Libraries -Source0: http://github.com/mxcl/liblastfm/tarball/%{version}/%{name}-%{version}.tar.gz -# Source0-md5: fe339bf46aefc515c251200d10262f79 +Source0: https://github.com/lastfm/liblastfm/archive/%{version}/%{name}-%{version}.tar.gz +# Source0-md5: 8748f423f66f2fbc38c39f9153d01a71 Patch0: %{name}-ruby19.patch -URL: http://github.com/mxcl/liblastfm/ +URL: https://github.com/lastfm/liblastfm BuildRequires: QtGui-devel BuildRequires: QtNetwork-devel BuildRequires: QtSql-devel BuildRequires: QtTest-devel BuildRequires: QtXml-devel +BuildRequires: cmake >= 2.8.6 BuildRequires: fftw3-single-devel BuildRequires: libsamplerate-devel BuildRequires: pkgconfig @@ -42,23 +43,20 @@ Header files for %{name}. Pliki nagłówkowe %{name}. %prep -%setup -q -n mxcl-%{name}-1c739eb -%patch0 -p0 - -find -name *.pro | xargs %{__sed} -i -e "/target.path/ s/lib/%{_lib}/g" +%setup -q +#%patch0 -p0 %build -%configure \ - --prefix %{_prefix} \ - --libdir %{_libdir} -%{__make} \ - CXX="%{__cc}" \ - CXXFLAGS="%{rpmcxxflags} -fno-operator-names -fPIC" +install -d build +cd build +%cmake \ + -DBUILD_WITH_QT4:BOOL=ON \ + -DBUILD_FINGERPRINT:BOOL=ON \ + .. %install rm -rf $RPM_BUILD_ROOT - -%{__make} install \ +%{__make} -C build install \ DESTDIR=$RPM_BUILD_ROOT %clean @@ -69,15 +67,14 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%doc README +%doc README.md %attr(755,root,root) %{_libdir}/%{name}.so.*.* -%attr(755,root,root) %ghost %{_libdir}/%{name}.so.0 +%attr(755,root,root) %ghost %{_libdir}/%{name}.so.1 %attr(755,root,root) %{_libdir}/%{name}_fingerprint.so.*.* -%attr(755,root,root) %ghost %{_libdir}/%{name}_fingerprint.so.0 +%attr(755,root,root) %ghost %{_libdir}/%{name}_fingerprint.so.1 %files devel %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/%{name}.so %attr(755,root,root) %{_libdir}/%{name}_fingerprint.so %{_includedir}/lastfm -%{_includedir}/lastfm.h