169 lines
4.5 KiB
RPMSpec
169 lines
4.5 KiB
RPMSpec
#
|
|
# spec file for package libzio (Version 0.99)
|
|
#
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
|
|
Name: libzio
|
|
BuildRequires: libbz2-devel zlib-devel
|
|
%if %suse_version <= 1110
|
|
BuildRequires: lzma lzma-devel
|
|
%else
|
|
BuildRequires: xz xz-devel
|
|
%endif
|
|
License: GPL v2 or later
|
|
Group: System/Libraries
|
|
AutoReqProv: on
|
|
# bug437293
|
|
%ifarch ppc64
|
|
Obsoletes: libzio-64bit
|
|
%endif
|
|
#
|
|
Version: 0.99
|
|
Release: 1
|
|
Summary: A Library for Accessing Compressed Text Files
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
Source: libzio-%{version}.tar.bz2
|
|
|
|
%description
|
|
Libzio provides a wrapper function for reading or writing gzip or bzip2
|
|
files with FILE streams.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Werner Fink <werner@suse.de>
|
|
|
|
%package devel
|
|
License: GPL v2 or later
|
|
Summary: Libzio development files
|
|
Group: Development/Libraries/C and C++
|
|
Requires: libzio = %{version}
|
|
AutoReqProv: on
|
|
# bug437293
|
|
%ifarch ppc64
|
|
Obsoletes: libzio-devel-64bit
|
|
%endif
|
|
#
|
|
|
|
%description devel
|
|
Libzio development files including zio.h, the manual page fzopen(3),
|
|
and static library.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Werner Fink <werner@suse.de>
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
make
|
|
|
|
%check
|
|
make testt
|
|
make tests
|
|
%if %suse_version <= 1110
|
|
for comp in gzip bzip2 lzma
|
|
%else
|
|
for comp in gzip bzip2 lzma xz
|
|
%endif
|
|
do
|
|
$comp -c < fzopen.3.in > fzopen.test
|
|
./testt fzopen.test | cmp fzopen.3.in -
|
|
cat fzopen.test | ./tests ${comp:0:1} | cmp fzopen.3.in -
|
|
done
|
|
|
|
%install
|
|
make DESTDIR=$RPM_BUILD_ROOT install libdir=%{_libdir} mandir=%{_mandir}
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libzio.so.0
|
|
%{_libdir}/libzio.so.%{version}
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%doc README COPYING
|
|
%{_libdir}/libzio.a
|
|
%{_libdir}/libzio.so
|
|
%{_mandir}/man3/fzopen.3*
|
|
/usr/include/zio.h
|
|
|
|
%changelog
|
|
* Mon Feb 23 2009 werner@suse.de
|
|
- Add fseek(3) support for bzip and LZW files
|
|
* Mon Feb 23 2009 schwab@suse.de
|
|
- Fix namespace violations.
|
|
* Fri Feb 13 2009 werner@suse.de
|
|
- Use liblzma from xz package if available
|
|
- Detect if funopen(3) can be used if no fopencookie(3) found
|
|
* Wed Jan 07 2009 olh@suse.de
|
|
- obsolete old -XXbit packages (bnc#437293)
|
|
* Tue Nov 11 2008 ro@suse.de
|
|
- SLE-11 uses PPC64 instead of PPC, adapt baselibs.conf
|
|
* Thu Oct 16 2008 werner@suse.de
|
|
- Better documentation
|
|
* Wed Sep 24 2008 werner@suse.de
|
|
- Be able to detect -lzma suffix
|
|
* Wed Sep 24 2008 werner@suse.de
|
|
- Add support for lzma using liblzmadec
|
|
* Mon Jul 21 2008 werner@suse.de
|
|
- Make it build
|
|
* Thu Jul 17 2008 werner@suse.de
|
|
- Add some more comments what can be done with streams created
|
|
by fzopen and fdzopen and what can not be done.
|
|
* Mon Apr 21 2008 werner@suse.de
|
|
- Make BZ2_bzdopen() and gzdopen() weak symbols
|
|
* Thu Apr 10 2008 ro@suse.de
|
|
- added baselibs.conf file to build xxbit packages
|
|
for multilib support
|
|
* Wed Feb 13 2008 werner@suse.de
|
|
- Export only fzopen() and fdzopen()
|
|
* Fri Dec 07 2007 werner@suse.de
|
|
- Add support for streams on file descriptors
|
|
* Mon Mar 26 2007 rguenther@suse.de
|
|
- Split off libzio-devel.
|
|
* Sat Mar 24 2007 aj@suse.de
|
|
- Add libbz2-devel to BuildRequirs.
|
|
* Wed Dec 20 2006 werner@suse.de
|
|
- Better weak symbol handling even for -ansi -pedantic
|
|
* Fri Dec 15 2006 werner@suse.de
|
|
- Can not use sigmask() macro in ia64 because its definition is
|
|
for sigset_t array only but not for single ulong
|
|
* Tue Dec 12 2006 werner@suse.de
|
|
- Add support for the old LZW (.Z) format
|
|
* Wed Jun 21 2006 werner@suse.de
|
|
- Remove self provide
|
|
* Wed Jan 25 2006 mls@suse.de
|
|
- converted neededforbuild to BuildRequires
|
|
* Wed Apr 21 2004 werner@suse.de
|
|
- Add missed _libdir usage
|
|
* Wed Apr 21 2004 werner@suse.de
|
|
- Provide shared lib for linkage
|
|
* Wed Apr 21 2004 werner@suse.de
|
|
- Add magic detection of standard unix compress
|
|
* Tue Apr 20 2004 werner@suse.de
|
|
- Initial version 0.1 of libzio, the wrapper library to zlib/libbz2
|