# SPEC file for libbinio, primary target is the Fedora Extras # RPM repository. Name: libbinio Version: 1.4 Release: 4%{?dist} Summary: A software library for binary I/O classes in C++ URL: http://libbinio.sourceforge.net/ Group: System Environment/Libraries Source: http://download.sourceforge.net/%{name}/%{name}-%{version}.tar.gz Patch0: libbinio-1.4-texinfo.patch Patch1: libbinio-1.4-pkgconfigurl.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) License: LGPL BuildRequires: /sbin/install-info %description This 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 libbinio Group: System Environment/Libraries Requires: %{name} = %{version}-%{release} BuildRequires: texinfo Requires(post): /sbin/install-info Requires(preun): /sbin/install-info %description devel This package contains development files for the libbinio binary data stream class for C++. %prep %setup -q %patch0 -p1 %patch1 -p1 %build %configure --disable-static make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT %makeinstall # Remove libtool archive remnants rm -f $RPM_BUILD_ROOT%{_libdir}/*.la # Remove doc "dir" rm -rf $RPM_BUILD_ROOT%{_infodir}/dir %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %post devel /sbin/install-info %{_infodir}/libbinio.info.gz %{_infodir}/dir || : %preun devel if [ $1 = 0 ]; then # uninstall the info reference in the dir file /sbin/install-info --delete %{_infodir}/libbinio.info.gz %{_infodir}/dir || : fi %files %defattr(-, root, root) %{_libdir}/*.so.* %doc AUTHORS README COPYING INSTALL INSTALL.unix NEWS TODO %files devel %defattr(-, root, root) %dir %{_includedir}/%{name} %{_libdir}/*.so %{_libdir}/pkgconfig/*.pc %{_includedir}/%{name}/*.h %{_infodir}/*.gz %changelog * Thu Oct 6 2005 Linus Walleij 1.4-4 - BuildRequire texinfo to get makeinfo. * Sat Oct 1 2005 Linus Walleij 1.4-3 - Conforming pkg-config for FC4 and texinfo bug patch. * Sun Sep 18 2005 Linus Walleij 1.4-2 - More minor corrections. * Sun Sep 18 2005 Linus Walleij 1.4-1 - Upstream fixed header problem. * Fri Sep 16 2005 Linus Walleij 1.3-4 - Trying to resolve dispute about header subdirs. * Thu Sep 15 2005 Linus Walleij 1.3-3 - Reverted some and added some after comments from Ville Skyttä. * Thu Sep 15 2005 Linus Walleij 1.3-2 - Fixed some points raised by Ralf Corsepius. * Wed Sep 14 2005 Linus Walleij 1.3-1 - First try at a libbinio RPM.