Ignore:
Timestamp:
Sep 21, 2016, 9:27:20 PM (9 years ago)
Author:
Silvan Scherrer
Message:

spec: libjpeg: update to version 8d

File:
1 edited

Legend:

Unmodified
Added
Removed
  • spec/trunk/SPECS/libjpeg.spec

    r256 r850  
     1#define svn_url     e:/trees/libjpeg/trunk
     2%define svn_url     http://svn.netlabs.org/repos/ports/libjpeg/trunk
     3%define svn_rev     1707
     4
    15Summary: A library for manipulating JPEG image format files
    26Name: libjpeg
    3 Version: 8c
     7Version: 8d
    48Release: 1%{?dist}
    59License: IJG
     
    711URL: http://www.ijg.org/
    812
    9 Source0: ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v%{version}.tar.gz
     13Vendor:  bww bitwise works GmbH
     14Source:  %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
    1015
    11 Patch1: jpeg-os2.diff
     16# DEF files to create forwarders for the legacy package
     17Source10:       jpeg.def
    1218
    13 #BuildRequires: autoconf libtool
     19BuildRequires: autoconf libtool
    1420BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
    1521
     
    4854necessary for some boot packages.
    4955
     56%debug_package
     57
    5058%prep
    51 %setup -q -n jpeg-%{version}
     59%if %{?svn_rev:%(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')}%{!?svn_rev):0}
     60%setup -q
     61%else
     62%setup -n "%{name}-%{version}" -Tc
     63svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
     64rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip"
     65(cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}")
     66%endif
    5267
    53 %patch1 -p1 -b .os2~
     68# Prepare forwarder DLLs.
     69for m in %{SOURCE10}; do
     70  cp ${m} .
     71done
     72
     73# Hack: disable autoheader so that it doesn't overwrite our cfg template.
     74export AUTOHEADER="echo autoheader ignored"
     75autoreconf -vif
    5476
    5577%build
    56 export CONFIG_SHELL="/@unixroot/usr/bin/sh.exe"
    57 export CFLAGS="$RPM_OPT_FLAGS"
    5878export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
    5979%configure \
    60      --disable-shared --enable-static \
    61     "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
     80     --enable-shared --enable-static
    6281
    6382make %{?_smp_mflags}
    6483
     84%check
     85# this export is needed, as else the dll for the tests are not found
     86export BEGINLIBPATH=%{_builddir}/%{buildsubdir}/.libs
     87make test
     88
    6589%install
    6690rm -rf $RPM_BUILD_ROOT
    67 
    6891%makeinstall
    6992
    70 install -m 755 jpeg.dll $RPM_BUILD_ROOT/%{_libdir}
    71 install -m 755 .libs/jpeg_s.a $RPM_BUILD_ROOT/%{_libdir}
     93#install -m 755 jpeg.dll $RPM_BUILD_ROOT/%{_libdir}
     94#install -m 755 .libs/jpeg_s.a $RPM_BUILD_ROOT/%{_libdir}
    7295
    7396# We don't ship .la files.
    7497rm $RPM_BUILD_ROOT%{_libdir}/*.la
     98
     99# Generate & install forwarder DLLs.
     100gcc -Zomf -Zdll jpeg.def -l$RPM_BUILD_ROOT/%{_libdir}/jpeg8.dll -o $RPM_BUILD_ROOT/%{_libdir}/jpeg.dll
    75101
    76102%files
     
    78104%doc usage.txt README
    79105%{_libdir}/jpeg*.dll
    80 %{_bindir}/*
     106%{_bindir}/*.exe
    81107%{_mandir}/*/*
    82108
     
    84110%defattr(-,root,root)
    85111%doc libjpeg.txt coderules.txt structure.txt wizard.txt example.c
    86 %{_libdir}/jpeg.a
     112%{_libdir}/jpeg*_dll.a
    87113%{_includedir}/*.h
    88114
    89115%files static
    90116%defattr(-,root,root)
    91 %{_libdir}/jpeg_s.a
     117%{_libdir}/jpeg.a
    92118
    93119%clean
     
    95121
    96122%changelog
     123* Wed Sep 21 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> - 8d-1
     124- update to version 8d
     125- change build part
     126- add debug files
     127
    97128* Mon Dec 19 2011 yd
    98129- initial build.
Note: See TracChangeset for help on using the changeset viewer.