| 1 |
|
|---|
| 2 | Summary: The compression and decompression library
|
|---|
| 3 | Name: zlib
|
|---|
| 4 | Version: 1.2.11
|
|---|
| 5 | Release: 2%{?dist}
|
|---|
| 6 | License: zlib and Boost
|
|---|
| 7 | Group: System Environment/Libraries
|
|---|
| 8 | URL: http://www.zlib.net
|
|---|
| 9 | Vendor: bww bitwise works GmbH
|
|---|
| 10 | %scm_source svn http://svn.netlabs.org/repos/ports/zlib/trunk 1948
|
|---|
| 11 |
|
|---|
| 12 | # DEF files to create forwarders for the legacy package
|
|---|
| 13 | Source10: z.def
|
|---|
| 14 |
|
|---|
| 15 | BuildRequires: automake, autoconf, libtool
|
|---|
| 16 |
|
|---|
| 17 | %description
|
|---|
| 18 | Zlib is a general-purpose, patent-free, lossless data compression
|
|---|
| 19 | library which is used by many different programs.
|
|---|
| 20 |
|
|---|
| 21 | %package devel
|
|---|
| 22 | Summary: Header files and libraries for Zlib development
|
|---|
| 23 | Group: Development/Libraries
|
|---|
| 24 | Requires: %{name} = %{version}-%{release}
|
|---|
| 25 |
|
|---|
| 26 | %description devel
|
|---|
| 27 | The zlib-devel package contains the header files and libraries needed
|
|---|
| 28 | to develop programs that use the zlib compression and decompression
|
|---|
| 29 | library.
|
|---|
| 30 |
|
|---|
| 31 | %package static
|
|---|
| 32 | Summary: Static libraries for Zlib development
|
|---|
| 33 | Group: Development/Libraries
|
|---|
| 34 | Requires: %{name}-devel = %{version}-%{release}
|
|---|
| 35 |
|
|---|
| 36 | %description static
|
|---|
| 37 | The zlib-static package includes static libraries needed
|
|---|
| 38 | to develop programs that use the zlib compression and
|
|---|
| 39 | decompression library.
|
|---|
| 40 |
|
|---|
| 41 | %package -n minizip
|
|---|
| 42 | Summary: Library for manipulation with .zip archives
|
|---|
| 43 | Group: System Environment/Libraries
|
|---|
| 44 | Requires: %{name} = %{version}-%{release}
|
|---|
| 45 |
|
|---|
| 46 | %description -n minizip
|
|---|
| 47 | Minizip is a library for manipulation with files from .zip archives.
|
|---|
| 48 |
|
|---|
| 49 | %package -n minizip-devel
|
|---|
| 50 | Summary: Development files for the minizip library
|
|---|
| 51 | Group: Development/Libraries
|
|---|
| 52 | Requires: minizip = %{version}-%{release}
|
|---|
| 53 | Requires: %{name}-devel = %{version}-%{release}
|
|---|
| 54 | Requires: pkgconfig
|
|---|
| 55 |
|
|---|
| 56 | %description -n minizip-devel
|
|---|
| 57 | This package contains the libraries and header files needed for
|
|---|
| 58 | developing applications which use minizip.
|
|---|
| 59 |
|
|---|
| 60 | %debug_package
|
|---|
| 61 |
|
|---|
| 62 | %prep
|
|---|
| 63 | %scm_setup
|
|---|
| 64 |
|
|---|
| 65 | # Prepare forwarder DLLs.
|
|---|
| 66 | for m in %{SOURCE10}; do
|
|---|
| 67 | cp ${m} .
|
|---|
| 68 | done
|
|---|
| 69 |
|
|---|
| 70 | %build
|
|---|
| 71 | export CFLAGS="$RPM_OPT_FLAGS"
|
|---|
| 72 | export LDFLAGS="$LDFLAGS -Zomf -Zhigh-mem -lcx"
|
|---|
| 73 | export VENDOR="%{vendor}"
|
|---|
| 74 | ./configure --libdir=%{_libdir} --includedir=%{_includedir} --prefix=%{_prefix}
|
|---|
| 75 | make %{?_smp_mflags}
|
|---|
| 76 |
|
|---|
| 77 | cd contrib/minizip
|
|---|
| 78 | autoreconf -fvi
|
|---|
| 79 | %configure --enable-static=no
|
|---|
| 80 | make %{?_smp_mflags}
|
|---|
| 81 |
|
|---|
| 82 | %check
|
|---|
| 83 | make test
|
|---|
| 84 |
|
|---|
| 85 | %install
|
|---|
| 86 | make install DESTDIR=$RPM_BUILD_ROOT
|
|---|
| 87 |
|
|---|
| 88 | cd contrib/minizip
|
|---|
| 89 | make install DESTDIR=$RPM_BUILD_ROOT
|
|---|
| 90 | # we need to get back to root, as else the debugfile list is created at
|
|---|
| 91 | # the wrong location
|
|---|
| 92 | cd ..
|
|---|
| 93 | cd ..
|
|---|
| 94 |
|
|---|
| 95 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
|
|---|
| 96 |
|
|---|
| 97 | # Generate & install forwarder DLLs.
|
|---|
| 98 | gcc -Zomf -Zdll -nostdlib z.def -l$RPM_BUILD_ROOT/%{_libdir}/z1.dll -lend -o $RPM_BUILD_ROOT/%{_libdir}/z.dll
|
|---|
| 99 |
|
|---|
| 100 | #post -p /sbin/ldconfig
|
|---|
| 101 |
|
|---|
| 102 | #postun -p /sbin/ldconfig
|
|---|
| 103 |
|
|---|
| 104 | #post -n minizip -p /sbin/ldconfig
|
|---|
| 105 |
|
|---|
| 106 | #postun -n minizip -p /sbin/ldconfig
|
|---|
| 107 |
|
|---|
| 108 | %files
|
|---|
| 109 | %{!?_licensedir:%global license %%doc}
|
|---|
| 110 | %license README
|
|---|
| 111 | %doc ChangeLog FAQ
|
|---|
| 112 | %{_libdir}/z*.dll
|
|---|
| 113 |
|
|---|
| 114 | %files devel
|
|---|
| 115 | %{!?_licensedir:%global license %%doc}
|
|---|
| 116 | %license README
|
|---|
| 117 | %doc doc/algorithm.txt test/example.c
|
|---|
| 118 | %{_libdir}/libz_dll.a
|
|---|
| 119 | %{_libdir}/pkgconfig/zlib.pc
|
|---|
| 120 | %{_includedir}/zlib.h
|
|---|
| 121 | %{_includedir}/zconf.h
|
|---|
| 122 | %{_mandir}/man3/zlib.3*
|
|---|
| 123 |
|
|---|
| 124 | %files static
|
|---|
| 125 | %{!?_licensedir:%global license %%doc}
|
|---|
| 126 | %license README
|
|---|
| 127 | %{_libdir}/libz.a
|
|---|
| 128 |
|
|---|
| 129 | %files -n minizip
|
|---|
| 130 | %doc contrib/minizip/MiniZip64_info.txt contrib/minizip/MiniZip64_Changes.txt
|
|---|
| 131 | %{_libdir}/minizip*.dll
|
|---|
| 132 |
|
|---|
| 133 | %files -n minizip-devel
|
|---|
| 134 | %dir %{_includedir}/minizip
|
|---|
| 135 | %{_includedir}/minizip/*.h
|
|---|
| 136 | %{_libdir}/minizip*_dll.a
|
|---|
| 137 | %{_libdir}/pkgconfig/minizip.pc
|
|---|
| 138 |
|
|---|
| 139 | %changelog
|
|---|
| 140 | * Wed Aug 09 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.2.11-2
|
|---|
| 141 | - use new scm_source and scm_setup macro
|
|---|
| 142 |
|
|---|
| 143 | * Tue Jan 24 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 1.2.11-1
|
|---|
| 144 | - update to version 1.2.11
|
|---|
| 145 |
|
|---|
| 146 | * Thu Feb 18 2016 yd <yd@os2power.com> 1.2.5-6
|
|---|
| 147 | - added .pc file to distribution.
|
|---|
| 148 | - use new debug macros.
|
|---|
| 149 |
|
|---|
| 150 | * Mon Jun 02 2014 yd
|
|---|
| 151 | - remove dll from devel package.
|
|---|
| 152 | - added debug package with symbolic info for exceptq.
|
|---|
| 153 |
|
|---|
| 154 | * Mon Jan 16 2012 yd
|
|---|
| 155 | - rebuild with libc 0.6.4 runtime.
|
|---|