libzio/libzio.spec
OBS User autobuild 1f24236f38 Accepting request 29103 from devel:libraries:c_c++
Copy from devel:libraries:c_c++/libzio based on submit request 29103 from user msmeissn

OBS-URL: https://build.opensuse.org/request/show/29103
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libzio?expand=0&rev=21
2010-01-14 14:16:31 +00:00

116 lines
2.5 KiB
RPMSpec

#
# spec file for package libzio (Version 0.99)
#
# Copyright (c) 2010 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: GPLv2+
Group: System/Libraries
AutoReqProv: on
# bug437293
%ifarch ppc64
Obsoletes: libzio-64bit
%endif
#
Version: 0.99
Release: 3
Summary: A Library for Accessing Compressed Text Files
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Source: libzio-%{version}.tar.bz2
Source2: baselibs.conf
%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: GPLv2+
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 %{?jobs:-j%jobs} noweak
%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