[packages/libechonest] - pl, cmake version

qboosh qboosh at pld-linux.org
Sat Jun 10 07:33:26 CEST 2017


commit 06fdb8a1e61008aae40b7df493577e9b63ed5e07
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Jun 10 07:34:30 2017 +0200

    - pl, cmake version

 libechonest.spec | 73 ++++++++++++++++++++++++++++++++++++++------------------
 1 file changed, 50 insertions(+), 23 deletions(-)
---
diff --git a/libechonest.spec b/libechonest.spec
index 87b24e8..523211e 100644
--- a/libechonest.spec
+++ b/libechonest.spec
@@ -1,10 +1,11 @@
 #
 # Conditional build:
-%bcond_with	tests		# build with tests. tests need active internet connection
-%bcond_without	qt4			# Qt4
-%bcond_without	qt5			# Qt5
+%bcond_with	tests	# run tests (need active Internet connection)
+%bcond_without	qt4	# Qt4 library
+%bcond_without	qt5	# Qt5 library
 
-Summary:	C++ wrapper for the Echo Nest API
+Summary:	C++/Qt4 wrapper for the Echo Nest API
+Summary(pl.UTF-8):	Obudowanie C++/Qt4 dla API Echo Nest
 Name:		libechonest
 Version:	2.3.1
 Release:	1
@@ -13,21 +14,23 @@ Group:		Libraries
 Source0:	http://files.lfranchi.com/%{name}-%{version}.tar.bz2
 # Source0-md5:	d8c60545b056145dc66882971a0acf9c
 URL:		https://projects.kde.org/projects/playground/libs/libechonest
-BuildRequires:	cmake
+BuildRequires:	cmake >= 2.6
 BuildRequires:	libstdc++-devel
 BuildRequires:	pkgconfig
 %if %{with qt4}
-BuildRequires:	QtCore-devel
-BuildRequires:	QtNetwork-devel
+BuildRequires:	QtCore-devel >= 4
+BuildRequires:	QtNetwork-devel >= 4
+%{?with_tests:BuildRequires:	QtXml-devel >= 4}
 BuildRequires:	qjson-devel
-BuildRequires:	qt4-build
-BuildRequires:	qt4-qmake
+BuildRequires:	qt4-build >= 4
+BuildRequires:	qt4-qmake >= 4
 %endif
 %if %{with qt5}
-BuildRequires:	Qt5Network-devel
-BuildRequires:	Qt5Xml-devel
-BuildRequires:	qt5-build
-BuildRequires:	qt5-qmake
+BuildRequires:	Qt5Core-devel >= 5
+BuildRequires:	Qt5Network-devel >= 5
+%{?with_tests:BuildRequires:	Qt5Xml-devel >= 5}
+BuildRequires:	qt5-build >= 5
+BuildRequires:	qt5-qmake >= 5
 %endif
 BuildRequires:	rpmbuild(macros) >= 1.605
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -42,17 +45,29 @@ libechonest is a collection of Qt4 classes designed to make a
 developer's life easy when trying to use the APIs provided by The Echo
 Nest.
 
+%description -l pl.UTF-8
+libechonest to zbiór klas Qt4 zaprojektuwany, aby ułatwić życie
+programiście przy używaniu API udostępnianych przez The Echo Nest.
+
 %package devel
-Summary:	Development files for %{name}
+Summary:	Development files for libechonest library
+Summary(pl.UTF-8):	Pliki programistyczne biblioteki libechonest
 Group:		Development/Libraries
 Requires:	%{name} = %{version}-%{release}
+Requires:	QtCore-devel >= 4
+Requires:	QtNetwork-devel >= 4
 
 %description devel
-The %{name}-devel package contains libraries and header files for
-developing applications that use %{name}.
+This package contains the header files for developing applications
+that use libechonest library.
+
+%description devel -l pl.UTF-8
+Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji
+wykorzystujących bibliotekę libechonest.
 
 %package -n libechonest-qt5
-Summary:	libechonest Qt5 bindings
+Summary:	C++/Qt5 wrapper for the Echo Nest API
+Summary(pl.UTF-8):	Obudowanie C++/Qt5 dla API Echo Nest
 Group:		Libraries
 
 %description -n libechonest-qt5
@@ -60,13 +75,25 @@ libechonest is a collection of Qt5 classes designed to make a
 developer's life easy when trying to use the APIs provided by The Echo
 Nest.
 
+%description -n libechonest-qt5 -l pl.UTF-8
+libechonest to zbiór klas Qt5 zaprojektuwany, aby ułatwić życie
+programiście przy używaniu API udostępnianych przez The Echo Nest.
+
 %package -n libechonest-qt5-devel
-Summary:	Development files for libechonest-qt5
+Summary:	Development files for libechonest5 library
+Summary(pl.UTF-8):	Pliki programistyczne biblioteki libechonest5
 Group:		Development/Libraries
+Requires:	Qt5Core-devel >= 5
+Requires:	Qt5Network-devel >= 5
 Requires:	libechonest-qt5 = %{version}-%{release}
 
 %description -n libechonest-qt5-devel
-Development files for libechonest-qt5.
+This package contains the header files for developing applications
+that use libechonest5 library.
+
+%description -n libechonest-qt5-devel -l pl.UTF-8
+Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji
+wykorzystujących bibliotekę libechonest5.
 
 %prep
 %setup -q
@@ -133,12 +160,12 @@ rm -rf $RPM_BUILD_ROOT
 %doc AUTHORS README TODO
 %attr(755,root,root) %{_libdir}/libechonest.so.*.*.*
 # yes, SONAME is "libechonest.so.2.3"
-%ghost %{_libdir}/libechonest.so.2.3
+%attr(755,root,root) %ghost %{_libdir}/libechonest.so.2.3
 
 %files devel
 %defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libechonest.so
 %{_includedir}/echonest
-%{_libdir}/libechonest.so
 %{_pkgconfigdir}/libechonest.pc
 %endif
 
@@ -148,11 +175,11 @@ rm -rf $RPM_BUILD_ROOT
 %doc AUTHORS README TODO
 %attr(755,root,root) %{_libdir}/libechonest5.so.*.*.*
 # yes, SONAME is "libechonest5.so.2.3"
-%ghost %{_libdir}/libechonest5.so.2.3
+%attr(755,root,root) %ghost %{_libdir}/libechonest5.so.2.3
 
 %files -n libechonest-qt5-devel
 %defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libechonest5.so
 %{_includedir}/echonest5
-%{_libdir}/libechonest5.so
 %{_pkgconfigdir}/libechonest5.pc
 %endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libechonest.git/commitdiff/06fdb8a1e61008aae40b7df493577e9b63ed5e07



More information about the pld-cvs-commit mailing list