libdbi/libdbi.spec

96 lines
2.6 KiB
RPMSpec

Name: libdbi
Version: 0.9.0
Release: 2mamba
Summary: Database Independent Abstraction Layer
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://libdbi.sourceforge.net/
Source0: http://downloads.sourceforge.net/project/libdbi/libdbi/libdbi-%{version}/libdbi-%{version}.tar.gz
Patch0: libdbi-0.8.2-cflags.patch
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
## AUTOBUILDREQ-END
BuildRequires: autoconf
BuildRequires: docbook-dsssl
BuildRequires: openjade
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
libdbi implements a database-independent abstraction layer in C, similar to the DBI/DBD layer in Perl. Writing one generic set of code, programmers can leverage the power of multiple DBs and multiple simultaneous DB connections by using this framework.
%package devel
Group: Development/Libraries
Summary: Libraries and headers for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel
libdbi implements a database-independent abstraction layer in C.
This package contains libraries and header files need for development.
%package static
Group: Development/Libraries
Summary: Static libraries for %{name}
Requires: %{name}-devel = %{?epoch:%epoch:}%{version}-%{release}
%description static
libdbi implements a database-independent abstraction layer in C.
This package contains static libraries need for development.
%debug_package
%prep
%setup -q
sed -i "s,| arm-\* |,| aarch64-\* | arm-\* |," config.sub
#%patch0 -p1
#autoconf
%build
%configure
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_libdir}/libdbi.so.*
%doc AUTHORS COPYING
%files devel
%defattr(-,root,root)
%dir %{_includedir}/dbi
%{_includedir}/dbi/*.h
%{_libdir}/libdbi.so
%{_libdir}/pkgconfig/dbi.pc
%doc doc/programmers-guide.pdf
%doc doc/programmers-guide/
%doc doc/driver-guide.pdf
%doc doc/driver-guide/ TODO
%dir %{_datadir}/doc/libdbi-%{version}
%{_datadir}/doc/libdbi-%{version}/*
%doc ChangeLog NEWS README
%files static
%defattr(-,root,root)
%{_libdir}/libdbi.*a
%changelog
* Sun Jan 17 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 0.9.0-2mamba
- rebuilt with debug package
* Mon Mar 18 2013 Automatic Build System <autodist@mambasoft.it> 0.9.0-1mamba
- automatic version update by autodist
* Tue Nov 09 2010 gil <puntogil@libero.it> 0.8.4-1mamba
- package created by autospec