Re-add libjpeg-devel and clean up spec file
This commit is contained in:
parent
ea82d4b627
commit
d603cc0e1b
@ -2,20 +2,21 @@ Name: libjpeg-turbo
|
|||||||
Version: 1.3.1
|
Version: 1.3.1
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: A MMX/SSE2 accelerated library for manipulating JPEG image files
|
Summary: A MMX/SSE2 accelerated library for manipulating JPEG image files
|
||||||
|
|
||||||
Group: System Environment/Libraries
|
|
||||||
License: IJG
|
License: IJG
|
||||||
URL: http://sourceforge.net/projects/libjpeg-turbo
|
URL: http://sourceforge.net/projects/libjpeg-turbo
|
||||||
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
||||||
|
|
||||||
BuildRequires: autoconf, automake, libtool
|
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
||||||
|
Patch0: libjpeg-turbo12-noinst.patch
|
||||||
|
Patch1: libjpeg-turbo-header-files.patch
|
||||||
|
|
||||||
|
BuildRequires: autoconf
|
||||||
|
BuildRequires: automake
|
||||||
|
BuildRequires: libtool
|
||||||
|
|
||||||
%ifarch %{ix86} x86_64
|
%ifarch %{ix86} x86_64
|
||||||
BuildRequires: nasm
|
BuildRequires: nasm
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# moved this from -utils, in an attempt to get it to better override
|
|
||||||
# libjpeg in rawhide -- Rex
|
|
||||||
Obsoletes: libjpeg < 6b-47
|
Obsoletes: libjpeg < 6b-47
|
||||||
# add provides (even if it not needed) to workaround bad packages, like
|
# add provides (even if it not needed) to workaround bad packages, like
|
||||||
# java-1.6.0-openjdk (#rh607554) -- atkac
|
# java-1.6.0-openjdk (#rh607554) -- atkac
|
||||||
@ -24,80 +25,68 @@ Provides: libjpeg = 6b-47%{?dist}
|
|||||||
Provides: libjpeg%{_isa} = 6b-47%{?dist}
|
Provides: libjpeg%{_isa} = 6b-47%{?dist}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
Patch0: libjpeg-turbo12-noinst.patch
|
|
||||||
Patch3: 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
|
||||||
JPEG images.
|
images.
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Headers for the libjpeg-turbo library
|
Summary: Headers for the libjpeg-turbo library
|
||||||
Group: Development/Libraries
|
Obsoletes: libjpeg-devel < 6b-47
|
||||||
|
Provides: libjpeg-devel = 6b-47%{?dist}
|
||||||
|
%if "%{?_isa}" != ""
|
||||||
|
Provides: libjpeg-devel%{_isa} = 6b-47%{?dist}
|
||||||
|
%endif
|
||||||
Requires: libjpeg-turbo%{?_isa} = %{version}-%{release}
|
Requires: libjpeg-turbo%{?_isa} = %{version}-%{release}
|
||||||
Obsoletes: libjpeg-turbo-static < 1.3.1
|
Obsoletes: libjpeg-turbo-static < 1.3.1
|
||||||
Provides: libjpeg-turbo-static = 1.3.1%{?dist}
|
Provides: libjpeg-turbo-static = 1.3.1%{?dist}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
This package contains header files necessary for developing programs which
|
This package contains header files necessary for developing programs which will
|
||||||
will manipulate JPEG files using the libjpeg-turbo library.
|
manipulate JPEG files using the libjpeg-turbo library.
|
||||||
|
|
||||||
%package utils
|
%package utils
|
||||||
Summary: Utilities for manipulating JPEG images
|
Summary: Utilities for manipulating JPEG images
|
||||||
Group: Applications/Multimedia
|
|
||||||
Requires: libjpeg-turbo%{?_isa} = %{version}-%{release}
|
Requires: libjpeg-turbo%{?_isa} = %{version}-%{release}
|
||||||
|
|
||||||
%description utils
|
%description utils
|
||||||
The libjpeg-turbo-utils package contains simple client programs for
|
The libjpeg-turbo-utils package contains simple client programs for accessing
|
||||||
accessing the libjpeg functions. It contains cjpeg, djpeg, jpegtran,
|
the libjpeg functions. It contains cjpeg, djpeg, jpegtran, rdjpgcom and
|
||||||
rdjpgcom and wrjpgcom. Cjpeg compresses an image file into JPEG format.
|
wrjpgcom. Cjpeg compresses an image file into JPEG format. Djpeg decompresses a
|
||||||
Djpeg decompresses a JPEG file into a regular image file. Jpegtran
|
JPEG file into a regular image file. Jpegtran can perform various useful
|
||||||
can perform various useful transformations on JPEG files. Rdjpgcom
|
transformations on JPEG files. Rdjpgcom displays any text comments included in a
|
||||||
displays any text comments included in a JPEG file. Wrjpgcom inserts
|
JPEG file. Wrjpgcom inserts text comments into a JPEG file.
|
||||||
text comments into a JPEG file.
|
|
||||||
|
|
||||||
%package -n turbojpeg
|
%package -n turbojpeg
|
||||||
Summary: TurboJPEG library
|
Summary: TurboJPEG library
|
||||||
Group: System Environment/Libraries
|
|
||||||
|
|
||||||
%description -n turbojpeg
|
%description -n turbojpeg
|
||||||
The turbojpeg package contains the TurboJPEG shared library.
|
The turbojpeg package contains the TurboJPEG shared library.
|
||||||
|
|
||||||
%package -n turbojpeg-devel
|
%package -n turbojpeg-devel
|
||||||
Summary: Headers for the TurboJPEG library
|
Summary: Headers for the TurboJPEG library
|
||||||
Group: Development/Libraries
|
|
||||||
Requires: turbojpeg%{?_isa} = %{version}-%{release}
|
Requires: turbojpeg%{?_isa} = %{version}-%{release}
|
||||||
|
|
||||||
%description -n turbojpeg-devel
|
%description -n turbojpeg-devel
|
||||||
This package contains header files necessary for developing programs which
|
This package contains header files necessary for developing programs which will
|
||||||
will manipulate JPEG files using the TurboJPEG library.
|
manipulate JPEG files using the TurboJPEG library.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
%patch0 -p1 -b .noinst
|
%patch0 -p1 -b .noinst
|
||||||
%patch3 -p1 -b .header-files
|
%patch1 -p1 -b .header-files
|
||||||
|
|
||||||
%build
|
%build
|
||||||
autoreconf -fiv
|
autoreconf -fiv
|
||||||
|
|
||||||
%configure --disable-static
|
%configure --disable-static
|
||||||
|
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
make install DESTDIR=%{buildroot}
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
find %{buildroot} -name "*.la" -delete
|
||||||
|
|
||||||
# Fix perms
|
# Fix perms
|
||||||
chmod -x README-turbo.txt
|
chmod -x README-turbo.txt
|
||||||
|
|
||||||
# Remove unwanted files
|
|
||||||
rm -f $RPM_BUILD_ROOT/%{_libdir}/lib{,turbo}jpeg.la
|
|
||||||
|
|
||||||
%clean
|
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
make test
|
make test
|
||||||
|
|
||||||
@ -108,22 +97,19 @@ make test
|
|||||||
%postun -n turbojpeg -p /sbin/ldconfig
|
%postun -n turbojpeg -p /sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc README README-turbo.txt change.log ChangeLog.txt
|
%doc README README-turbo.txt change.log ChangeLog.txt
|
||||||
%{_libdir}/libjpeg.so.62*
|
%{_libdir}/libjpeg.so.62*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc coderules.txt jconfig.txt libjpeg.txt structure.txt example.c
|
%doc coderules.txt jconfig.txt libjpeg.txt structure.txt example.c
|
||||||
%{_includedir}/jpegint.h
|
|
||||||
%{_includedir}/jconfig.h
|
%{_includedir}/jconfig.h
|
||||||
%{_includedir}/jerror.h
|
%{_includedir}/jerror.h
|
||||||
%{_includedir}/jmorecfg.h
|
%{_includedir}/jmorecfg.h
|
||||||
|
%{_includedir}/jpegint.h
|
||||||
%{_includedir}/jpeglib.h
|
%{_includedir}/jpeglib.h
|
||||||
%{_libdir}/libjpeg.so
|
%{_libdir}/libjpeg.so
|
||||||
|
|
||||||
%files utils
|
%files utils
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc usage.txt wizard.txt
|
%doc usage.txt wizard.txt
|
||||||
%{_bindir}/cjpeg
|
%{_bindir}/cjpeg
|
||||||
%{_bindir}/djpeg
|
%{_bindir}/djpeg
|
||||||
@ -144,6 +130,9 @@ make test
|
|||||||
%{_libdir}/libturbojpeg.so
|
%{_libdir}/libturbojpeg.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Apr 16 2014 Simone Caronni <negativo17@gmail.com> - 1.3.1-2
|
||||||
|
- Re-add libjpeg-devel requirements for broken packages since Fedora 13.
|
||||||
|
|
||||||
* Wed Apr 16 2014 Petr Hracek <phracek@redhat.com> - 1.3.1-1
|
* Wed Apr 16 2014 Petr Hracek <phracek@redhat.com> - 1.3.1-1
|
||||||
- New upstream version
|
- New upstream version
|
||||||
- Remove upstreamed patches, add missing jpegint.h
|
- Remove upstreamed patches, add missing jpegint.h
|
||||||
|
Loading…
Reference in New Issue
Block a user