zlib-vl.spec 12 KB

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