2006-12-19 00:15:26 +01:00
|
|
|
#
|
2011-08-01 15:24:54 +02:00
|
|
|
# spec file for package bzip2
|
2006-12-19 00:15:26 +01:00
|
|
|
#
|
2022-05-02 09:35:57 +02:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2006-12-19 00:15:26 +01:00
|
|
|
#
|
2008-11-01 23:15:35 +01:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-06-28 09:19:41 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2006-12-19 00:15:26 +01:00
|
|
|
#
|
|
|
|
|
2012-02-13 00:56:38 +01:00
|
|
|
|
2014-12-29 17:50:06 +01:00
|
|
|
%define libname libbz2-1
|
2006-12-19 00:15:26 +01:00
|
|
|
Name: bzip2
|
2019-07-24 16:23:52 +02:00
|
|
|
Version: 1.0.8
|
2012-01-31 13:37:54 +01:00
|
|
|
Release: 0
|
2006-12-19 00:15:26 +01:00
|
|
|
Summary: A Program for Compressing Files
|
2012-01-31 13:37:54 +01:00
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: Productivity/Archiving/Compression
|
2018-08-23 10:36:06 +02:00
|
|
|
URL: https://sourceware.org/bzip2
|
2019-07-24 16:23:52 +02:00
|
|
|
Source0: https://sourceware.org/pub/bzip2/%{name}-%{version}.tar.gz
|
2006-12-19 00:15:26 +01:00
|
|
|
Source1: bznew.gz
|
|
|
|
Source2: bznew.1.gz
|
2009-12-16 08:55:47 +01:00
|
|
|
Source3: baselibs.conf
|
2014-08-01 10:19:47 +02:00
|
|
|
Source100: bzip2-rpmlintrc
|
2010-11-03 12:56:55 +01:00
|
|
|
# PATCH-FEATURE-OPENSUSE bzip2-1.0.6-autoconfiscated.patch sbrabec@suse.cz -- Convert to a standard autoconf based package.
|
2019-11-04 16:12:57 +01:00
|
|
|
#Patch0: ftp://ftp.suse.com/pub/people/sbrabec/bzip2/for_downstream/bzip2-1.0.6.2-autoconfiscated.patch
|
|
|
|
Patch0: bzip2-1.0.6.2-autoconfiscated.patch
|
2016-01-13 09:23:27 +01:00
|
|
|
Patch3: bzip2-point-to-doc-pkg.patch
|
|
|
|
Patch4: bzip2-ocloexec.patch
|
2013-01-21 23:07:47 +01:00
|
|
|
BuildRequires: autoconf >= 2.57
|
|
|
|
BuildRequires: libtool
|
2017-03-23 17:57:47 +01:00
|
|
|
BuildRequires: pkgconfig
|
2013-01-21 23:07:47 +01:00
|
|
|
# The following is a kludge to get updating bzip2 to after the split work
|
2017-06-06 13:11:31 +02:00
|
|
|
Requires(pre): %{libname}
|
2013-01-21 23:10:23 +01:00
|
|
|
Provides: bzip = %{version}
|
|
|
|
Obsoletes: bzip < %{version}
|
2006-12-19 00:15:26 +01:00
|
|
|
|
|
|
|
%description
|
2021-06-07 17:31:05 +02:00
|
|
|
The bzip2 program is a program for compressing files.
|
2006-12-19 00:15:26 +01:00
|
|
|
|
2007-03-23 21:42:21 +01:00
|
|
|
%package doc
|
2007-11-08 23:51:26 +01:00
|
|
|
Summary: The bzip2 program and Library Documentation
|
2021-06-07 17:31:05 +02:00
|
|
|
Group: Documentation/Other
|
2009-12-26 11:47:35 +01:00
|
|
|
BuildArch: noarch
|
2007-03-23 21:42:21 +01:00
|
|
|
|
|
|
|
%description doc
|
2007-11-08 23:51:26 +01:00
|
|
|
The bzip2 program and library documentation.
|
2007-03-23 21:42:21 +01:00
|
|
|
|
2014-12-29 17:50:06 +01:00
|
|
|
%package -n %{libname}
|
2007-11-08 23:51:26 +01:00
|
|
|
Summary: The bzip2 runtime library
|
2013-01-21 23:07:47 +01:00
|
|
|
Group: System/Libraries
|
2007-03-23 21:42:21 +01:00
|
|
|
|
2014-12-29 17:50:06 +01:00
|
|
|
%description -n %{libname}
|
2007-11-08 23:51:26 +01:00
|
|
|
The bzip2 runtime library
|
2007-03-23 21:42:21 +01:00
|
|
|
|
|
|
|
%package -n libbz2-devel
|
2007-11-08 23:51:26 +01:00
|
|
|
Summary: The bzip2 runtime library development files
|
2013-01-21 23:07:47 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2014-12-29 17:50:06 +01:00
|
|
|
Requires: %{libname} = %{version}
|
2013-01-21 23:07:47 +01:00
|
|
|
Requires: glibc-devel
|
2007-03-23 21:42:21 +01:00
|
|
|
|
|
|
|
%description -n libbz2-devel
|
2007-11-08 23:51:26 +01:00
|
|
|
The bzip2 runtime library development files.
|
2007-03-23 21:42:21 +01:00
|
|
|
|
2006-12-19 00:15:26 +01:00
|
|
|
%prep
|
2021-06-07 17:31:05 +02:00
|
|
|
%autosetup -p1
|
2006-12-19 00:15:26 +01:00
|
|
|
|
|
|
|
%build
|
2017-06-06 13:11:31 +02:00
|
|
|
autoreconf -fiv
|
|
|
|
%configure \
|
|
|
|
--disable-static
|
2017-11-04 13:35:34 +01:00
|
|
|
%if 0%{?do_profiling}
|
2021-06-07 17:31:05 +02:00
|
|
|
%make_build CFLAGS="%{optflags} %{cflags_profile_generate}"
|
|
|
|
%make_build CFLAGS="%{optflags} %{cflags_profile_generate}" test
|
|
|
|
%make_build clean
|
|
|
|
%make_build CFLAGS="%{optflags} %{cflags_profile_feedback}"
|
2017-06-06 13:11:31 +02:00
|
|
|
%else
|
2021-06-07 17:31:05 +02:00
|
|
|
%make_build CFLAGS="%{optflags}"
|
2017-06-06 13:11:31 +02:00
|
|
|
%endif
|
2006-12-19 00:15:26 +01:00
|
|
|
|
|
|
|
%install
|
2017-06-06 13:11:31 +02:00
|
|
|
%make_install pkgconfigdir=%{_libdir}/pkgconfig
|
2006-12-19 00:15:26 +01:00
|
|
|
gzip -9 manual.ps
|
|
|
|
gzip -dc %{SOURCE1} > bznew
|
2017-06-06 13:11:31 +02:00
|
|
|
install -Dpm 0755 bznew %{buildroot}%{_bindir}/bznew
|
|
|
|
install -m 0644 %{SOURCE2} %{buildroot}%{_mandir}/man1
|
2014-12-29 17:50:06 +01:00
|
|
|
# Steam and prolly others still use the 1.0 name, so we need to be
|
|
|
|
# compatible
|
|
|
|
# Remove this when all distros use the autotools based bzip2 release
|
|
|
|
ln -s libbz2.so.1 %{buildroot}/%{_libdir}/libbz2.so.1.0
|
|
|
|
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2006-12-19 00:15:26 +01:00
|
|
|
|
2014-12-29 17:50:06 +01:00
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
2006-12-19 00:15:26 +01:00
|
|
|
|
2014-08-06 12:55:04 +02:00
|
|
|
%check
|
2021-06-07 17:31:05 +02:00
|
|
|
%make_build test
|
2014-08-06 12:55:04 +02:00
|
|
|
|
2006-12-19 00:15:26 +01:00
|
|
|
%files
|
2017-06-06 13:11:31 +02:00
|
|
|
%{_bindir}/bunzip2
|
|
|
|
%{_bindir}/bzcat
|
|
|
|
%{_bindir}/bzcmp
|
|
|
|
%{_bindir}/bzdiff
|
|
|
|
%{_bindir}/bzegrep
|
|
|
|
%{_bindir}/bzfgrep
|
|
|
|
%{_bindir}/bzgrep
|
|
|
|
%{_bindir}/bzip2
|
|
|
|
%{_bindir}/bzip2recover
|
|
|
|
%{_bindir}/bzless
|
|
|
|
%{_bindir}/bzmore
|
|
|
|
%{_bindir}/bznew
|
2018-08-23 10:36:06 +02:00
|
|
|
%{_mandir}/man1/bunzip2.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/bzcat.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/bzcmp.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/bzdiff.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/bzegrep.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/bzfgrep.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/bzgrep.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/bzip2.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/bzless.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/bzmore.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/bznew.1%{?ext_man}
|
2006-12-19 00:15:26 +01:00
|
|
|
|
2007-03-23 21:42:21 +01:00
|
|
|
%files doc
|
2011-08-10 22:25:15 +02:00
|
|
|
%doc manual.ps.gz manual*.html bzip2.txt manual.pdf
|
2007-03-23 21:42:21 +01:00
|
|
|
|
2014-12-29 17:50:06 +01:00
|
|
|
%files -n %{libname}
|
|
|
|
%{_libdir}/libbz2.so.*
|
2007-03-23 21:42:21 +01:00
|
|
|
|
|
|
|
%files -n libbz2-devel
|
2018-02-26 12:24:13 +01:00
|
|
|
%license LICENSE
|
|
|
|
%doc CHANGES
|
2007-03-23 21:42:21 +01:00
|
|
|
%{_includedir}/bzlib.h
|
|
|
|
%{_libdir}/libbz2.so
|
2009-12-11 12:55:53 +01:00
|
|
|
%{_libdir}/pkgconfig/bzip2.pc
|
2007-12-07 19:52:27 +01:00
|
|
|
|
2007-03-23 21:42:21 +01:00
|
|
|
%changelog
|