[packages/liblastfm] - pl, -devel dependencies; release 2
qboosh
qboosh at pld-linux.org
Mon Jun 12 19:01:52 CEST 2017
commit 4ebd4315baccc91192d6282576e615090c482913
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Jun 12 19:03:02 2017 +0200
- pl, -devel dependencies; release 2
liblastfm.spec | 105 ++++++++++++++++++++++++++++++++++++++-------------------
1 file changed, 71 insertions(+), 34 deletions(-)
---
diff --git a/liblastfm.spec b/liblastfm.spec
index 6616da3..7a69782 100644
--- a/liblastfm.spec
+++ b/liblastfm.spec
@@ -2,16 +2,18 @@
# - qt5 build fails to find files if rpm BUILD dir is symlink
#
# Conditional build:
-%bcond_without qt4 # Qt4
-%bcond_without qt5 # Qt5
-%bcond_without fingerprint # build/include liblastfm_fingerprint
+%bcond_without qt4 # Qt4 based library
+%bcond_without qt5 # Qt5 based library
+%bcond_without fingerprint # liblastfm_fingerprint libraries
-Summary: Library to access Last.fm features
+Summary: Qt4 based library to access Last.fm features
+Summary(pl.UTF-8): Oparta na Qt4 biblioteka pozwalająca na dostep do funkcjonalności Last.fm
Name: liblastfm
Version: 1.0.9
-Release: 1
+Release: 2
License: GPL v3
Group: Libraries
+#Source0Download: https://github.com/lastfm/liblastfm/releases
Source0: https://github.com/lastfm/liblastfm/archive/%{version}/%{name}-%{version}.tar.gz
# Source0-md5: 8748f423f66f2fbc38c39f9153d01a71
URL: https://github.com/lastfm/liblastfm
@@ -24,32 +26,32 @@ BuildRequires: libsamplerate-devel
BuildRequires: pkgconfig
%endif
%if %{with qt4}
-BuildRequires: QtDBus-devel
-BuildRequires: QtGui-devel
-BuildRequires: QtNetwork-devel
-BuildRequires: QtTest-devel
-BuildRequires: QtXml-devel
-BuildRequires: qt4-build
-BuildRequires: qt4-qmake
+BuildRequires: QtCore-devel >= 4.8
+BuildRequires: QtDBus-devel >= 4.8
+BuildRequires: QtNetwork-devel >= 4.8
+BuildRequires: QtTest-devel >= 4.8
+BuildRequires: QtXml-devel >= 4.8
+BuildRequires: qt4-build >= 4.8
+BuildRequires: qt4-qmake >= 4.8
%if %{with fingerprint}
-BuildRequires: QtSql-devel
+BuildRequires: QtSql-devel >= 4.8
%endif
%endif
%if %{with qt5}
-BuildRequires: Qt5DBus-devel
-BuildRequires: Qt5Gui-devel
-BuildRequires: Qt5Network-devel
-BuildRequires: Qt5Test-devel
-BuildRequires: Qt5Xml-devel
-BuildRequires: qt5-build
-BuildRequires: qt5-qmake
+BuildRequires: Qt5Core-devel >= 5
+BuildRequires: Qt5DBus-devel >= 5
+BuildRequires: Qt5Network-devel >= 5
+BuildRequires: Qt5Test-devel >= 5
+BuildRequires: Qt5Xml-devel >= 5
+BuildRequires: qt5-build >= 5
+BuildRequires: qt5-qmake >= 5
%if %{with fingerprint}
-BuildRequires: Qt5Sql-devel
+BuildRequires: Qt5Sql-devel >= 5
%endif
%endif
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-# includedir files "conflict"
+# shared include files
%define _duplicate_files_terminate_build 0
%description
@@ -57,32 +59,64 @@ liblastfm is a collection of libraries to help you integrate Last.fm
services into your rich desktop software. It is officially supported
software developed by Last.fm staff.
+This package contains Qt 4 based libraries.
+
+%description -l pl.UTF-8
+liblastfm to zbiór bibliotek pomocnych przy integrowaniu usług Last.fm
+z oprogramowaniem komputerowym. Jest to oficjalnie wspierane
+oprogramowanie tworzone przez pracowników Last.fm.
+
+Ten pakiet zawiera biblioteki oparte na Qt 4.
+
%package devel
-Summary: Header files for %{name}
-Summary(pl.UTF-8): Pliki nagłówkowe %{name}
+Summary: Header files for Qt4 based liblastfm libraries
+Summary(pl.UTF-8): Pliki nagłówkowe bibliotek liblastfm opartych na Qt4
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
+Requires: QtCore-devel >= 4.8
+Requires: QtNetwork-devel >= 4.8
+Requires: QtXml-devel >= 4.8
+Requires: libstdc++-devel
%description devel
-Header files for %{name}.
+Header files for Qt4 based liblastfm libraries.
%description devel -l pl.UTF-8
-Pliki nagłówkowe %{name}.
+Pliki nagłówkowe bibliotek liblastfm opartych na Qt4.
%package qt5
-Summary: Qt5 libraries to integrate Last.fm services
+Summary: Qt5 based library to access Last.fm features
+Summary(pl.UTF-8): Oparta na Qt5 biblioteka pozwalająca na dostep do funkcjonalności Last.fm
Group: Libraries
%description qt5
-Qt5 libraries to integrate Last.fm services.
+liblastfm is a collection of libraries to help you integrate Last.fm
+services into your rich desktop software. It is officially supported
+software developed by Last.fm staff.
+
+This package contains Qt 4 based libraries.
+
+%description qt5 -l pl.UTF-8
+liblastfm to zbiór bibliotek pomocnych przy integrowaniu usług Last.fm
+z oprogramowaniem komputerowym. Jest to oficjalnie wspierane
+oprogramowanie tworzone przez pracowników Last.fm.
+Ten pakiet zawiera biblioteki oparte na Qt 5.
%package qt5-devel
-Summary: Development files for liblastfm-qt5
+Summary: Header files for Qt5 based liblastfm libraries
+Summary(pl.UTF-8): Pliki nagłówkowe bibliotek liblastfm opartych na Qt5
Requires: %{name}-qt5 = %{version}-%{release}
+Requires: Qt5Core-devel >= 5
+Requires: Qt5Network-devel >= 5
+Requires: Qt5Xml-devel >= 5
+Requires: libstdc++-devel
%description qt5-devel
-Development files for liblastfm-qt5.
+Header files for Qt5 based liblastfm libraries.
+
+%description qt5-devel -l pl.UTF-8
+Pliki nagłówkowe bibliotek liblastfm opartych na Qt4.
%prep
%setup -q
@@ -125,8 +159,11 @@ rm -rf $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
-%post -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%post qt5 -p /sbin/ldconfig
+%postun qt5 -p /sbin/ldconfig
%if %{with qt4}
%files
@@ -161,9 +198,9 @@ rm -rf $RPM_BUILD_ROOT
%files qt5-devel
%defattr(644,root,root,755)
-%{_libdir}/liblastfm5.so
+%attr(755,root,root) %{_libdir}/liblastfm5.so
%if %{with fingerprint}
-%{_libdir}/liblastfm_fingerprint5.so
+%attr(755,root,root) %{_libdir}/liblastfm_fingerprint5.so
%endif
%{_includedir}/lastfm
%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/liblastfm.git/commitdiff/4ebd4315baccc91192d6282576e615090c482913
More information about the pld-cvs-commit
mailing list