Name: libjpeg9 Version: 9e Release: 1 Summary: Independent JPEG Group's free JPEG software Version 9 License: BSD URL: https://ijg.org/ %define _disable_source_fetch 0 Source0: https://ijg.org/files/jpegsrc.v9e.tar.gz BuildRequires: gcc %description JPEG library is a free library with functions for handling the JPEG image data format. This package doesn't conflict with other versions of libjpeg, since it only provides the corresponding dynamic library. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} Conflicts: libjpeg-turbo-devel Conflicts: libjpeg7-devel Conflicts: libjpeg8-devel %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. This package conflicts with other versions of libjpeg, along with the libjpeg-turbo implementaion, since they provides different versions of header files under the same time. %package utils Summary: Utility binaries for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} Conflicts: libjpeg7-utils Conflicts: libjpeg8-utils %description utils The %{name}-utils package contains utility binaries which comes alongside with %{name}. This package conflicts with other versions of libjpeg, along with the libjpeg-turbo implementaion, since they provides different versions of binaries under the same name. %prep %setup -n jpeg-9e -q %build %configure --disable-static sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool %make_build %install rm -rf $RPM_BUILD_ROOT %make_install find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' # Fix broken pkgconfig version sed -i -E 's/^(Version:[\ \t]*)(\w+)\:(\w+)\:(\w+)/\1\2\.\3\.\4/g' ${RPM_BUILD_ROOT}/%{_libdir}/pkgconfig/libjpeg.pc %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %check LD_LIBRARY_PATH=${RPM_BUILD_ROOT}/%{_libdir} make check %files %doc change.log %doc README %{_libdir}/*.so.* %files devel %doc structure.txt %doc usage.txt %doc wizard.txt %doc example.c %{_includedir}/* %{_libdir}/*.so %{_libdir}/pkgconfig/libjpeg.pc %files utils %{_bindir}/* %{_mandir}/man1/* %changelog * Sun Jan 24 2022 aflyhorse@hotmail.com 9e-1 - Update to upstream v9e. * Sun Mar 8 2020 aflyhorse@hotmail.com 9d-1 - Update to upstream v9d. * Wed Dec 19 2018 aflyhorse@hotmail.com 9c-2 - Change the download link to https. No source change so no version bump. * Thu May 17 2018 aflyhorse@hotmail.com 9c-1 - Update to upstream v9c. - Add a version fix for pkgconfig file, thanks to everpcpc. * Sun Oct 9 2016 aflyhorse@hotmail.com 9b-2 - Conflict fix. * Sun Oct 9 2016 aflyhorse@hotmail.com 9b-1 - Initial implementation for v9.