Accepting request 626649 from Base:System
OBS-URL: https://build.opensuse.org/request/show/626649 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/lzo?expand=0&rev=35
This commit is contained in:
commit
313a4387fe
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jul 31 06:51:14 UTC 2018 - mpluskal@suse.com
|
||||||
|
|
||||||
|
- Modernise spec file with spec-cleaner
|
||||||
|
- Move license to subpackage that will allways be installed
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Nov 14 15:17:27 UTC 2017 - dimstar@opensuse.org
|
Tue Nov 14 15:17:27 UTC 2017 - dimstar@opensuse.org
|
||||||
|
|
||||||
|
38
lzo.spec
38
lzo.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package lzo
|
# spec file for package lzo
|
||||||
#
|
#
|
||||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -16,22 +16,18 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%define library_package liblzo2-2
|
||||||
Name: lzo
|
Name: lzo
|
||||||
Version: 2.10
|
Version: 2.10
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: A Real-Time Data Compression Library
|
Summary: A Real-Time Data Compression Library
|
||||||
License: GPL-2.0+
|
License: GPL-2.0-or-later
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Url: http://www.oberhumer.com/opensource/lzo/
|
URL: http://www.oberhumer.com/opensource/lzo/
|
||||||
Source: http://www.oberhumer.com/opensource/%{name}/download/%{name}-%{version}.tar.gz
|
Source: http://www.oberhumer.com/opensource/%{name}/download/%{name}-%{version}.tar.gz
|
||||||
Source2: baselibs.conf
|
Source2: baselibs.conf
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
# bug437293
|
|
||||||
%ifarch ppc64
|
|
||||||
Obsoletes: lzo-64bit
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
LZO is a portable lossless data compression library written in ANSI C.
|
LZO is a portable lossless data compression library written in ANSI C.
|
||||||
@ -40,20 +36,13 @@ Decompression requires no memory. LZO is suitable for data compression
|
|||||||
and decompression in real-time. This means it favors speed over
|
and decompression in real-time. This means it favors speed over
|
||||||
compression ratio.
|
compression ratio.
|
||||||
|
|
||||||
%define library_package liblzo2-2
|
%package -n %{library_package}
|
||||||
|
|
||||||
%package -n liblzo2-2
|
|
||||||
Summary: A Real-Time Data Compression Library
|
Summary: A Real-Time Data Compression Library
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Provides: lzo = %{version}-%{release}
|
Provides: lzo = %{version}-%{release}
|
||||||
Obsoletes: lzo < %{version}
|
Obsoletes: lzo < %{version}
|
||||||
# bug437293
|
|
||||||
%ifarch ppc64
|
|
||||||
Obsoletes: lzo-64bit
|
|
||||||
%endif
|
|
||||||
#
|
|
||||||
|
|
||||||
%description -n liblzo2-2
|
%description -n %{library_package}
|
||||||
LZO is a portable lossless data compression library written in ANSI C.
|
LZO is a portable lossless data compression library written in ANSI C.
|
||||||
It offers pretty fast compression and very fast decompression.
|
It offers pretty fast compression and very fast decompression.
|
||||||
Decompression requires no memory. LZO is suitable for data compression
|
Decompression requires no memory. LZO is suitable for data compression
|
||||||
@ -64,11 +53,6 @@ compression ratio.
|
|||||||
Summary: Development files for lzo
|
Summary: Development files for lzo
|
||||||
Group: Development/Languages/C and C++
|
Group: Development/Languages/C and C++
|
||||||
Requires: %{library_package} = %{version}
|
Requires: %{library_package} = %{version}
|
||||||
# bug437293
|
|
||||||
%ifarch ppc64
|
|
||||||
Obsoletes: lzo-devel-64bit
|
|
||||||
%endif
|
|
||||||
#
|
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
LZO is a portable lossless data compression library written in ANSI C.
|
LZO is a portable lossless data compression library written in ANSI C.
|
||||||
@ -114,27 +98,25 @@ make %{?_smp_mflags}
|
|||||||
make %{?_smp_mflags} check test
|
make %{?_smp_mflags} check test
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
%make_install
|
||||||
rm -v %{buildroot}%{_libdir}/liblzo2.la
|
rm -v %{buildroot}%{_libdir}/liblzo2.la
|
||||||
|
rm -v %{buildroot}%{_docdir}/%{name}-devel/COPYING
|
||||||
|
|
||||||
%post -n %{library_package} -p /sbin/ldconfig
|
%post -n %{library_package} -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n %{library_package} -p /sbin/ldconfig
|
%postun -n %{library_package} -p /sbin/ldconfig
|
||||||
|
|
||||||
%files -n %{library_package}
|
%files -n %{library_package}
|
||||||
%defattr(-,root,root)
|
%license COPYING
|
||||||
%{_libdir}/liblzo2.so.*
|
%{_libdir}/liblzo2.so.*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr (-,root,root)
|
%doc AUTHORS BUGS NEWS README THANKS
|
||||||
%doc AUTHORS BUGS COPYING NEWS README THANKS
|
|
||||||
%doc doc/* util/*
|
%doc doc/* util/*
|
||||||
%{_libdir}/liblzo2.so
|
%{_libdir}/liblzo2.so
|
||||||
%{_includedir}/lzo
|
%{_includedir}/lzo
|
||||||
%{_libdir}/pkgconfig/lzo2.pc
|
%{_libdir}/pkgconfig/lzo2.pc
|
||||||
|
|
||||||
%files devel-static
|
%files devel-static
|
||||||
%defattr (-,root,root)
|
|
||||||
%{_libdir}/liblzo2.a
|
%{_libdir}/liblzo2.a
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user