From fbbd7a9476cc5a91767fd8913c924f09bf729543 Mon Sep 17 00:00:00 2001 From: Andrey Bondrov Date: Thu, 5 Feb 2015 17:18:57 +1000 Subject: [PATCH] Spec cleanup --- lzmadec.spec | 35 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/lzmadec.spec b/lzmadec.spec index 78b8a63..5e3fa7a 100644 --- a/lzmadec.spec +++ b/lzmadec.spec @@ -2,15 +2,15 @@ %define oldlzmaver 4.32.7 %define major 0 %define libname %mklibname lzmadec %{major} -%define libdev %mklibname -d lzmadec +%define devname %mklibname lzmadec -d Summary: LZMA utils Name: lzmadec Version: 4.43 -Release: 33 -License: GPL +Release: 35 +License: GPLv2+ Group: Archiving/Compression -URL: http://tukaani.org/lzma/ +Url: http://tukaani.org/lzma/ Source0: http://tukaani.org/lzma/lzma-%{oldlzmaver}.tar.lzma Source1: http://ovh.dl.sourceforge.net/sourceforge/sevenzip/lzma443.tar.bz2 Source3: sqlzma.h @@ -28,10 +28,10 @@ Patch9: lzma-4.32.4-text-tune.patch # 4.32.2 has changes to sdk that we replace with newer, we apply these to the new Patch12: lzma-4.32.2-sdk-changes.patch Patch16: lzma-4.32.7-format_not_a_string_literal_and_no_format_arguments.diff +BuildRequires: diffutils +BuildRequires: dos2unix # for squashfs-lzma library BuildRequires: pkgconfig(zlib) -BuildRequires: dos2unix -BuildRequires: diffutils %description LZMA provides very high compression ratio and fast decompression. The @@ -57,13 +57,13 @@ tools. Also provides: #---------------------------------------------------------------------------- -%package -n %{libname} +%package -n %{libname} Summary: Libraries for decoding LZMA compression +License: LGPLv2.1+ Group: System/Libraries -License: LGPL Provides: %{_lib}%{oname}%{major} = %{EVRD} -%description -n %{libname} +%description -n %{libname} Libraries for decoding LZMA compression. %files -n %{libname} @@ -71,18 +71,18 @@ Libraries for decoding LZMA compression. #---------------------------------------------------------------------------- -%package -n %{libdev} +%package -n %{devname} Summary: Devel libraries & headers for liblzmadec +License: LGPLv2.1+ Group: Development/C -License: LGPL Provides: liblzmadec-devel = %{EVRD} Provides: %{oname}-devel = %{EVRD} Requires: %{libname} = %{EVRD} -%description -n %{libdev} +%description -n %{devname} Devel libraries & headers for liblzmadec. -%files -n %{libdev} +%files -n %{devname} %doc *.txt %{_includedir}/*.h %{_libdir}/*.so @@ -90,14 +90,13 @@ Devel libraries & headers for liblzmadec. #---------------------------------------------------------------------------- -%package -n dkms-%{oname} +%package -n dkms-%{oname} Summary: Kernel modules for decoding LZMA compression +License: GPLv2+ Group: System/Kernel and hardware -License: GPL -Requires(post): dkms -Requires(preun): dkms +Requires(post,preun): dkms -%description -n dkms-%{oname} +%description -n dkms-%{oname} Kernel modules for decoding LZMA compression. %files -n dkms-%{oname}