| 1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
|---|
| 2 | Summary: The zlib compression and decompression library. |
|---|
| 3 | Summary(ja): zlib 圧縮/展開ライブラリ |
|---|
| 4 | Name: zlib |
|---|
| 5 | Version: 1.2.5 |
|---|
| 6 | Release: 2%{?_dist_release} |
|---|
| 7 | Group: System Environment/Libraries |
|---|
| 8 | Source: http://www.zlib.net/zlib-%{version}.tar.bz2 |
|---|
| 9 | Patch0: zlib-1.2.5-lfs-decls.patch |
|---|
| 10 | |
|---|
| 11 | Requires(post): /sbin/ldconfig |
|---|
| 12 | Requires(postun): /sbin/ldconfig |
|---|
| 13 | |
|---|
| 14 | URL: http://www.zlib.net/ |
|---|
| 15 | License: zlib and Boost |
|---|
| 16 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
|---|
| 17 | |
|---|
| 18 | %description |
|---|
| 19 | The zlib compression library provides in-memory compression and |
|---|
| 20 | decompression functions, including integrity checks of the |
|---|
| 21 | uncompressed data. This version of the library supports only one |
|---|
| 22 | compression method (deflation), but other algorithms may be added |
|---|
| 23 | later, which will have the same stream interface. The zlib library is |
|---|
| 24 | used by many different system programs. |
|---|
| 25 | |
|---|
| 26 | %description -l ja |
|---|
| 27 | zlib圧縮ライブラリーは、メモリ内で圧縮と解凍を行う関数や、解凍後 |
|---|
| 28 | のデータの整合性チェックを行う関数を提供します。今バージョンのラ |
|---|
| 29 | イブラリは「デフレーション(deflation)」という圧縮方法のみをサポ |
|---|
| 30 | ートしていますが、今後同じストリームインターフェースを持つ他の圧 |
|---|
| 31 | 縮方法も追加する予定です。zlibライブラリーは多種のプログラムで使 |
|---|
| 32 | 用されています。 |
|---|
| 33 | |
|---|
| 34 | %package devel |
|---|
| 35 | Summary: Header files and libraries for developing apps which will use zlib. |
|---|
| 36 | Summary(ja): zlib を使ったプログラム開発に必要なヘッダファイル/ライブラリ |
|---|
| 37 | Group: Development/Libraries |
|---|
| 38 | Requires: %{name} = %{version}-%{release} |
|---|
| 39 | |
|---|
| 40 | %description devel |
|---|
| 41 | The zlib-devel package contains the header files and libraries needed |
|---|
| 42 | to develop programs that use the zlib compression and decompression |
|---|
| 43 | library. |
|---|
| 44 | |
|---|
| 45 | %package static |
|---|
| 46 | Summary: Static libraries for %{name} |
|---|
| 47 | Summary(ja): %{name} のスタティックライブラリ |
|---|
| 48 | Group: Development/Libraries |
|---|
| 49 | Requires: %{name}-devel = %{version}-%{release} |
|---|
| 50 | |
|---|
| 51 | %description static |
|---|
| 52 | The zlib-static package contains the static library for %{name} |
|---|
| 53 | |
|---|
| 54 | ## to build compat32 for x86_64 architecture support |
|---|
| 55 | %package -n compat32-%{name} |
|---|
| 56 | Summary: The zlib compression and decompression library. |
|---|
| 57 | Summary(ja): zlib 圧縮/展開ライブラリ |
|---|
| 58 | Group: System Environment/Libraries |
|---|
| 59 | Requires: %{name} = %{version}-%{release} |
|---|
| 60 | Requires(post): /sbin/ldconfig |
|---|
| 61 | Requires(postun): /sbin/ldconfig |
|---|
| 62 | |
|---|
| 63 | %description -n compat32-%{name} |
|---|
| 64 | The zlib compression library provides in-memory compression and |
|---|
| 65 | decompression functions, including integrity checks of the |
|---|
| 66 | uncompressed data. This version of the library supports only one |
|---|
| 67 | compression method (deflation), but other algorithms may be added |
|---|
| 68 | later, which will have the same stream interface. The zlib library is |
|---|
| 69 | used by many different system programs. |
|---|
| 70 | |
|---|
| 71 | %description -n compat32-%{name} -l ja |
|---|
| 72 | zlib圧縮ライブラリーは、メモリ内で圧縮と解凍を行う関数や、解凍後 |
|---|
| 73 | のデータの整合性チェックを行う関数を提供します。今バージョンのラ |
|---|
| 74 | イブラリは「デフレーション(deflation)」という圧縮方法のみをサポ |
|---|
| 75 | ートしていますが、今後同じストリームインターフェースを持つ他の圧 |
|---|
| 76 | 縮方法も追加する予定です。zlibライブラリーは多種のプログラムで使 |
|---|
| 77 | 用されています。 |
|---|
| 78 | |
|---|
| 79 | %package -n compat32-%{name}-devel |
|---|
| 80 | Summary: Header files and libraries for developing apps which will use zlib. |
|---|
| 81 | Summary(ja): zlib を使ったプログラム開発に必要なヘッダファイル/ライブラリ |
|---|
| 82 | Group: Development/Libraries |
|---|
| 83 | Requires: %{name} = %{version}-%{release} |
|---|
| 84 | Requires: %{name}-devel = %{version}-%{release} |
|---|
| 85 | |
|---|
| 86 | %description -n compat32-%{name}-devel |
|---|
| 87 | The zlib-devel package contains the header files and libraries needed |
|---|
| 88 | to develop programs that use the zlib compression and decompression |
|---|
| 89 | library. |
|---|
| 90 | |
|---|
| 91 | Install the zlib-devel package if you want to develop applications that |
|---|
| 92 | will use the zlib library. |
|---|
| 93 | |
|---|
| 94 | |
|---|
| 95 | %prep |
|---|
| 96 | %setup -q |
|---|
| 97 | %patch0 -p1 |
|---|
| 98 | |
|---|
| 99 | %build |
|---|
| 100 | mkdir static shared |
|---|
| 101 | |
|---|
| 102 | # build shared lib |
|---|
| 103 | CFLAGS="$RPM_OPT_FLAGS -fPIC" ./configure --shared --prefix=%{_prefix} |
|---|
| 104 | |
|---|
| 105 | make |
|---|
| 106 | mv -f Makefile zconf.h *.o *.so* shared/ |
|---|
| 107 | |
|---|
| 108 | # build static lib |
|---|
| 109 | CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} |
|---|
| 110 | make |
|---|
| 111 | mv -f Makefile zconf.h *.o *.a static/ |
|---|
| 112 | |
|---|
| 113 | |
|---|
| 114 | %install |
|---|
| 115 | rm -rf ${RPM_BUILD_ROOT} |
|---|
| 116 | mkdir -p ${RPM_BUILD_ROOT}%{_prefix} |
|---|
| 117 | |
|---|
| 118 | mv -f shared/* . |
|---|
| 119 | make install prefix=${RPM_BUILD_ROOT}%{_prefix} |
|---|
| 120 | |
|---|
| 121 | mv -f Makefile zconf.h *.o *.so* shared/ |
|---|
| 122 | mv -f static/* . |
|---|
| 123 | make install prefix=${RPM_BUILD_ROOT}%{_prefix} |
|---|
| 124 | |
|---|
| 125 | install -m644 zutil.h ${RPM_BUILD_ROOT}%{_includedir}/zutil.h |
|---|
| 126 | mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man3 |
|---|
| 127 | install -m644 zlib.3 ${RPM_BUILD_ROOT}%{_mandir}/man3 |
|---|
| 128 | |
|---|
| 129 | if [ "%{_prefix}/lib" != "%{_libdir}" ]; then |
|---|
| 130 | mkdir -p ${RPM_BUILD_ROOT}%{_libdir} |
|---|
| 131 | mv ${RPM_BUILD_ROOT}%{_prefix}/lib/* ${RPM_BUILD_ROOT}%{_libdir} |
|---|
| 132 | rmdir ${RPM_BUILD_ROOT}%{_prefix}/lib |
|---|
| 133 | fi |
|---|
| 134 | |
|---|
| 135 | %clean |
|---|
| 136 | rm -rf ${RPM_BUILD_ROOT} |
|---|
| 137 | |
|---|
| 138 | %post -p /sbin/ldconfig |
|---|
| 139 | |
|---|
| 140 | %postun -p /sbin/ldconfig |
|---|
| 141 | |
|---|
| 142 | %post -n compat32-%{name} -p /sbin/ldconfig |
|---|
| 143 | |
|---|
| 144 | %postun -n compat32-%{name} -p /sbin/ldconfig |
|---|
| 145 | |
|---|
| 146 | %files |
|---|
| 147 | %defattr(-,root,root) |
|---|
| 148 | %doc README |
|---|
| 149 | %{_libdir}/libz.so.* |
|---|
| 150 | |
|---|
| 151 | %files devel |
|---|
| 152 | %defattr(-,root,root) |
|---|
| 153 | %doc ChangeLog doc/algorithm.txt minigzip.c example.c |
|---|
| 154 | %{_libdir}/*.so |
|---|
| 155 | %{_libdir}/pkgconfig/zlib.pc |
|---|
| 156 | %{_includedir}/* |
|---|
| 157 | %{_mandir}/man3/zlib.3* |
|---|
| 158 | |
|---|
| 159 | %files static |
|---|
| 160 | %defattr(-,root,root) |
|---|
| 161 | %{_libdir}/*.a |
|---|
| 162 | |
|---|
| 163 | %if %{build_compat32} |
|---|
| 164 | %files -n compat32-%{name} |
|---|
| 165 | %defattr(-,root,root) |
|---|
| 166 | %{_libdir}/libz.so.* |
|---|
| 167 | |
|---|
| 168 | %files -n compat32-%{name}-devel |
|---|
| 169 | %defattr(-,root,root) |
|---|
| 170 | %{_libdir}/*.so |
|---|
| 171 | %{_libdir}/pkgconfig/zlib.pc |
|---|
| 172 | %endif |
|---|
| 173 | |
|---|
| 174 | %changelog |
|---|
| 175 | * Fri Oct 1 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.2.5-2 |
|---|
| 176 | - added patch0 from gentoo to fix zlib.h errors on i686 compiling some applications |
|---|
| 177 | |
|---|
| 178 | * Wed Sep 22 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.2.5-1 |
|---|
| 179 | - new upstream release (built with rpm-4.8.1-1 for pkg-config file) |
|---|
| 180 | - changed License: BSD to zlib and Boost |
|---|
| 181 | - added %%{_libdir}/pkgconfig/zlib.pc in -devel package |
|---|
| 182 | - fixed %%doc files in -devel package |
|---|
| 183 | |
|---|
| 184 | * Fri Mar 05 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.2.3-7 |
|---|
| 185 | - add Requires(post,pre): /sbin/ldconfig |
|---|
| 186 | |
|---|
| 187 | * Fri Feb 12 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.2.3-6 |
|---|
| 188 | - rebuilt with gcc-4.4.3-3 on ppc |
|---|
| 189 | |
|---|
| 190 | * Mon Feb 8 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.2.3-5 |
|---|
| 191 | - rebuilt with new toolchain |
|---|
| 192 | |
|---|
| 193 | * Fri Mar 27 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.3-4 |
|---|
| 194 | - split static library to zlib-static |
|---|
| 195 | - needed by tuxonice-userui |
|---|
| 196 | |
|---|
| 197 | * Wed Dec 17 2008 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 1.2.3-3 |
|---|
| 198 | - change spec into UTF-8 |
|---|
| 199 | |
|---|
| 200 | * Sun May 18 2008 NAKAMURA Kenta <kenta@vinelinux.org> 1.2.3-2 |
|---|
| 201 | - removed %%if !%%{build_compat32} case condition |
|---|
| 202 | |
|---|
| 203 | * Sat May 17 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.2.3-1 |
|---|
| 204 | - applied new versioning policy |
|---|
| 205 | - rebuilt with new toolchains |
|---|
| 206 | |
|---|
| 207 | * Mon Feb 06 2006 Shu KONNO <owa@bg.wakwak.com> 1.2.3-0vl5 |
|---|
| 208 | - moved macros _lib to /usr/lib/rpm/rpmrc or macros files |
|---|
| 209 | |
|---|
| 210 | * Fri Feb 03 2006 Shu KONNO <owa@bg.wakwak.com> 1.2.3-0vl4 |
|---|
| 211 | - added compat32-* packages for x86_64 architecture support |
|---|
| 212 | |
|---|
| 213 | * Tue Oct 25 2005 NAKAMURA Kenta <kenta@c.csce.kyushu-u.ac.jp> 1.2.3-0vl3 |
|---|
| 214 | - added compat32- packages for x86_64 architecture support |
|---|
| 215 | |
|---|
| 216 | * Tue Oct 25 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.3-0vl2 |
|---|
| 217 | - clean up specfile (do not build twice..) |
|---|
| 218 | |
|---|
| 219 | * Tue Jul 19 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.3-0vl1 |
|---|
| 220 | - new upstream release |
|---|
| 221 | |
|---|
| 222 | * Sun Jul 10 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.2.2-0vl1 |
|---|
| 223 | - new upstream release |
|---|
| 224 | - add Patch1 for CAN-2005-2096 |
|---|
| 225 | |
|---|
| 226 | * Fri Mar 25 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.2-0vl1 |
|---|
| 227 | - new upstream version |
|---|
| 228 | - add translated descriptions (thanks to spec file translation project) |
|---|
| 229 | |
|---|
| 230 | * Sun Apr 06 2003 Satoshi MACHINO <machino@vinelinux.org> 1.1.4-0vl3 |
|---|
| 231 | - fixed buffer overrun on gzprintf |
|---|
| 232 | -- added zlib-1.1.4-vsnprintf.patch from http://archives.neohapsis.com/archives/bugtraq/2003-02/0290.html |
|---|
| 233 | |
|---|
| 234 | * Fri Sep 20 2002 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.1.4-0vl2 |
|---|
| 235 | - changed URL to more preferable site |
|---|
| 236 | |
|---|
| 237 | * Tue Mar 12 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 1.1.4-0vl1 |
|---|
| 238 | - upstream release |
|---|
| 239 | |
|---|
| 240 | * Tue Dec 26 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org> |
|---|
| 241 | - 1.1.3-14vl1 |
|---|
| 242 | - based on 1.1.3-14 from Rawhide |
|---|
| 243 | - added Japanese summary |
|---|
| 244 | |
|---|
| 245 | * Fri Sep 15 2000 Florian La Roche <Florian.LaRoche@redhat.de> |
|---|
| 246 | - add -fPIC for shared libs (patch by Fritz Elfert) |
|---|
| 247 | |
|---|
| 248 | * Thu Sep 7 2000 Jeff Johnson <jbj@redhat.com> |
|---|
| 249 | - on 64bit systems, make sure libraries are located correctly. |
|---|
| 250 | |
|---|
| 251 | * Thu Aug 17 2000 Jeff Johnson <jbj@redhat.com> |
|---|
| 252 | - summaries from specspo. |
|---|
| 253 | |
|---|
| 254 | * Thu Jul 13 2000 Prospector <bugzilla@redhat.com> |
|---|
| 255 | - automatic rebuild |
|---|
| 256 | |
|---|
| 257 | * Sun Jul 02 2000 Trond Eivind Glomsr <teg@redhat.com> |
|---|
| 258 | - rebuild |
|---|
| 259 | |
|---|
| 260 | * Tue Jun 13 2000 Jeff Johnson <jbj@redhat.com> |
|---|
| 261 | - FHS packaging to build on solaris2.5.1. |
|---|
| 262 | |
|---|
| 263 | * Wed Jun 07 2000 Trond Eivind Glomsr <teg@redhat.com> |
|---|
| 264 | - use %%{_mandir} and %%{_tmppath} |
|---|
| 265 | |
|---|
| 266 | * Fri May 12 2000 Trond Eivind Glomsr <teg@redhat.com> |
|---|
| 267 | - updated URL and source location |
|---|
| 268 | - moved README to main package |
|---|
| 269 | |
|---|
| 270 | * Mon Feb 7 2000 Jeff Johnson <jbj@redhat.com> |
|---|
| 271 | - compress man page. |
|---|
| 272 | |
|---|
| 273 | * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> |
|---|
| 274 | - auto rebuild in the new build environment (release 5) |
|---|
| 275 | |
|---|
| 276 | * Wed Sep 09 1998 Cristian Gafton <gafton@redhat.com> |
|---|
| 277 | - link against glibc |
|---|
| 278 | |
|---|
| 279 | * Mon Jul 27 1998 Jeff Johnson <jbj@redhat.com> |
|---|
| 280 | - upgrade to 1.1.3 |
|---|
| 281 | |
|---|
| 282 | * Fri May 08 1998 Prospector System <bugs@redhat.com> |
|---|
| 283 | - translations modified for de, fr, tr |
|---|
| 284 | |
|---|
| 285 | * Wed Apr 08 1998 Cristian Gafton <gafton@redhat.com> |
|---|
| 286 | - upgraded to 1.1.2 |
|---|
| 287 | - buildroot |
|---|
| 288 | |
|---|
| 289 | * Tue Oct 07 1997 Donnie Barnes <djb@redhat.com> |
|---|
| 290 | - added URL tag (down at the moment so it may not be correct) |
|---|
| 291 | - made zlib-devel require zlib |
|---|
| 292 | |
|---|
| 293 | * Thu Jun 19 1997 Erik Troan <ewt@redhat.com> |
|---|
| 294 | - built against glibc |
|---|