Group :: System/Libraries
RPM: libpx
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define oname pxlib
Name: libpx
Version: 0.6.8
Release: alt1
Summary: A library to read Paradox DB files
License: GPL v2
Group: System/Libraries
Url: http://pxlib.sourceforge.net/
Packager: Vitaly Lipatov <lav at altlinux.ru>
Source: http://prdownloads.sourceforge.net/%oname/%oname-%version.tar
Source1: %name.watch
# Automatically added by buildreq on Sat Jul 18 2009
BuildRequires: docbook-utils intltool libgsf-devel w3c-markup-validator-libs
%description
pxlib is a simply and still small C library to read Paradox DB files.
It supports all versions starting from 3.0. It currently has a very
limited set of functions like to open a DB file, read its header and
read every single record.
%package devel
Summary: Header files for pxlib
Group: Development/Other
Requires: %name = %version-%release
%description devel
Header files for pxlib.
%prep
%setup -q -n %oname-%version
%build
# man pages are build by docbook2man
%__subst 's#mv PXLIB.3 pxlib.3##g' doc/Makefile*
%__subst 's#docbook-to-man#docbook2man#g' configure*
%__subst 's#docbook-to-man $<.*#docbook2man $<#g' doc/Makefile*
for man in doc/*.sgml; do
name=$(basename "$man" .sgml)
sed -i -e "s#$name#$name#gi" $man
done
# FIXME:
#CPPFLAGS="$(pkg-config glib-2.0 --cflags)"
%configure \
--with-gsf --with-sqlite \
--disable-static
%make_build
%install
%makeinstall_std
%find_lang %oname
%files -f %oname.lang
%doc AUTHORS ChangeLog doc/*.txt
%_libdir/lib*.so.*
%files devel
%_libdir/lib*.so
%_includedir/*.h
%_pkgconfigdir/*.pc
%_man3dir/*
%changelog
…
Full changelog you can see here
Name: libpx
Version: 0.6.8
Release: alt1
Summary: A library to read Paradox DB files
License: GPL v2
Group: System/Libraries
Url: http://pxlib.sourceforge.net/
Packager: Vitaly Lipatov <lav at altlinux.ru>
Source: http://prdownloads.sourceforge.net/%oname/%oname-%version.tar
Source1: %name.watch
# Automatically added by buildreq on Sat Jul 18 2009
BuildRequires: docbook-utils intltool libgsf-devel w3c-markup-validator-libs
%description
pxlib is a simply and still small C library to read Paradox DB files.
It supports all versions starting from 3.0. It currently has a very
limited set of functions like to open a DB file, read its header and
read every single record.
%package devel
Summary: Header files for pxlib
Group: Development/Other
Requires: %name = %version-%release
%description devel
Header files for pxlib.
%prep
%setup -q -n %oname-%version
%build
# man pages are build by docbook2man
%__subst 's#mv PXLIB.3 pxlib.3##g' doc/Makefile*
%__subst 's#docbook-to-man#docbook2man#g' configure*
%__subst 's#docbook-to-man $<.*#docbook2man $<#g' doc/Makefile*
for man in doc/*.sgml; do
name=$(basename "$man" .sgml)
sed -i -e "s#$name#$name#gi" $man
done
# FIXME:
#CPPFLAGS="$(pkg-config glib-2.0 --cflags)"
%configure \
--with-gsf --with-sqlite \
--disable-static
%make_build
%install
%makeinstall_std
%find_lang %oname
%files -f %oname.lang
%doc AUTHORS ChangeLog doc/*.txt
%_libdir/lib*.so.*
%files devel
%_libdir/lib*.so
%_includedir/*.h
%_pkgconfigdir/*.pc
%_man3dir/*
%changelog
…
Full changelog you can see here