[packages/libheif] - added pc patch (add Requires.private), dropped .la file - pl, more accurate License specifiers - r

qboosh qboosh at pld-linux.org
Sat Dec 22 08:52:46 CET 2018


commit bd70b2108afb89d9fd5f3bade718f145310180f2
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Dec 22 08:57:26 2018 +0100

    - added pc patch (add Requires.private), dropped .la file
    - pl, more accurate License specifiers
    - release 3

 libheif-pc.patch | 10 ++++++++++
 libheif.spec     | 56 +++++++++++++++++++++++++++++++++++++++++++++-----------
 2 files changed, 55 insertions(+), 11 deletions(-)
---
diff --git a/libheif.spec b/libheif.spec
index d041398..ecf6d2d 100644
--- a/libheif.spec
+++ b/libheif.spec
@@ -1,18 +1,23 @@
+#
 # Conditional build:
 %bcond_without	tests		# don't perform "make check"
 #
 Summary:	ISO/IEC 23008-12:2017 HEIF file format decoder and encoder
+Summary(pl.UTF-8):	Koder i dekoder formatu plików HEIF zgodnego z ISO/IEC 23008-12:2017
 Name:		libheif
 Version:	1.3.2
-Release:	2
-License:	GPL
+Release:	3
+License:	LGPL v3+ (library), GPL v3+ (tools)
 Group:		Libraries
+#Source0Download: https://github.com/strukturag/libheif/releases/
 Source0:	https://github.com/strukturag/libheif/releases/download/v%{version}/%{name}-%{version}.tar.gz
 # Source0-md5:	634b0d33db07c85eea2f56c1d8cb87b1
+Patch0:		%{name}-pc.patch
 URL:		https://github.com/strukturag/libheif
 BuildRequires:	libde265-devel
 BuildRequires:	libjpeg-devel
 BuildRequires:	libpng-devel
+BuildRequires:	libstdc++-devel
 BuildRequires:	libx265-devel
 BuildRequires:	rpmbuild(macros) >= 1.734
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -28,39 +33,66 @@ libheif makes use of libde265 for the actual image decoding and x265
 for encoding. Alternative codecs for, e.g., AVC and JPEG can be
 provided as plugins.
 
+%description -l pl.UTF-8
+libheif to koder i dekoder formatu plików HEIF, zgodnego z ISO/IEC
+23008-12:2017.
+
+HEIF to nowy format plików obrazów wykorzystujący kodowanie obrazu
+HEVC (h.265) w celu osiągnięcia najwyższych dostepnych obecnie
+współczynników kompresji.
+
+libheif wykorzystuje libde265 do właściwego procesu dekodowania obrazu
+oraz x265 do kodowania. Alternatywne kodeki do np. AVC czy JPEG mogą
+być dostarczone jako wtyczki.
+
 %package devel
 Summary:	Header files for libheif
 Summary(de.UTF-8):	libheif Headers
-Summary(es.UTF-8):	Archivos de inclusión y bibliotecas estáticas
-Summary(fr.UTF-8):	en-têtes et bibliothèques statiques
 Summary(pl.UTF-8):	Pliki nagłówkowe libheif
-Summary(pt_BR.UTF-8):	Arquivos de inclusão e bibliotecas estáticas
-Summary(tr.UTF-8):	başlık dosyaları ve statik kitaplıklar
+License:	LGPL v3+
 Group:		Development/Libraries
-Requires:	%{name} = %{epoch}:%{version}-%{release}
+Requires:	%{name} = %{version}-%{release}
+Requires:	libde265-devel
+Requires:	libstdc++-devel
+Requires:	libx265-devel
 
 %description devel
 The header files are only needed for development of programs using the
 libheif library.
 
+%description devel -l pl.UTF-8
+Pliki nagłówkowe, potrzebne jedynie do rozwijania oprogramowania
+wykorzystującego bibliotekę libheif.
+
 %package static
 Summary:	Static libheif library
+Summary(pl.UTF-8):	Statyczna biblioteka libheif
+License:	LGPL v3+
 Group:		Development/Libraries
-Requires:	%{name}-devel = %{epoch}:%{version}-%{release}
+Requires:	%{name}-devel = %{version}-%{release}
 
 %description static
 Static libheif library.
 
+%description static -l pl.UTF-8
+Statyczna biblioteka libheif.
+
 %package progs
 Summary:	libheif utility programs
+Summary(pl.UTF-8):	Programy narzędziowe libheif
+License:	GPL v3+
 Group:		Applications/Graphics
-Requires:	%{name} = %{epoch}:%{version}-%{release}
+Requires:	%{name} = %{version}-%{release}
 
 %description progs
 This package contains utility programs to convert HEIF files.
 
+%description progs -l pl.UTF-8
+Ten pakiet zawiera programy narzędziowe do konwersji plików HEIF.
+
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %configure
@@ -74,6 +106,9 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libheif.la
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -83,7 +118,7 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc README.md
-%attr(755,root,root) %{_libdir}/libheif.so.*.*
+%attr(755,root,root) %{_libdir}/libheif.so.*.*.*
 %attr(755,root,root) %ghost %{_libdir}/libheif.so.1
 
 %files devel
@@ -91,7 +126,6 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_libdir}/libheif.so
 %{_includedir}/libheif
 %{_pkgconfigdir}/libheif.pc
-%{_libdir}/libheif.la
 
 %files static
 %defattr(644,root,root,755)
diff --git a/libheif-pc.patch b/libheif-pc.patch
new file mode 100644
index 0000000..5d4de6a
--- /dev/null
+++ b/libheif-pc.patch
@@ -0,0 +1,10 @@
+--- libheif-1.3.2/libheif.pc.in.orig	2018-06-15 12:24:43.000000000 +0200
++++ libheif-1.3.2/libheif.pc.in	2018-12-22 08:53:32.974055566 +0100
+@@ -10,6 +10,7 @@
+ URL: https://github.com/strukturag/libheif
+ Version: @VERSION@
+ Requires:
++Requires.private: libde265 x265
+ Libs: -L at libdir@ -lheif
+ Libs.private: @LIBS@ -lstdc++
+ Cflags: -I at includedir@
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libheif.git/commitdiff/bd70b2108afb89d9fd5f3bade718f145310180f2



More information about the pld-cvs-commit mailing list