|
@@ -1,16 +1,22 @@
|
|
%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
|
|
%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
|
|
|
|
|
|
-Summary: A MMX/SSE2 accelerated library for manipulating JPEG image files
|
|
+Summary: A MMX/SSE2/SIMD accelerated library for manipulating JPEG image files
|
|
-Summary(ja): MMX/SSE2 でアクセラレーションされた libjpeg ライブラリ
|
|
+Summary(ja): MMX/SSE2/SIMD でアクセラレーションされた libjpeg ライブラリ
|
|
|
|
|
|
Name: libjpeg-turbo
|
|
Name: libjpeg-turbo
|
|
-Version: 1.5.3
|
|
+Version: 2.0.3
|
|
Release: 1%{?_dist_release}
|
|
Release: 1%{?_dist_release}
|
|
|
|
|
|
Group: System Environment/Libraries
|
|
Group: System Environment/Libraries
|
|
-License: wxWidgets
|
|
+License: IJG
|
|
URL: http://sourceforge.net/projects/libjpeg-turbo
|
|
URL: http://sourceforge.net/projects/libjpeg-turbo
|
|
|
|
+Vendor: Project Vine
|
|
|
|
+Distribution: Vine Linux
|
|
|
|
+
|
|
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
|
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
|
|
|
+Patch0: libjpeg-turbo-cmake.patch
|
|
|
|
+Patch1: libjpeg-turbo-CET.patch
|
|
|
|
+
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
|
|
|
|
|
BuildRequires: autoconf, automake, libtool
|
|
BuildRequires: autoconf, automake, libtool
|
|
@@ -21,9 +27,6 @@ BuildRequires: nasm
|
|
Obsoletes: libjpeg < 6b-50vl6
|
|
Obsoletes: libjpeg < 6b-50vl6
|
|
Provides: libjpeg = 6b-50vl6
|
|
Provides: libjpeg = 6b-50vl6
|
|
|
|
|
|
-Patch0: libjpeg-turbo14-noinst.patch
|
|
|
|
-Patch1: libjpeg-turbo-header-files.patch
|
|
|
|
-
|
|
|
|
%description
|
|
%description
|
|
The libjpeg-turbo package contains a library of functions for manipulating
|
|
The libjpeg-turbo package contains a library of functions for manipulating
|
|
JPEG images
|
|
JPEG images
|
|
@@ -80,28 +83,44 @@ Requires: libjpeg-turbo = %{version}-%{release}
|
|
This package contains header files necessary for developing programs which
|
|
This package contains header files necessary for developing programs which
|
|
will manipulate JPEG files using the libjpeg-turbo library
|
|
will manipulate JPEG files using the libjpeg-turbo library
|
|
|
|
|
|
|
|
+
|
|
%prep
|
|
%prep
|
|
%setup -q
|
|
%setup -q
|
|
|
|
+%patch0 -p1
|
|
|
|
+%patch1 -p1
|
|
|
|
|
|
-%patch0 -p1 -b .noinst_jpgtest
|
|
|
|
-%patch1 -p1 -b .turbo_headers
|
|
|
|
|
|
|
|
%build
|
|
%build
|
|
-autoreconf -fiv
|
|
+%ifarch %{ix86} x86_64
|
|
|
|
+export LDFLAGS="$RPM_LD_FLAGS -Wl,-z,ibt -Wl,-z,shstk"
|
|
|
|
+%endif
|
|
|
|
+
|
|
|
|
+%{cmake} -DCMAKE_SKIP_RPATH:BOOL=YES \
|
|
|
|
+ -DCMAKE_SKIP_INSTALL_RPATH:BOOL=YES \
|
|
|
|
+ -DENABLE_STATIC:BOOL=NO .
|
|
|
|
+
|
|
|
|
+make %{?_smp_mflags} V=1
|
|
|
|
+
|
|
|
|
+# Fix perms
|
|
|
|
+chmod -x README.md
|
|
|
|
|
|
-%configure --disable-static
|
|
|
|
|
|
|
|
-make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
%install
|
|
-rm -rf $RPM_BUILD_ROOT
|
|
+rm -rf %{buildroot}
|
|
-make install DESTDIR=$RPM_BUILD_ROOT
|
|
+make install DESTDIR=%{buildroot}
|
|
|
|
|
|
# Remove unwanted files
|
|
# Remove unwanted files
|
|
-rm -f $RPM_BUILD_ROOT/%{_libdir}/lib{,turbo}jpeg.la
|
|
+rm -f %{buildroot}/%{_libdir}/lib{,turbo}jpeg.la
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+%check
|
|
|
|
+LD_LIBRARY_PATH=%{buildroot}%{_libdir} make test %{?_smp_mflags}
|
|
|
|
+
|
|
|
|
|
|
%clean
|
|
%clean
|
|
-rm -rf $RPM_BUILD_ROOT
|
|
+rm -rf %{buildroot}
|
|
|
|
+
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
%post -p /sbin/ldconfig
|
|
%postun -p /sbin/ldconfig
|
|
%postun -p /sbin/ldconfig
|
|
@@ -110,6 +129,7 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%files
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
|
|
+%license LICENSE.md
|
|
%doc README.md README.ijg ChangeLog.md
|
|
%doc README.md README.ijg ChangeLog.md
|
|
%{_libdir}/libjpeg.so.62*
|
|
%{_libdir}/libjpeg.so.62*
|
|
%{_libdir}/libturbojpeg.so.0*
|
|
%{_libdir}/libturbojpeg.so.0*
|
|
@@ -155,6 +175,11 @@ rm -rf $RPM_BUILD_ROOT
|
|
%endif
|
|
%endif
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Sun Sep 08 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.3-1
|
|
|
|
+- new upstream release.
|
|
|
|
+- dropped all patches.
|
|
|
|
+- imported Patch0 and 1 from rawhide.
|
|
|
|
+
|
|
* Tue Dec 19 2017 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.5.3-1
|
|
* Tue Dec 19 2017 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.5.3-1
|
|
- update to 1.5.3
|
|
- update to 1.5.3
|
|
- update Patch0,doc
|
|
- update Patch0,doc
|