2006-12-15 19:42:32 +01:00
|
|
|
#
|
2008-07-18 23:45:48 +02:00
|
|
|
# spec file for package libzio (Version 0.8)
|
2006-12-15 19:42:32 +01:00
|
|
|
#
|
2008-02-15 01:31:07 +01:00
|
|
|
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2006-12-15 19:42:32 +01:00
|
|
|
# This file and all modifications and additions to the pristine
|
|
|
|
# package are under the same license as the package itself.
|
|
|
|
#
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-02-15 01:31:07 +01:00
|
|
|
|
2006-12-15 19:42:32 +01:00
|
|
|
Name: libzio
|
2007-12-07 20:12:13 +01:00
|
|
|
BuildRequires: zlib-devel
|
|
|
|
%if %suse_version > 1020
|
|
|
|
BuildRequires: libbz2-devel
|
|
|
|
%endif
|
|
|
|
License: GPL v2 or later
|
2006-12-15 19:42:32 +01:00
|
|
|
Group: System/Libraries
|
2007-12-07 20:12:13 +01:00
|
|
|
AutoReqProv: on
|
2008-07-18 23:45:48 +02:00
|
|
|
Version: 0.8
|
2008-04-21 18:42:15 +02:00
|
|
|
Release: 1
|
2006-12-15 19:42:32 +01:00
|
|
|
Summary: A Library for Accessing Compressed Text Files
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
Source: libzio-%{version}.tar.bz2
|
2006-12-20 20:33:59 +01:00
|
|
|
#Patch: libzio-%{version}.dif
|
2006-12-15 19:42:32 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Libzio provides a wrapper function for reading or writing gzip or bzip2
|
|
|
|
files with FILE streams.
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-03-29 00:48:39 +02:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Werner Fink <werner@suse.de>
|
|
|
|
|
2008-02-15 01:31:07 +01:00
|
|
|
%package devel
|
2008-04-10 14:52:01 +02:00
|
|
|
License: GPL v2 or later
|
2008-02-15 01:31:07 +01:00
|
|
|
Summary: Libzio development files
|
2007-03-29 00:48:39 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
Requires: libzio = %{version}
|
2007-12-07 20:12:13 +01:00
|
|
|
AutoReqProv: on
|
2007-03-29 00:48:39 +02:00
|
|
|
|
2008-02-15 01:31:07 +01:00
|
|
|
%description devel
|
|
|
|
Libzio development files
|
2007-03-29 00:48:39 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
2006-12-15 19:42:32 +01:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Werner Fink <werner@suse.de>
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
#%patch
|
|
|
|
|
|
|
|
%build
|
|
|
|
make
|
2006-12-20 20:33:59 +01:00
|
|
|
make testt
|
2007-12-07 20:12:13 +01:00
|
|
|
make tests
|
2006-12-20 20:33:59 +01:00
|
|
|
for comp in gzip bzip2; do
|
|
|
|
$comp -c < fzopen.3.in > fzopen.test
|
|
|
|
./testt fzopen.test | cmp fzopen.3.in -
|
2007-12-07 20:12:13 +01:00
|
|
|
cat fzopen.test | ./testt fzopen.test $comp | cmp fzopen.3.in -
|
2006-12-20 20:33:59 +01:00
|
|
|
done
|
2006-12-15 19:42:32 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install libdir=%{_libdir} mandir=%{_mandir}
|
|
|
|
|
|
|
|
%post
|
|
|
|
%run_ldconfig
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%run_ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2007-03-29 00:48:39 +02:00
|
|
|
%{_libdir}/libzio.so.0
|
2008-04-21 18:42:15 +02:00
|
|
|
%{_libdir}/libzio.so.0.7
|
2007-03-29 00:48:39 +02:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2006-12-15 19:42:32 +01:00
|
|
|
%doc README COPYING
|
|
|
|
%{_libdir}/libzio.a
|
|
|
|
%{_libdir}/libzio.so
|
|
|
|
%{_mandir}/man3/fzopen.3*
|
|
|
|
/usr/include/zio.h
|
|
|
|
|
2007-03-24 12:21:38 +01:00
|
|
|
%changelog
|
2008-07-18 23:45:48 +02:00
|
|
|
* 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.
|
2008-04-21 18:42:15 +02:00
|
|
|
* Mon Apr 21 2008 werner@suse.de
|
|
|
|
- Make BZ2_bzdopen() and gzdopen() weak symbols
|
2008-04-10 14:52:01 +02:00
|
|
|
* Thu Apr 10 2008 ro@suse.de
|
|
|
|
- added baselibs.conf file to build xxbit packages
|
|
|
|
for multilib support
|
2008-02-15 01:31:07 +01:00
|
|
|
* Wed Feb 13 2008 werner@suse.de
|
|
|
|
- Export only fzopen() and fdzopen()
|
|
|
|
* Fri Dec 07 2007 werner@suse.de
|
2007-12-07 20:12:13 +01:00
|
|
|
- Add support for streams on file descriptors
|
2008-02-15 01:31:07 +01:00
|
|
|
* Mon Mar 26 2007 rguenther@suse.de
|
2007-03-29 00:48:39 +02:00
|
|
|
- Split off libzio-devel.
|
2008-02-15 01:31:07 +01:00
|
|
|
* Sat Mar 24 2007 aj@suse.de
|
2007-03-24 12:21:38 +01:00
|
|
|
- Add libbz2-devel to BuildRequirs.
|
2008-02-15 01:31:07 +01:00
|
|
|
* Wed Dec 20 2006 werner@suse.de
|
2006-12-20 20:33:59 +01:00
|
|
|
- Better weak symbol handling even for -ansi -pedantic
|
2008-02-15 01:31:07 +01:00
|
|
|
* Fri Dec 15 2006 werner@suse.de
|
2006-12-15 19:42:32 +01:00
|
|
|
- Can not use sigmask() macro in ia64 because its definition is
|
|
|
|
for sigset_t array only but not for single ulong
|
2008-02-15 01:31:07 +01:00
|
|
|
* Tue Dec 12 2006 werner@suse.de
|
2006-12-15 19:42:32 +01:00
|
|
|
- Add support for the old LZW (.Z) format
|
2008-02-15 01:31:07 +01:00
|
|
|
* Wed Jun 21 2006 werner@suse.de
|
2006-12-15 19:42:32 +01:00
|
|
|
- Remove self provide
|
2008-02-15 01:31:07 +01:00
|
|
|
* Wed Jan 25 2006 mls@suse.de
|
2006-12-15 19:42:32 +01:00
|
|
|
- converted neededforbuild to BuildRequires
|
2008-02-15 01:31:07 +01:00
|
|
|
* Wed Apr 21 2004 werner@suse.de
|
2006-12-15 19:42:32 +01:00
|
|
|
- Add missed _libdir usage
|
2008-02-15 01:31:07 +01:00
|
|
|
* Wed Apr 21 2004 werner@suse.de
|
2006-12-15 19:42:32 +01:00
|
|
|
- Provide shared lib for linkage
|
2008-02-15 01:31:07 +01:00
|
|
|
* Wed Apr 21 2004 werner@suse.de
|
2006-12-15 19:42:32 +01:00
|
|
|
- Add magic detection of standard unix compress
|
2008-02-15 01:31:07 +01:00
|
|
|
* Tue Apr 20 2004 werner@suse.de
|
2006-12-15 19:42:32 +01:00
|
|
|
- Initial version 0.1 of libzio, the wrapper library to zlib/libbz2
|