69 lines
1.6 KiB
RPMSpec
69 lines
1.6 KiB
RPMSpec
|
|
Name: libdbi
|
||
|
|
Version: 0.9.0
|
||
|
|
Release: 13
|
||
|
|
Summary: a database-independent abstraction layer in C
|
||
|
|
License: LGPLv2+
|
||
|
|
URL: http://libdbi.sourceforge.net/
|
||
|
|
Source0: https://sourceforge.net/projects/libdbi/files/libdbi/%{name}-%{version}/%{name}-%{version}.tar.gz
|
||
|
|
|
||
|
|
Patch0: libdbi-aarch64.patch
|
||
|
|
BuildRequires: git gcc
|
||
|
|
|
||
|
|
%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 databases
|
||
|
|
and multiple simultaneous database connections by using this
|
||
|
|
framework.
|
||
|
|
|
||
|
|
%package devel
|
||
|
|
Summary: Devlopment files for %{name}
|
||
|
|
Requires: %{name} = %{version}-%{release}
|
||
|
|
%description devel
|
||
|
|
Development files for %{name}
|
||
|
|
|
||
|
|
%package help
|
||
|
|
Summary: Help files for %{name}
|
||
|
|
Obsoletes: libdbi-doc
|
||
|
|
BuildArch: noarch
|
||
|
|
%description help
|
||
|
|
Help files for %{name}
|
||
|
|
|
||
|
|
%prep
|
||
|
|
%autosetup -n %{name}-%{version} -p1 -Sgit
|
||
|
|
|
||
|
|
%build
|
||
|
|
%configure
|
||
|
|
%make_build
|
||
|
|
|
||
|
|
%install
|
||
|
|
%make_install
|
||
|
|
%delete_la_and_a
|
||
|
|
|
||
|
|
%check
|
||
|
|
make check
|
||
|
|
|
||
|
|
%post -p /sbin/ldconfig
|
||
|
|
%postun -p /sbin/ldconfig
|
||
|
|
|
||
|
|
%files
|
||
|
|
%defattr(-,root,root)
|
||
|
|
%doc AUTHORS ChangeLog README NEWS
|
||
|
|
%exclude %{_datadir}/doc/%{name}-%{version}
|
||
|
|
%license COPYING
|
||
|
|
%{_libdir}/%{name}.so.*
|
||
|
|
|
||
|
|
%files devel
|
||
|
|
%defattr(-,root,root)
|
||
|
|
%{_includedir}/dbi
|
||
|
|
%{_libdir}/%{name}.so
|
||
|
|
%{_libdir}/pkgconfig/dbi.pc
|
||
|
|
|
||
|
|
%files help
|
||
|
|
%defattr(-,root,root)
|
||
|
|
%doc TODO doc/*.pdf doc/*guide
|
||
|
|
|
||
|
|
%changelog
|
||
|
|
* Mon Aug 26 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.9.0-13
|
||
|
|
- Package init
|