2006-12-18 23:15:26 +00:00
|
|
|
#
|
2011-08-01 13:24:54 +00:00
|
|
|
# spec file for package bzip2
|
2006-12-18 23:15:26 +00:00
|
|
|
#
|
2014-08-01 08:19:47 +00:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-18 23:15:26 +00:00
|
|
|
#
|
2008-11-01 22:15:35 +00: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.
|
|
|
|
|
2006-12-18 23:15:26 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-02-12 23:56:38 +00:00
|
|
|
|
2014-12-29 16:50:06 +00:00
|
|
|
%define libname libbz2-1
|
2006-12-18 23:15:26 +00:00
|
|
|
Name: bzip2
|
2010-09-23 21:51:54 +00:00
|
|
|
Version: 1.0.6
|
2012-01-31 12:37:54 +00:00
|
|
|
Release: 0
|
2006-12-18 23:15:26 +00:00
|
|
|
Summary: A Program for Compressing Files
|
2012-01-31 12:37:54 +00:00
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: Productivity/Archiving/Compression
|
2014-12-29 16:50:06 +00:00
|
|
|
Url: http://www.bzip.org/
|
2013-03-21 11:08:33 +00:00
|
|
|
Source: http://www.bzip.org/1.0.6/bzip2-%{version}.tar.gz
|
2006-12-18 23:15:26 +00:00
|
|
|
Source1: bznew.gz
|
|
|
|
Source2: bznew.1.gz
|
2009-12-16 07:55:47 +00:00
|
|
|
Source3: baselibs.conf
|
2014-08-01 08:19:47 +00:00
|
|
|
Source100: bzip2-rpmlintrc
|
2010-11-03 11:56:55 +00:00
|
|
|
# PATCH-FEATURE-OPENSUSE bzip2-1.0.6-autoconfiscated.patch sbrabec@suse.cz -- Convert to a standard autoconf based package.
|
2014-12-29 16:50:06 +00:00
|
|
|
Patch0: http://ftp.suse.com/pub/people/sbrabec/bzip2/for_downstream/bzip2-1.0.6-autoconfiscated.patch
|
2014-11-05 16:27:23 +00:00
|
|
|
Patch1: bzip2-1.0.6-fix-bashisms.patch
|
2007-01-19 11:25:02 +00:00
|
|
|
Patch3: bzip2-faster.patch
|
2008-04-06 00:00:24 +00:00
|
|
|
Patch5: bzip2-unsafe_strcpy.patch
|
2011-08-10 20:25:15 +00:00
|
|
|
Patch6: bzip2-point-to-doc-pkg.patch
|
2012-01-07 20:37:58 +00:00
|
|
|
Patch7: bzip2-ocloexec.patch
|
2013-01-21 22:07:47 +00:00
|
|
|
BuildRequires: autoconf >= 2.57
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
# The following is a kludge to get updating bzip2 to after the split work
|
2014-12-29 16:50:06 +00:00
|
|
|
PreReq: %{libname}
|
2013-01-21 22:10:23 +00:00
|
|
|
Provides: bzip = %{version}
|
|
|
|
Obsoletes: bzip < %{version}
|
2014-12-29 16:50:06 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2006-12-18 23:15:26 +00:00
|
|
|
|
|
|
|
%description
|
2007-11-08 22:51:26 +00:00
|
|
|
The bzip2 program is a very powerful program for compressing files.
|
2006-12-18 23:15:26 +00:00
|
|
|
|
2007-03-23 20:42:21 +00:00
|
|
|
%package doc
|
2007-11-08 22:51:26 +00:00
|
|
|
Summary: The bzip2 program and Library Documentation
|
2007-03-23 20:42:21 +00:00
|
|
|
Group: Productivity/Archiving/Compression
|
2009-12-26 10:47:35 +00:00
|
|
|
BuildArch: noarch
|
2007-03-23 20:42:21 +00:00
|
|
|
|
|
|
|
%description doc
|
2007-11-08 22:51:26 +00:00
|
|
|
The bzip2 program and library documentation.
|
2007-03-23 20:42:21 +00:00
|
|
|
|
2014-12-29 16:50:06 +00:00
|
|
|
%package -n %{libname}
|
2007-11-08 22:51:26 +00:00
|
|
|
Summary: The bzip2 runtime library
|
2013-01-21 22:07:47 +00:00
|
|
|
Group: System/Libraries
|
2007-03-23 20:42:21 +00:00
|
|
|
|
2014-12-29 16:50:06 +00:00
|
|
|
%description -n %{libname}
|
2007-11-08 22:51:26 +00:00
|
|
|
The bzip2 runtime library
|
2007-03-23 20:42:21 +00:00
|
|
|
|
|
|
|
%package -n libbz2-devel
|
2007-11-08 22:51:26 +00:00
|
|
|
Summary: The bzip2 runtime library development files
|
2013-01-21 22:07:47 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2014-12-29 16:50:06 +00:00
|
|
|
Requires: %{libname} = %{version}
|
2013-01-21 22:07:47 +00:00
|
|
|
Requires: glibc-devel
|
2007-03-23 20:42:21 +00:00
|
|
|
|
|
|
|
%description -n libbz2-devel
|
2007-11-08 22:51:26 +00:00
|
|
|
The bzip2 runtime library development files.
|
2007-03-23 20:42:21 +00:00
|
|
|
|
2006-12-18 23:15:26 +00:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2014-12-29 16:50:06 +00:00
|
|
|
%patch0
|
2014-11-05 16:27:23 +00:00
|
|
|
%patch1 -p1
|
2006-12-18 23:15:26 +00:00
|
|
|
%patch3
|
2008-04-06 00:00:24 +00:00
|
|
|
%patch5
|
2011-08-10 20:25:15 +00:00
|
|
|
%patch6 -p1
|
2012-01-07 20:37:58 +00:00
|
|
|
%patch7
|
2014-12-29 16:50:06 +00:00
|
|
|
autoreconf -fiv
|
2006-12-18 23:15:26 +00:00
|
|
|
|
|
|
|
%build
|
2014-12-29 16:52:34 +00:00
|
|
|
export CFLAGS="%{optflags} -fPIE"
|
2012-02-12 23:56:38 +00:00
|
|
|
%configure --with-pic --disable-static
|
2014-12-19 11:26:31 +00:00
|
|
|
make %{?_smp_mflags} LDFLAGS="-pie"
|
2006-12-18 23:15:26 +00:00
|
|
|
|
|
|
|
%install
|
2014-12-29 16:50:06 +00:00
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags} pkgconfigdir=%{_libdir}/pkgconfig
|
2006-12-18 23:15:26 +00:00
|
|
|
gzip -9 manual.ps
|
|
|
|
gzip -dc %{SOURCE1} > bznew
|
2014-12-29 16:50:06 +00:00
|
|
|
install -D -m 755 bznew %{buildroot}%{_bindir}/bznew
|
|
|
|
install -m 644 %{SOURCE2} %{buildroot}%{_mandir}/man1
|
|
|
|
# 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-18 23:15:26 +00:00
|
|
|
|
2014-12-29 16:50:06 +00:00
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
2006-12-18 23:15:26 +00:00
|
|
|
|
2014-12-29 16:50:06 +00:00
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
2006-12-18 23:15:26 +00:00
|
|
|
|
2014-08-06 10:55:04 +00:00
|
|
|
%check
|
2014-12-29 16:50:06 +00:00
|
|
|
make %{?_smp_mflags} test
|
2014-08-06 10:55:04 +00:00
|
|
|
|
2006-12-18 23:15:26 +00:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2007-03-23 20:42:21 +00:00
|
|
|
%doc %{_mandir}/man1/*
|
2006-12-18 23:15:26 +00:00
|
|
|
%{_bindir}/*
|
|
|
|
|
2007-03-23 20:42:21 +00:00
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root)
|
2011-08-10 20:25:15 +00:00
|
|
|
%doc manual.ps.gz manual*.html bzip2.txt manual.pdf
|
2007-03-23 20:42:21 +00:00
|
|
|
|
2014-12-29 16:50:06 +00:00
|
|
|
%files -n %{libname}
|
2007-03-23 20:42:21 +00:00
|
|
|
%defattr(-,root,root)
|
2014-12-29 16:50:06 +00:00
|
|
|
%{_libdir}/libbz2.so.*
|
2007-03-23 20:42:21 +00:00
|
|
|
|
|
|
|
%files -n libbz2-devel
|
|
|
|
%defattr(-,root,root)
|
2012-01-07 20:37:58 +00:00
|
|
|
%doc LICENSE CHANGES
|
2007-03-23 20:42:21 +00:00
|
|
|
%{_includedir}/bzlib.h
|
|
|
|
%{_libdir}/libbz2.so
|
2009-12-11 11:55:53 +00:00
|
|
|
%{_libdir}/pkgconfig/bzip2.pc
|
2007-12-07 18:52:27 +00:00
|
|
|
|
2007-03-23 20:42:21 +00:00
|
|
|
%changelog
|