[packages/kvazaar] - up to 0.8.2

arekm arekm at pld-linux.org
Wed Feb 17 13:08:48 CET 2016


commit 07294588cd9385566ddb28bd051049661bef74f1
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Wed Feb 17 13:08:42 2016 +0100

    - up to 0.8.2

 kvazaar-x32.patch | 26 --------------------------
 kvazaar.spec      | 50 +++++++++++++++++---------------------------------
 2 files changed, 17 insertions(+), 59 deletions(-)
---
diff --git a/kvazaar.spec b/kvazaar.spec
index 76c5b5f..c6c54a1 100644
--- a/kvazaar.spec
+++ b/kvazaar.spec
@@ -1,14 +1,16 @@
 Summary:	Kvazaar - open-source HEVC encoder
 Summary(pl.UTF-8):	Kvazaar - koder HEVC o otwartych źródłach
 Name:		kvazaar
-Version:	0.7.0
+Version:	0.8.2
 Release:	1
 License:	LGPL v2.1+
 Group:		Libraries
 Source0:	https://github.com/ultravideo/kvazaar/archive/v%{version}/%{name}-%{version}.tar.gz
-# Source0-md5:	8a77a9c30cd98e2aef01508bba55886d
-Patch0:		%{name}-x32.patch
+# Source0-md5:	9c614d753dc055dcbb343546d3cd4048
 URL:		https://github.com/ultravideo/kvazaar
+BuildRequires:	autoconf
+BuildRequires:	automake
+BuildRequires:	libtool
 %ifarch %{ix86} %{x8664} x32
 BuildRequires:	yasm
 %endif
@@ -47,41 +49,23 @@ Statyczna biblioteka Kvazaar.
 
 %prep
 %setup -q
-%patch0 -p1
 
 %build
-CFLAGS="%{rpmcflags}" \
-LDFLAGS="%{rpmldflags}" \
-%{__make} -C src \
-	CC="%{__cc}" \
-	PREFIX=%{_prefix} \
-	LIBDIR=%{_libdir} \
-%ifarch %{ix86} %{x8664} x32
-	TARGET_CPU_ARCH=x86 \
-%endif
-%ifarch ppc ppc64
-	TARGET_CPU_ARCH=ppc \
-%endif
-%ifarch arm
-	TARGET_CPU_ARCH=ppc \
-%endif
-%ifarch %{ix86} ppc s390 sparc sparcv9
-	TARGET_CPU_BITS=32 \
-%endif
-%ifarch %{x8664} s390x ppc64 sparc64
-	TARGET_CPU_BITS=64 \
-%endif
-%ifarch x32
-	TARGET_CPU_BITS=x32
-%endif
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+
+%configure \
+	--disable-silent-rules
+%{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} -C src -j1 install \
-	DESTDIR=$RPM_BUILD_ROOT \
-	PREFIX=%{_prefix} \
-	LIBDIR=%{_libdir}
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -94,7 +78,7 @@ rm -rf $RPM_BUILD_ROOT
 %doc COPYING CREDITS README.md doc/syntax_elements.txt
 %attr(755,root,root) %{_bindir}/kvazaar
 %attr(755,root,root) %{_libdir}/libkvazaar.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libkvazaar.so.1
+%attr(755,root,root) %ghost %{_libdir}/libkvazaar.so.3
 
 %files devel
 %defattr(644,root,root,755)
diff --git a/kvazaar-x32.patch b/kvazaar-x32.patch
deleted file mode 100644
index 41856a3..0000000
--- a/kvazaar-x32.patch
+++ /dev/null
@@ -1,26 +0,0 @@
---- kvazaar-0.7.0/src/Makefile.orig	2015-10-14 21:32:29.905680671 +0200
-+++ kvazaar-0.7.0/src/Makefile	2015-10-14 21:32:59.209013433 +0200
-@@ -123,7 +123,11 @@
-   ifeq ($(TARGET_CPU_BITS), 64)
-     ASFLAGS += -f elf64
-   else
-+    ifeq ($(TARGET_CPU_BITS), x32)
-+      ASFLAGS += -f elfx32
-+    else
-     ASFLAGS += -f elf32
-+    endif
-   endif
-   LIBKVAZAAR_SHARED = $(LIB)
-   INSTALL_TARGETS += install-lib install-static
-@@ -137,7 +137,11 @@
- ifeq ($(TARGET_CPU_ARCH) $(TARGET_CPU_BITS), x86 64)
-   ASFLAGS += -DARCH_X86_64=1
- else
-+  ifeq ($(TARGET_CPU_ARCH) $(TARGET_CPU_BITS), x86 x32)
-+    ASFLAGS += -DARCH_X86_64=1
-+  else
-   ASFLAGS += -DARCH_X86_64=0
-+  endif
- endif
- 
- # Disable ASM optimizations if YASM is not found on path.
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/kvazaar.git/commitdiff/07294588cd9385566ddb28bd051049661bef74f1



More information about the pld-cvs-commit mailing list