Name: libjpeg9 Version: 9c Release: 1 Summary: Independent JPEG Group's free JPEG software Version 9 License: BSD URL: http://www.infai.org/jpeg/ Source0: https://www.lunes.faith/SRPMS/jpegsrc.v9c.tar.gz %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-9c -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 * Thu May 17 2018 aflyhorse@hotmail.com - Update to upstream v9c. - Add a version fix for pkgconfig file, thanks to everpcpc. * Sun Oct 9 2016 aflyhorse@hotmail.com - Conflict fix. * Sun Oct 9 2016 aflyhorse@hotmail.com - Initial implementation for v9.