[packages/mozjpeg] new, version 2.1
glen
glen at pld-linux.org
Wed Mar 23 08:20:38 CET 2016
commit 4bb6fed45415ac9fe32af9f0fb69aa45355d6356
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Wed Mar 23 09:18:56 2016 +0200
new, version 2.1
based on package in fedora codereview
https://sundaram.fedorapeople.org/packages/libmozjpeg-2.1-1.fc21.src.rpm
https://bugzilla.redhat.com/show_bug.cgi?id=1154163
mozjpeg.spec | 124 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 124 insertions(+)
---
diff --git a/mozjpeg.spec b/mozjpeg.spec
new file mode 100644
index 0000000..bece1e3
--- /dev/null
+++ b/mozjpeg.spec
@@ -0,0 +1,124 @@
+Summary: SIMD-accelerated JPEG codec that provides both the libjpeg and TurboJPEG APIs
+Name: mozjpeg
+Version: 2.1
+Release: 0.1
+License: BSD
+Group: Applications
+Source0: https://github.com/mozilla/mozjpeg/archive/v%{version}.tar.gz
+URL: https://github.com/mozilla/mozjpeg
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: libtool
+%ifarch %{ix86} %{x8664}
+BuildRequires: nasm
+%endif
+Requires: %{name}-libs = %{version}-%{release}
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+mozjpeg was forked from libjpeg-turbo.
+
+The mozjpeg package contains simple client programs for accessing the
+libjpeg functions. It contains cjpeg, djpeg, jpegtran, rdjpgcom and
+wrjpgcom. Cjpeg compresses an image file into JPEG format. Djpeg
+decompresses a JPEG file into a regular image file. Jpegtran can
+perform various useful transformations on JPEG files. Rdjpgcom
+displays any text comments included in a JPEG file. Wrjpgcom inserts
+text comments into a JPEG file.
+
+%package libs
+Summary: mozjpeg libraries
+Group: Libraries
+Conflicts: libjpeg-turbo
+
+%description libs
+libmozjpeg is a JPEG image codec that uses SIMD instructions (MMX,
+SSE2, NEON) to accelerate baseline JPEG compression and decompression
+on x86, x86-64, and ARM systems. On such systems, libmozjpeg is
+generally 2-4x as fast as libjpeg, all else being equal. On other
+types of systems, libmozjpeg can still outperform libjpeg by a
+significant amount, by virtue of its highly-optimized Huffman coding
+routines. In many cases, the performance of libmozjpeg rivals that of
+proprietary high-speed JPEG codecs.
+
+libmozjpeg implements both the traditional libjpeg API as well as the
+less powerful but more straightforward TurboJPEG API. libmozjpeg also
+features colorspace extensions that allow it to compress
+from/decompress to 32-bit and big-endian pixel buffers (RGBX, XBGR,
+etc.), as well as a full-featured Java interface.
+
+%package devel
+Summary: Development files for libmozjpeg
+Group: Development/Libraries
+Requires: %{name}-libs = %{version}-%{release}
+
+%description devel
+The mozjpeg-devel package contains libraries and header files for
+developing applications that use mozjpeg.
+
+%prep
+%setup -q
+
+# Fix perms
+chmod -x README-turbo.txt
+
+%build
+%{__aclocal}
+%{__libtoolize}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+ --disable-silent-rules \
+ --disable-static
+
+%{__make} %{?with_tests:test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+ docdir=%{_docdir} \
+ exampledir=%{_docdir} \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post libs -p /sbin/ldconfig
+%postun libs -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc usage.txt wizard.txt
+%attr(755,root,root) %{_bindir}/cjpeg
+%attr(755,root,root) %{_bindir}/djpeg
+%attr(755,root,root) %{_bindir}/jpegtran
+%attr(755,root,root) %{_bindir}/rdjpgcom
+%attr(755,root,root) %{_bindir}/wrjpgcom
+%attr(755,root,root) %{_bindir}/tjbench
+%{_mandir}/man1/cjpeg.1*
+%{_mandir}/man1/djpeg.1*
+%{_mandir}/man1/jpegtran.1*
+%{_mandir}/man1/rdjpgcom.1*
+%{_mandir}/man1/wrjpgcom.1*
+
+%files libs
+%defattr(644,root,root,755)
+%doc README README-turbo.txt LICENSE.txt
+%attr(755,root,root) %{_libdir}/libjpeg.so.*.*.*
+%ghost %{_libdir}/libjpeg.so.62
+%attr(755,root,root) %{_libdir}/libturbojpeg.so.*.*.*
+%ghost %{_libdir}/libturbojpeg.so.0
+
+%files devel
+%defattr(644,root,root,755)
+%doc coderules.txt jconfig.txt libjpeg.txt structure.txt example.c
+%{_includedir}/jconfig.h
+%{_includedir}/jerror.h
+%{_includedir}/jmorecfg.h
+%{_includedir}/jpeglib.h
+%{_includedir}/turbojpeg.h
+%{_libdir}/libjpeg.so
+%{_libdir}/libturbojpeg.so
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mozjpeg.git/commitdiff/4bb6fed45415ac9fe32af9f0fb69aa45355d6356
More information about the pld-cvs-commit
mailing list