xz-vl.spec 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. Summary: LZMA compression utilities
  2. Summary(ja): LZMA 圧縮ユーティリティ
  3. Name: xz
  4. Version: 4.999.9
  5. Release: 1%{?_dist_release}
  6. License: LGPLv2+
  7. Group: Applications/File
  8. Source0: http://tukaani.org/%{name}/%{name}-%{version}beta.tar.bz2
  9. URL: http://tukaani.org/%{name}/
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  11. Requires: %{name}-libs = %{version}-%{release}
  12. %description
  13. XZ Utils are an attempt to make LZMA compression easy to use on free (as in
  14. freedom) operating systems. This is achieved by providing tools and libraries
  15. which are similar to use than the equivalents of the most popular existing
  16. compression algorithms.
  17. LZMA is a general purpose compression algorithm designed by Igor Pavlov as
  18. part of 7-Zip. It provides high compression ratio while keeping the
  19. decompression speed fast.
  20. %package libs
  21. Summary: Libraries for decoding LZMA compression
  22. Summary(ja): LZMA圧縮をデコードするためのライブラリ
  23. Group: System Environment/Libraries
  24. License: LGPLv2+
  25. %description libs
  26. Libraries for decoding files compressed with LZMA or XZ utils.
  27. %package devel
  28. Summary: Devel libraries & headers for liblzma
  29. Summary(ja): liblzma の開発ライブラリとヘッダファイル
  30. Group: Development/Libraries
  31. License: LGPLv2+
  32. Requires: %{name}-libs = %{version}-%{release}
  33. Requires: pkgconfig
  34. %description devel
  35. Devel libraries and headers for liblzma.
  36. %package lzma-compat
  37. Summary: Older LZMA format compatibility binaries
  38. Summary(ja): 旧式のLZMAフォーマット互換バイナリ
  39. Group: Development/Libraries
  40. # lz{grep,diff,more} are GPLv2+. Other binaries are LGPLv2+
  41. License: GPLv2+ and LGPLv2+
  42. Requires: %{name} = %{version}-%{release}
  43. Obsoletes: lzma < 5
  44. Provides: lzma = 5
  45. %description lzma-compat
  46. The lzma-compat package contains compatibility links for older
  47. commands that deal with the older LZMA format.
  48. %prep
  49. %setup -q -n %{name}-%{version}beta
  50. %build
  51. CFLAGS="%{optflags} -D_FILE_OFFSET_BITS=64" \
  52. CXXFLAGS="%{optflags} -D_FILE_OFFSET_BITS=64" \
  53. %configure --disable-static
  54. sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
  55. sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
  56. make %{?_smp_mflags}
  57. %install
  58. rm -rf %{buildroot}
  59. make install DESTDIR=%{buildroot} INSTALL="%{__install} -p"
  60. rm -f %{buildroot}/%{_libdir}/*.a
  61. rm -f %{buildroot}/%{_libdir}/*.la
  62. rm -rf %{buildroot}/%{_docdir}/%{name}
  63. %check
  64. LD_LIBRARY_PATH=$PWD/src/liblzma/.libs make check
  65. %clean
  66. rm -rf %{buildroot}
  67. %post libs -p /sbin/ldconfig
  68. %postun libs -p /sbin/ldconfig
  69. %files
  70. %defattr(-,root,root,-)
  71. %doc AUTHORS README THANKS COPYING.* ChangeLog
  72. %{_bindir}/*xz*
  73. %{_mandir}/man1/*xz*
  74. %files libs
  75. %defattr(-,root,root,-)
  76. %doc COPYING.*
  77. %{_libdir}/lib*.so.*
  78. %files devel
  79. %defattr(-,root,root,-)
  80. %dir %{_includedir}/lzma
  81. %{_includedir}/lzma/*.h
  82. %{_includedir}/lzma.h
  83. %{_libdir}/*.so
  84. %{_libdir}/pkgconfig/liblzma.pc
  85. %files lzma-compat
  86. %defattr(-,root,root,-)
  87. %{_bindir}/*lz*
  88. %{_mandir}/man1/*lz*
  89. %changelog
  90. * Mon Feb 22 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 4.999.9-1
  91. - initial build for Vine Linux
  92. * Thu Feb 18 2010 Jindrich Novy <jnovy@redhat.com> 4.999.9-0.2.20091007.beta
  93. - move xz man pages to main package, leave lzma ones where they belong (#566484)
  94. * Wed Oct 07 2009 Jindrich Novy <jnovy@redhat.com> 4.999.9-0.1.20091007.beta
  95. - sync with upstream again
  96. * Fri Oct 02 2009 Jindrich Novy <jnovy@redhat.com> 4.999.9-0.1.20091002.beta
  97. - sync with upstream to generate the same archives on machines with different
  98. endianess
  99. * Fri Aug 28 2009 Jindrich Novy <jnovy@redhat.com> 4.999.9-0.1.beta
  100. - update to 4.999.9beta
  101. * Mon Aug 17 2009 Jindrich Novy <jnovy@redhat.com> 4.999.8-0.10.beta.20090817git
  102. - sync with upstream because of #517806
  103. * Tue Aug 04 2009 Jindrich Novy <jnovy@redhat.com> 4.999.8-0.9.beta.20090804git
  104. - update to the latest GIT snapshot
  105. * Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.999.8-0.8.beta
  106. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  107. * Fri Jul 17 2009 Bill Nottingham <notting@redhat.com> 4.999.8-0.7.beta
  108. - tweak summary
  109. - add %%check section (<tibbs@math.uh.edu>)
  110. * Thu Jul 09 2009 Bill Nottingham <notting@redhat.com> 4.999.8-0.6.beta
  111. - fix release versioning to match guidelines
  112. - fix up lzma-compat summary/description
  113. - tweak licensing
  114. * Mon Jun 22 2009 Jindrich Novy <jnovy@redhat.com> 4.999.8beta-0.5
  115. - introduce lzma-compat subpackage
  116. * Fri Jun 19 2009 Jindrich Novy <jnovy@redhat.com> 4.999.8beta-0.4
  117. - try to not to conflict with lzma
  118. * Thu Jun 18 2009 Jindrich Novy <jnovy@redhat.com> 4.999.8beta-0.3
  119. - obsolete but don't provide lzma, they are largely incompatible
  120. - put beta to Release
  121. * Wed Jun 17 2009 Jindrich Novy <jnovy@redhat.com> 4.999.8beta-0.2
  122. - obsolete old lzma
  123. - add Requires: pkgconfig
  124. * Tue Jun 16 2009 Jindrich Novy <jnovy@redhat.com> 4.999.8beta-0.1
  125. - package XZ Utils, based on LZMA Utils packaged by Per Patrice Bouchand