Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Kenzy:packages
mozjpeg
mozjpeg.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mozjpeg.spec of Package mozjpeg
%define debug_package %{nil} Summary: A JPEG codec that provides increased compression for JPEG images (at the expense of compression performance) Name: mozjpeg Version: 3.3.1 Vendor: Mozilla Research URL: https://github.com/mozilla/mozjpeg Group: System Environment/Libraries Source0: https://github.com/mozilla/mozjpeg/archive/%{name}-%{version}.tar.gz Release: 20171102 License: BSD-style BuildRoot: %{_blddir}/%{name}-buildroot-%{version}-%{release} %ifarch x86_64 Provides: %{name} = %{version}-%{release}, mozjpeg = %{version}-%{release}, libturbojpeg.so()(64bit) %else Provides: %{name} = %{version}-%{release}, mozjpeg = %{version}-%{release}, libturbojpeg.so %endif BuildRequires: make cmake autoconf automake libtool turbojpeg-devel nasm AutoProv: no %description mozjpeg is a fork of libjpeg-turbo that aims to speed up load times of web pages by reducing the size (and, by extension, the transmission time) of JPEG files. It accomplishes this by enabling optimized Huffman trees and progressive entropy coding by default in the JPEG compressor, as well as splitting the spectrum of DCT coefficients into separate scans and using Trellis quantisation. Although it is based on libjpeg-turbo, mozjpeg is not intended to be a general-purpose or high-performance JPEG library. Its performance is highly "asymmetric". That is, the JPEG files it generates require much more time to compress than to decompress. When the default settings are used, mozjpeg is considerably slower than libjpeg-turbo or even libjpeg at compressing images. Thus, it is not generally suitable for real-time compression. It is best used as part of a web encoding workflow. %prep %setup -q %build autoreconf -fiv automake --add-missing autoheader ./configure prefix=%{_prefix} bindir=%{_bindir} datadir=%{_datadir} \ docdir=%{_docdir}/%{name} includedir=%{_includedir}/%{name} libdir=%{_libdir}/%{name} mandir=%{_mandir} # JPEG_LIB_VERSION=62 SO_MAJOR_VERSION=62 SO_MINOR_VERSION=0 \ make DESTDIR=$RPM_BUILD_ROOT %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT docdir=%{_docdir}/%{name} exampledir=%{_docdir}/%{name} rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la /sbin/ldconfig -n $RPM_BUILD_ROOT%{_libdir}/%{name} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %{_bindir}/cjpeg %{_bindir}/djpeg %{_bindir}/jpegtran %{_bindir}/tjbench %{_bindir}/rdjpgcom %{_bindir}/wrjpgcom %{_libdir}/%{name} %{_includedir}/%{name} %{_docdir}/%{name} %{_mandir}/man1/cjpeg.1* %{_mandir}/man1/djpeg.1* %{_mandir}/man1/jpegtran.1* %{_mandir}/man1/rdjpgcom.1* %{_mandir}/man1/wrjpgcom.1* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor