SPECS/xz/xz.spec
0451a3f6
 Summary:        Programs for compressing and decompressing files
 Name:           xz
 Version:        5.2.3
7fbd3a1e
 Release:        2%{?dist}
0451a3f6
 URL:            http://tukaani.org/xz
 License:        GPLv2+ and GPLv3+ and LGPLv2+
 Group:          Applications/File
 Vendor:         VMware, Inc.
 Distribution:   Photon
 Source0:        http://tukaani.org/xz/%{name}-%{version}.tar.xz
 %define sha1    xz=a2975d12e0905daec48ec87c0098602e0669d195
7fbd3a1e
 Requires:       xz-libs = %{version}-%{release}
f4d17450
 %description
 The Xz package contains programs for compressing and
 decompressing files
9b8c6e17
 
 %package lang
 Summary: Additional language files for xz
0451a3f6
 Group:      Applications/File
9b8c6e17
 Requires: %{name} = %{version}-%{release}
 %description lang
 These are the additional language files of xz.
 
0451a3f6
 %package    devel
 Summary:    Header and development files for xz
7fbd3a1e
 Requires:   %{name} = %{version}-%{release}
0451a3f6
 %description    devel
7fbd3a1e
 It contains the libraries and header files to create applications
 
 %package libs
 Summary: Libraries for xz
 Group:      System Environment/Libraries
 %description libs
 This package contains minimal set of shared xz libraries.
9b8c6e17
 
f4d17450
 %prep
 %setup -q
 %build
 ./configure \
0451a3f6
     --prefix=%{_prefix} \
     --docdir=%{_defaultdocdir}/%{name}-%{version} \
7fbd3a1e
     --disable-static \
0451a3f6
     --disable-silent-rules
f4d17450
 make %{?_smp_mflags}
 %install
 make DESTDIR=%{buildroot} pkgconfigdir=%{_libdir}/pkgconfig install
 install -vdm 755 %{buildroot}/{bin,%_lib}
 mv -v   %{buildroot}%{_bindir}/{lzma,unlzma,lzcat,xz,unxz,xzcat} %{buildroot}/bin
 ln -svf "../..%{_lib}/$(readlink %{buildroot}%{_libdir}/liblzma.so)" %{buildroot}%{_libdir}/liblzma.so
 find %{buildroot}%{_libdir} -name '*.la' -delete
 %find_lang %{name}
 %check
35224633
 make  %{?_smp_mflags}  check
 
0451a3f6
 %post   -p /sbin/ldconfig
 %postun -p /sbin/ldconfig
9b8c6e17
 
 %files
f4d17450
 %defattr(-,root,root)
 /bin/xz
 /bin/lzcat
 /bin/lzma
 /bin/xzcat
 /bin/unlzma
 /bin/unxz
 %{_bindir}/xzless
 %{_bindir}/lzmadec
 %{_bindir}/xzcmp
 %{_bindir}/lzegrep
 %{_bindir}/lzcmp
 %{_bindir}/xzfgrep
 %{_bindir}/xzmore
 %{_bindir}/lzgrep
 %{_bindir}/xzdiff
 %{_bindir}/lzfgrep
 %{_bindir}/xzegrep
 %{_bindir}/lzless
 %{_bindir}/lzdiff
 %{_bindir}/lzmore
 %{_bindir}/lzmainfo
 %{_bindir}/xzgrep
 %{_bindir}/xzdec
 %{_mandir}/man1/*
9b8c6e17
 
f4d17450
 %files devel
 %{_includedir}/lzma.h
df678a1f
 %{_includedir}/lzma/*.h
f4d17450
 %{_libdir}/pkgconfig/liblzma.pc
 %{_libdir}/liblzma.so
9b8c6e17
 %{_defaultdocdir}/%{name}-%{version}/*
 
7fbd3a1e
 %files libs
 %{_libdir}/liblzma.so.*
 
9b8c6e17
 %files lang -f %{name}.lang
 %defattr(-,root,root)
 
f4d17450
 %changelog
7fbd3a1e
 *   Fri Apr 14 2017 Alexey Makhalov <amakhalov@vmware.com> 5.2.3-2
 -   Added -libs subpackage. Disable static.
0451a3f6
 *   Wed Apr 05 2017 Xiaolin Li <xiaolinl@vmware.com> 5.2.3-1
 -   Updated to version 5.2.3.
9b8c6e17
 *   Wed Nov 23 2016 Alexey Makhalov <amakhalov@vmware.com> 5.2.2-4
 -   Added -lang subpackage
 *   Wed Oct 05 2016 ChangLee <changlee@vmware.com> 5.2.2-3
 -   Modified %check
 *   Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 5.2.2-2
 -   GA - Bump release of all rpms
df678a1f
 *   Wed Jan 20 2016 Anish Swaminathan <anishs@vmware.com> 5.2.2-1
 -   Upgrade version.
9fa4ea45
 *   Mon May 18 2015 Touseef Liaqat <tliaqat@vmware.com> 5.0.5-2
 -   Update according to UsrMove.
df678a1f
 *   Wed Nov 5 2014 Divya Thaluru <dthaluru@vmware.com> 5.0.5-1
9b8c6e17
 -   Initial build. First version