1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
|
%define name binio
%define version 1.4
%define release 1
Summary: Binary I/O stream class library
Name: %{name}
Version: %{version}
Release: %{release}
Source0: %{name}-%{version}.tar.bz2
URL:http://libbinio.sourceforge.net
License: LGPL
Group: System Environment/Libraries
BuildRoot: %{_tmppath}/%{name}-buildroot
Prefix: %{_prefix}
%description
The binary I/O stream class library presents a platform-independent
way to access binary data streams in C++.
The library is hardware independent in the form that it transparently
converts between the different forms of machine-internal binary data
representation.
It further employs no special I/O protocol and can be used on
arbitrary binary data sources.
%package devel
Summary: Development files for lib%name
Group: Development/Libraries
Requires: %name = %version-%release
%description devel
The binary I/O stream class library presents a platform-independent
way to access binary data streams in C++.
The library is hardware independent in the form that it transparently
converts between the different forms of machine-internal binary data
representation.
It further employs no special I/O protocol and can be used on
arbitrary binary data sources.
This package contains C++ header files, the shared library symlink and
the developer documentation for %name.
%prep
%setup -q
%build
%configure
make
%install
rm -rf $RPM_BUILD_ROOT
%makeinstall
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%post devel
if [[ -f /usr/share/info/libbinio.info.gz ]];then /sbin/install-info /usr/share/info/libbinio.info.gz --dir=/usr/share/info/dir;fi
%postun devel
if [ "$1" = "0" ]; then if [[ -f /usr/share/info/libbinio.info.gz ]];then /sbin/install-info /usr/share/info/libbinio.info.gz --dir=/usr/share/info/dir --remove ;fi; fi
%files
%defattr(-,root,root)
%doc README AUTHORS ChangeLog NEWS
%_libdir/*.so.*
%files devel
%defattr(-,root,root)
%_includedir/*.h
%_libdir/*.so
%_libdir/*a
%_infodir/*.info*
%changelog
* Mon Mar 3 2003 Gtz Waschk <waschk@linux-mandrake.com> 1.2-1
- initial package
|