Changeset 850 for spec/trunk/SPECS/libjpeg.spec
- Timestamp:
- Sep 21, 2016, 9:27:20 PM (9 years ago)
- File:
-
- 1 edited
-
spec/trunk/SPECS/libjpeg.spec (modified) (6 diffs)
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 1 5 Summary: A library for manipulating JPEG image format files 2 6 Name: libjpeg 3 Version: 8 c7 Version: 8d 4 8 Release: 1%{?dist} 5 9 License: IJG … … 7 11 URL: http://www.ijg.org/ 8 12 9 Source0: ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v%{version}.tar.gz 13 Vendor: bww bitwise works GmbH 14 Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip 10 15 11 Patch1: jpeg-os2.diff 16 # DEF files to create forwarders for the legacy package 17 Source10: jpeg.def 12 18 13 #BuildRequires: autoconf libtool19 BuildRequires: autoconf libtool 14 20 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root 15 21 … … 48 54 necessary for some boot packages. 49 55 56 %debug_package 57 50 58 %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 63 svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force 64 rm -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 52 67 53 %patch1 -p1 -b .os2~ 68 # Prepare forwarder DLLs. 69 for m in %{SOURCE10}; do 70 cp ${m} . 71 done 72 73 # Hack: disable autoheader so that it doesn't overwrite our cfg template. 74 export AUTOHEADER="echo autoheader ignored" 75 autoreconf -vif 54 76 55 77 %build 56 export CONFIG_SHELL="/@unixroot/usr/bin/sh.exe"57 export CFLAGS="$RPM_OPT_FLAGS"58 78 export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" 59 79 %configure \ 60 --disable-shared --enable-static \ 61 "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache" 80 --enable-shared --enable-static 62 81 63 82 make %{?_smp_mflags} 64 83 84 %check 85 # this export is needed, as else the dll for the tests are not found 86 export BEGINLIBPATH=%{_builddir}/%{buildsubdir}/.libs 87 make test 88 65 89 %install 66 90 rm -rf $RPM_BUILD_ROOT 67 68 91 %makeinstall 69 92 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} 72 95 73 96 # We don't ship .la files. 74 97 rm $RPM_BUILD_ROOT%{_libdir}/*.la 98 99 # Generate & install forwarder DLLs. 100 gcc -Zomf -Zdll jpeg.def -l$RPM_BUILD_ROOT/%{_libdir}/jpeg8.dll -o $RPM_BUILD_ROOT/%{_libdir}/jpeg.dll 75 101 76 102 %files … … 78 104 %doc usage.txt README 79 105 %{_libdir}/jpeg*.dll 80 %{_bindir}/* 106 %{_bindir}/*.exe 81 107 %{_mandir}/*/* 82 108 … … 84 110 %defattr(-,root,root) 85 111 %doc libjpeg.txt coderules.txt structure.txt wizard.txt example.c 86 %{_libdir}/jpeg .a112 %{_libdir}/jpeg*_dll.a 87 113 %{_includedir}/*.h 88 114 89 115 %files static 90 116 %defattr(-,root,root) 91 %{_libdir}/jpeg _s.a117 %{_libdir}/jpeg.a 92 118 93 119 %clean … … 95 121 96 122 %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 97 128 * Mon Dec 19 2011 yd 98 129 - initial build.
Note:
See TracChangeset
for help on using the changeset viewer.
