zlib-vl.spec 12 KB

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