liblastfm/liblastfm.spec

137 lines
3.8 KiB
RPMSpec
Raw Normal View History

Name: liblastfm
Version: 1.1.0
Release: 1mamba
Summary: A collection of libraries to help integrate Last.fm services into desktop software
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://liblastfm.sourceforge.net/
Source: git://github.com/lastfm/liblastfm.git/master/liblastfm-%{version}.tar.bz2
#Source: http://downloads.sourceforge.net/project/liblastfm/liblastfm-%{version}.tar.gz
Patch0: liblastfm-0.3.3-curl.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: ldconfig
BuildRequires: libfftw-devel
BuildRequires: libgcc
BuildRequires: libqt4-devel
BuildRequires: libqt5-devel
BuildRequires: libsamplerate-devel
BuildRequires: libstdc++6-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
liblastfm is a collection of libraries to help you integrate Last.fm services into your rich desktop software.
%package devel
Summary: Static libraries and header for %{name}
Group: Development/Libraries
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel
liblastfm is a collection of libraries to help you integrate Last.fm services into.
This package contains header files needed for development.
%package -n %{name}5
Summary: Static libraries and header for %{name} for Qt5
Group: System/Libraries
%description -n %{name}5
liblastfm is a collection of libraries to help you integrate Last.fm services into your rich desktop software.
%package -n %{name}5-devel
Summary: Static libraries and header for %{name} for Qt5
Group: Development/Libraries
Requires: %{name}5 = %{?epoch:%epoch:}%{version}-%{release}
%description -n %{name}5-devel
liblastfm is a collection of libraries to help you integrate Last.fm services into This package contains header files needed for development.
%debug_package
%prep
%setup -q
#%patch0 -p1
%build
%cmake_kde5 -d build-qt5 \
-DBUILD_TESTS=OFF
%make
cd ..
%cmake -d build \
-DBUILD_WITH_QT4:BOOL=ON
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
%makeinstall -C build-qt5
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%post -n %{name}5 -p /sbin/ldconfig
%postun -n %{name}5 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/liblastfm.so.*
%{_libdir}/liblastfm_fingerprint.so.*
%doc COPYING
%files devel
%defattr(-,root,root)
%dir %{_includedir}/lastfm
%{_includedir}/lastfm/*.h
%{_libdir}/liblastfm.so
%{_libdir}/liblastfm_fingerprint.so
%files -n %{name}5
%defattr(-,root,root)
%{_libdir}/liblastfm5.so.*
%{_libdir}/liblastfm_fingerprint5.so.*
%doc COPYING
%files -n %{name}5-devel
%defattr(-,root,root)
%dir %{_includedir}/lastfm5
%{_includedir}/lastfm5/*.h
%{_libdir}/liblastfm5.so
%{_libdir}/liblastfm_fingerprint5.so
%changelog
* Sun May 31 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 1.1.0-1mamba
- update to 1.1.0
* Wed Dec 31 2014 Automatic Build System <autodist@mambasoft.it> 1.0.9-1mamba
- automatic version update by autodist
* Sun May 18 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.8-2mamba
- force building against qt4 instead of qt5 (breaks amarok)
* Tue May 06 2014 Automatic Build System <autodist@mambasoft.it> 1.0.8-1mamba
- automatic version update by autodist
* Mon Apr 22 2013 Automatic Build System <autodist@mambasoft.it> 1.0.7-1mamba
- update to 1.0.7
* Sun Feb 17 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.3-1mamba
- update to 1.0.3
* Tue May 15 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.3-1mamba
- update to 0.3.3
* Thu Sep 10 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.0-1mamba
- package created by autospec