xz-vl.spec 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. Summary: LZMA compression utilities
  2. Summary(ja): LZMA 圧縮ユーティリティ
  3. Name: xz
  4. Version: 5.2.5
  5. Release: 2%{?_dist_release}
  6. Group: accessories
  7. Vendor: Project Vine
  8. Distribution: Vine Linux
  9. License: LGPLv2+
  10. URL: https://tukaani.org/xz/
  11. Source0: https://tukaani.org/xz/%{name}-%{version}.tar.xz
  12. Patch1: xz-5.2.5-enable_CET.patch
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  14. Requires: %{name}-libs = %{version}-%{release}
  15. %description
  16. XZ Utils are an attempt to make LZMA compression easy to use on free (as in
  17. freedom) operating systems. This is achieved by providing tools and libraries
  18. which are similar to use than the equivalents of the most popular existing
  19. compression algorithms.
  20. LZMA is a general purpose compression algorithm designed by Igor Pavlov as
  21. part of 7-Zip. It provides high compression ratio while keeping the
  22. decompression speed fast.
  23. %package libs
  24. Summary: Libraries for decoding LZMA compression
  25. Summary(ja): LZMA圧縮をデコードするためのライブラリ
  26. Group: system
  27. License: LGPLv2+
  28. %description libs
  29. Libraries for decoding files compressed with LZMA or XZ utils.
  30. %package devel
  31. Summary: Devel libraries & headers for liblzma
  32. Summary(ja): liblzma の開発ライブラリとヘッダファイル
  33. Group: programming
  34. License: LGPLv2+
  35. Requires: %{name}-libs = %{version}-%{release}
  36. Requires: pkgconfig
  37. %description devel
  38. Devel libraries and headers for liblzma.
  39. %package lzma-compat
  40. Summary: Older LZMA format compatibility binaries
  41. Summary(ja): 旧式のLZMAフォーマット互換バイナリ
  42. Group: accessories
  43. # lz{grep,diff,more} are GPLv2+. Other binaries are LGPLv2+
  44. License: GPLv2+ and LGPLv2+
  45. Requires: %{name} = %{version}-%{release}
  46. Obsoletes: lzma < 5
  47. Provides: lzma = 5
  48. %description lzma-compat
  49. The lzma-compat package contains compatibility links for older
  50. commands that deal with the older LZMA format.
  51. %debug_package
  52. %prep
  53. %setup -q
  54. %autopatch -p1
  55. %build
  56. CFLAGS="%{optflags} -D_FILE_OFFSET_BITS=64"
  57. %ifarch %ix86
  58. # rhbz#1630650, annocheck reports the following message because liblzma uses
  59. # crc*_x86.S asm code on i686:
  60. CFLAGS="$CFLAGS -Wa,--generate-missing-build-notes=yes"
  61. %endif
  62. CXXFLAGS="%{optflags} -D_FILE_OFFSET_BITS=64"
  63. %configure --enable-silent-rules --disable-static
  64. sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
  65. sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
  66. make %{?_smp_mflags}
  67. %install
  68. rm -rf %{buildroot}
  69. make install DESTDIR=%{buildroot} INSTALL="%{__install} -p"
  70. rm -f %{buildroot}/%{_libdir}/*.a
  71. rm -f %{buildroot}/%{_libdir}/*.la
  72. rm -rf %{buildroot}/%{_docdir}/%{name}
  73. %find_lang %{name}
  74. %check
  75. LD_LIBRARY_PATH=$PWD/src/liblzma/.libs make check
  76. %clean
  77. rm -rf %{buildroot}
  78. %files
  79. %defattr(-,root,root,-)
  80. %license COPYING.*
  81. %doc AUTHORS README THANKS ChangeLog
  82. %{_bindir}/*xz*
  83. %{_mandir}/man1/*xz*
  84. %{_mandir}/de/man1/*xz*
  85. %files libs -f %{name}.lang
  86. %defattr(-,root,root,-)
  87. %license COPYING.*
  88. %{_libdir}/lib*.so.*
  89. %files devel
  90. %defattr(-,root,root,-)
  91. %dir %{_includedir}/lzma
  92. %{_includedir}/lzma/*.h
  93. %{_includedir}/lzma.h
  94. %{_libdir}/*.so
  95. %{_libdir}/pkgconfig/liblzma.pc
  96. %files lzma-compat
  97. %defattr(-,root,root,-)
  98. %{_bindir}/*lz*
  99. %{_mandir}/man1/*lz*
  100. %{_mandir}/de/man1/*lz*
  101. %changelog
  102. * Wed Mar 10 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.2.5-2
  103. - imported Patch1 from upstream.
  104. - dropped scriptlets.
  105. * Thu Jul 16 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.2.5-1
  106. - new upstream release.
  107. * Fri Sep 13 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 5.2.4-1
  108. - new upstream release.
  109. * Thu Nov 10 2016 Toshiaki Ara <ara_t@384.jp> 5.2.2-1
  110. - new upstream release
  111. * Fri Oct 3 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 5.0.5-3
  112. - moved lzma-compat to Applications/Archiving Group
  113. * Sat Jul 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 5.0.5-2
  114. - rebuild with VineSeed environment
  115. * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 5.0.5-1
  116. - new upstream release
  117. * Fri Oct 19 2012 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 5.0.4-1
  118. - new upstream release
  119. * Thu Apr 14 2011 IWAI, Masaharu <iwai@alib.jp> 5.0.2-1
  120. - new upstream release
  121. - fix Group: <BTS:VineLinux:1119>
  122. - add Vendor and Distribution tags
  123. * Fri Jan 07 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 5.0.0-1
  124. - new upstream release
  125. * Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.999.9-2
  126. - rebuild with rpm-4.8.1 for pkg-config file
  127. * Mon Feb 22 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 4.999.9-1
  128. - initial build for Vine Linux
  129. * Thu Feb 18 2010 Jindrich Novy <jnovy@redhat.com> 4.999.9-0.2.20091007.beta
  130. - move xz man pages to main package, leave lzma ones where they belong (#566484)
  131. * Wed Oct 07 2009 Jindrich Novy <jnovy@redhat.com> 4.999.9-0.1.20091007.beta
  132. - sync with upstream again
  133. * Fri Oct 02 2009 Jindrich Novy <jnovy@redhat.com> 4.999.9-0.1.20091002.beta
  134. - sync with upstream to generate the same archives on machines with different
  135. endianess
  136. * Fri Aug 28 2009 Jindrich Novy <jnovy@redhat.com> 4.999.9-0.1.beta
  137. - update to 4.999.9beta
  138. * Mon Aug 17 2009 Jindrich Novy <jnovy@redhat.com> 4.999.8-0.10.beta.20090817git
  139. - sync with upstream because of #517806
  140. * Tue Aug 04 2009 Jindrich Novy <jnovy@redhat.com> 4.999.8-0.9.beta.20090804git
  141. - update to the latest GIT snapshot
  142. * Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.999.8-0.8.beta
  143. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  144. * Fri Jul 17 2009 Bill Nottingham <notting@redhat.com> 4.999.8-0.7.beta
  145. - tweak summary
  146. - add %%check section (<tibbs@math.uh.edu>)
  147. * Thu Jul 09 2009 Bill Nottingham <notting@redhat.com> 4.999.8-0.6.beta
  148. - fix release versioning to match guidelines
  149. - fix up lzma-compat summary/description
  150. - tweak licensing
  151. * Mon Jun 22 2009 Jindrich Novy <jnovy@redhat.com> 4.999.8beta-0.5
  152. - introduce lzma-compat subpackage
  153. * Fri Jun 19 2009 Jindrich Novy <jnovy@redhat.com> 4.999.8beta-0.4
  154. - try to not to conflict with lzma
  155. * Thu Jun 18 2009 Jindrich Novy <jnovy@redhat.com> 4.999.8beta-0.3
  156. - obsolete but don't provide lzma, they are largely incompatible
  157. - put beta to Release
  158. * Wed Jun 17 2009 Jindrich Novy <jnovy@redhat.com> 4.999.8beta-0.2
  159. - obsolete old lzma
  160. - add Requires: pkgconfig
  161. * Tue Jun 16 2009 Jindrich Novy <jnovy@redhat.com> 4.999.8beta-0.1
  162. - package XZ Utils, based on LZMA Utils packaged by Per Patrice Bouchand