Skip to content

Commit

Permalink
Merge pull request #4376 from cms-sw/libjpegturbo-153
Browse files Browse the repository at this point in the history
[10.3.X] Update ibjpeg-turbo version to 1.5.3
  • Loading branch information
smuzaffar authored Oct 2, 2018
2 parents 8243741 + d580c9c commit ff8f744
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 25 deletions.
17 changes: 12 additions & 5 deletions libjpeg-turbo.spec
Original file line number Diff line number Diff line change
@@ -1,18 +1,25 @@
### RPM external libjpeg-turbo 1.3.1
Source: http://heanet.dl.sourceforge.net/project/%{n}/%{realversion}/%{n}-%{realversion}.tar.gz
### RPM external libjpeg-turbo 1.5.3
## INITENV SETV LIBJPEG_TURBO_SOURCE %{source0}
## INITENV SETV LIBJPEG_TURBO_STRIP_PREFIX %{source_prefix}

BuildRequires: nasm
%define source0 https://github.com/libjpeg-turbo/libjpeg-turbo/archive/%{realversion}.tar.gz
%define source_prefix %{n}-%{realversion}
Source: %{source0}

BuildRequires: nasm autotools gmake

%prep
%setup -n %{n}-%{realversion}
%setup -n %{source_prefix}

%build
# Update to get AArch64
# Update to get AArch64
rm -f ./config.{sub,guess}
curl -L -k -s -o ./config.sub 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD'
curl -L -k -s -o ./config.guess 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD'
chmod +x ./config.{sub,guess}

autoreconf -fiv

./configure \
--prefix=%{i} \
--enable-shared \
Expand Down
22 changes: 2 additions & 20 deletions pyqt.spec
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ case %cmsos in
;;
esac

echo yes | python ./configure.py --verbose -b %i/bin -d %i/lib/python`echo $PYTHON_VERSION | cut -d. -f 1,2`/site-packages \
echo yes | python ./configure.py --sipdir=%{i}/share/PyQt4 --verbose -b %{i}/bin -d %{i}/lib/python`echo $PYTHON_VERSION | cut -d. -f 1,2`/site-packages \
-e %i/include \
`find $QT_ROOT/include/ -type d | xargs -n 1 basename| grep -v include | xargs echo | sed -e 's| | --enable=|g;s|^|--enable=|'`

Expand All @@ -36,23 +36,5 @@ make %makeprocesses
%install
make install

mkdir -p %i/etc/profile.d
cat << \EOF_INIT_ME > %i/etc/profile.d/init-standalone.sh
#!/bin/sh
source @GCC_ROOT@/etc/profile.d/init.sh
source @BZ2LIB_ROOT@/etc/profile.d/init.sh
source @EXPAT_ROOT@/etc/profile.d/init.sh
source @DB4_ROOT@/etc/profile.d/init.sh
source @GDBM_ROOT@/etc/profile.d/init.sh
source @ZLIB_ROOT@/etc/profile.d/init.sh
source @OPENSSL_ROOT@/etc/profile.d/init.sh
source @PYTHON_ROOT@/etc/profile.d/init.sh
source @QT_ROOT@/etc/profile.d/init.sh
source @SIP_ROOT@/etc/profile.d/init.sh
source %i/etc/profile.d/init.sh
EOF_INIT_ME

perl -p -i -e "s|\@([^@]*)\@|\$ENV{\$1}|" %i/etc/profile.d/init-standalone.sh

%post
%{relocateConfig}etc/profile.d/init-standalone.sh
ln -s dependencies-setup.sh $RPM_INSTALL_PREFIX/%{pkgrel}/etc/profile.d/init-standalone.sh

0 comments on commit ff8f744

Please sign in to comment.