| 1 | # Not needed for f21+ and probably RHEL8+
|
|---|
| 2 | %{!?_licensedir:%global license %%doc}
|
|---|
| 3 |
|
|---|
| 4 | Name: xz
|
|---|
| 5 | Summary: LZMA compression utilities
|
|---|
| 6 | Version: 5.2.3
|
|---|
| 7 | Release: 2%{?dist}
|
|---|
| 8 | Group: Applications/File
|
|---|
| 9 |
|
|---|
| 10 | # Scripts xz{grep,diff,less,more} and symlinks (copied from gzip) are
|
|---|
| 11 | # GPLv2+, binaries are Public Domain (linked against LGPL getopt_long but its
|
|---|
| 12 | # OK), documentation is Public Domain.
|
|---|
| 13 | License: GPLv2+ and Public Domain
|
|---|
| 14 | URL: http://tukaani.org/%{name}/
|
|---|
| 15 |
|
|---|
| 16 | Vendor: bww bitwise works GmbH
|
|---|
| 17 | %scm_source svn http://svn.netlabs.org/repos/ports/xz/trunk 1995
|
|---|
| 18 |
|
|---|
| 19 | Requires: %{name}-libs = %{version}-%{release}
|
|---|
| 20 | Requires: libcx >= 0.4
|
|---|
| 21 |
|
|---|
| 22 | # For /usr/libexec/grepconf.sh (RHBZ#1189120).
|
|---|
| 23 | # Unfortunately F21 has a newer version of grep which doesn't
|
|---|
| 24 | # have grepconf, but we're only concerned with F22 here.
|
|---|
| 25 | Requires: grep >= 2.20-5
|
|---|
| 26 |
|
|---|
| 27 | BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|---|
| 28 |
|
|---|
| 29 | %description
|
|---|
| 30 | XZ Utils are an attempt to make LZMA compression easy to use on free (as in
|
|---|
| 31 | freedom) operating systems. This is achieved by providing tools and libraries
|
|---|
| 32 | which are similar to use than the equivalents of the most popular existing
|
|---|
| 33 | compression algorithms.
|
|---|
| 34 |
|
|---|
| 35 | LZMA is a general purpose compression algorithm designed by Igor Pavlov as
|
|---|
| 36 | part of 7-Zip. It provides high compression ratio while keeping the
|
|---|
| 37 | decompression speed fast.
|
|---|
| 38 |
|
|---|
| 39 | %package libs
|
|---|
| 40 | Summary: Libraries for decoding LZMA compression
|
|---|
| 41 | Group: System Environment/Libraries
|
|---|
| 42 | License: Public Domain
|
|---|
| 43 | Obsoletes: %{name}-compat-libs < %{version}-%{release}
|
|---|
| 44 |
|
|---|
| 45 | %description libs
|
|---|
| 46 | Libraries for decoding files compressed with LZMA or XZ utils.
|
|---|
| 47 |
|
|---|
| 48 | %package devel
|
|---|
| 49 | Summary: Devel libraries & headers for liblzma
|
|---|
| 50 | Group: Development/Libraries
|
|---|
| 51 | License: Public Domain
|
|---|
| 52 | Requires: %{name}-libs = %{version}-%{release}
|
|---|
| 53 | Requires: pkgconfig
|
|---|
| 54 |
|
|---|
| 55 | %description devel
|
|---|
| 56 | Devel libraries and headers for liblzma.
|
|---|
| 57 |
|
|---|
| 58 | %package lzma-compat
|
|---|
| 59 | Summary: Older LZMA format compatibility binaries
|
|---|
| 60 | Group: Development/Libraries
|
|---|
| 61 | # Just a set of symlinks to 'xz' + two Public Domain binaries.
|
|---|
| 62 | License: Public Domain
|
|---|
| 63 | Requires: %{name} = %{version}-%{release}
|
|---|
| 64 | Obsoletes: lzma < %{version}
|
|---|
| 65 | Provides: lzma = %{version}
|
|---|
| 66 |
|
|---|
| 67 | %description lzma-compat
|
|---|
| 68 | The lzma-compat package contains compatibility links for older
|
|---|
| 69 | commands that deal with the older LZMA format.
|
|---|
| 70 |
|
|---|
| 71 | %legacy_runtime_packages
|
|---|
| 72 |
|
|---|
| 73 | %debug_package
|
|---|
| 74 |
|
|---|
| 75 | %prep
|
|---|
| 76 | %scm_setup
|
|---|
| 77 |
|
|---|
| 78 | autoreconf -fvi
|
|---|
| 79 |
|
|---|
| 80 | %build
|
|---|
| 81 |
|
|---|
| 82 | export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 83 | export LIBS="-lcx -lpthread"
|
|---|
| 84 | export VENDOR="%{vendor}"
|
|---|
| 85 | %configure --enable-shared --disable-static
|
|---|
| 86 |
|
|---|
| 87 | make %{?_smp_mflags}
|
|---|
| 88 |
|
|---|
| 89 | %install
|
|---|
| 90 | make install DESTDIR=%{buildroot}
|
|---|
| 91 | rm -f %{buildroot}%{_libdir}/*.la
|
|---|
| 92 |
|
|---|
| 93 | %find_lang %name
|
|---|
| 94 |
|
|---|
| 95 | %clean
|
|---|
| 96 | rm -fr $RPM_BUILD_ROOT
|
|---|
| 97 |
|
|---|
| 98 | %check
|
|---|
| 99 | #LD_LIBRARY_PATH=$PWD/src/liblzma/.libs make check
|
|---|
| 100 |
|
|---|
| 101 | #%post libs -p /sbin/ldconfig
|
|---|
| 102 |
|
|---|
| 103 | #%postun libs -p /sbin/ldconfig
|
|---|
| 104 |
|
|---|
| 105 | %files -f %{name}.lang
|
|---|
| 106 | %license %{_docdir}/xz/COPYING*
|
|---|
| 107 | %doc %{_docdir}/xz
|
|---|
| 108 | %exclude %{_docdir}/xz/examples*
|
|---|
| 109 | %{_bindir}/*xz*
|
|---|
| 110 | %exclude %{_bindir}/*.dbg
|
|---|
| 111 | %{_mandir}/man1/*xz*
|
|---|
| 112 |
|
|---|
| 113 | %files libs
|
|---|
| 114 | %license %{_docdir}/xz/COPYING
|
|---|
| 115 | %{_libdir}/*.dll
|
|---|
| 116 | %exclude %{_libdir}/lzma.dll
|
|---|
| 117 |
|
|---|
| 118 | %files devel
|
|---|
| 119 | %dir %{_includedir}/lzma
|
|---|
| 120 | %{_includedir}/lzma/*.h
|
|---|
| 121 | %{_includedir}/lzma.h
|
|---|
| 122 | %{_libdir}/*_dll.a
|
|---|
| 123 | %{_libdir}/pkgconfig/liblzma.pc
|
|---|
| 124 | %doc %{_docdir}/xz/examples*
|
|---|
| 125 |
|
|---|
| 126 | %files lzma-compat
|
|---|
| 127 | %{_bindir}/*lz*
|
|---|
| 128 | %exclude %{_bindir}/*.dbg
|
|---|
| 129 | %{_mandir}/man1/*lz*
|
|---|
| 130 |
|
|---|
| 131 | %changelog
|
|---|
| 132 | * Tue Feb 14 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 5.2.3-2
|
|---|
| 133 | - rebuild with changed legacy_runtime_packages macro
|
|---|
| 134 |
|
|---|
| 135 | * Wed Feb 08 2017 Silvan Scherrer <silvan.scherrer@aroa.ch> 5.2.3-1
|
|---|
| 136 | - update to version 5.2.3
|
|---|
| 137 | - use the new scm_source and scm_setup macros
|
|---|
| 138 | - don't use a forwarder, use the legacy script
|
|---|
| 139 |
|
|---|
| 140 | * Fri Nov 25 2016 Silvan Scherrer <silvan.scherrer@aroa.ch> 5.2.2-1
|
|---|
| 141 | - update to version 5.2.2
|
|---|
| 142 |
|
|---|
| 143 | * Mon Jun 13 2016 yd <yd@os2power.com> 4.999.9beta-5
|
|---|
| 144 | - rebuild package, fixes ticket#183.
|
|---|
| 145 | - added debug package.
|
|---|