138 lines
4.0 KiB
RPMSpec
138 lines
4.0 KiB
RPMSpec
Name: xbase
|
|
Version: 3.1.2
|
|
Release: 1mamba
|
|
Summary: A C++ class library for manipulating Xbase type datafiles and indices
|
|
Group: System/Libraries
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: https://sourceforge.net/projects/xdb/
|
|
Source: https://sourceforge.net/projects/xdb/files/Source/%{version}/xbase64-%{version}.tar.gz
|
|
Patch0: xbase-3.1.2-fixconfig.patch
|
|
Patch1: xbase-3.1.2-gcc44.patch
|
|
Patch2: xbase-2.0.0-ppc.patch
|
|
Patch3: xbase-3.1.2-xbnode.patch
|
|
Patch4: xbase-3.1.2-lesserg.patch
|
|
Patch5: xbase-3.1.2-gcc47.patch
|
|
Patch6: xbase-3.1.2-gcc6.patch
|
|
Patch7: xbase-3.1.2-configure-gcc-version-fix.patch
|
|
Patch8: xbase-3.1.2-gcc7.patch
|
|
License: LGPL
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: libgcc
|
|
BuildRequires: libstdc++6-devel
|
|
## AUTOBUILDREQ-END
|
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
Provides: libxbase-tools
|
|
Obsoletes: libxbase-tools < 3.1.2
|
|
|
|
%description
|
|
Xbase is a collection of specifications, programs, utilities and a C++ class library for manipulating Xbase type datafiles and indices.
|
|
|
|
%package -n lib%{name}
|
|
Group: System/Libraries
|
|
Summary: A C++ class library for manipulating Xbase type datafiles and indices
|
|
|
|
%description -n lib%{name}
|
|
Xbase is a collection of specifications, programs, utilities and a C++ class library for manipulating Xbase type datafiles and indices.
|
|
|
|
%package -n lib%{name}-devel
|
|
Group: Development/Libraries
|
|
Summary: Static libraries and headers for %{name}
|
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
%description -n lib%{name}-devel
|
|
Xbase is a collection of specifications, programs, utilities and a C++ class library for manipulating Xbase type datafiles and indices.
|
|
This package contains static libraries and header files needed for development.
|
|
|
|
%debug_package
|
|
|
|
%prep
|
|
%setup -q -n xbase64-%{version}
|
|
%patch 0 -p1
|
|
%patch 1 -p1 -b .gcc44
|
|
%patch 2 -p1
|
|
%patch 3 -p1
|
|
%patch 4 -p1 -b .lesserg
|
|
%patch 5 -p1 -b .gcc47
|
|
%patch 6 -p1 -b .gcc6
|
|
%patch 7 -p1 -b .verfix
|
|
%patch 8 -p1 -b .gcc7
|
|
|
|
%build
|
|
%configure \
|
|
--disable-static
|
|
|
|
%make
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%makeinstall
|
|
|
|
ln -s libxbase64.so.1.0.0 %{buildroot}%{_libdir}/libxbase.so.1.0.0
|
|
ln -s libxbase64.so.1 %{buildroot}%{_libdir}/libxbase.so.1
|
|
ln -s libxbase64.so %{buildroot}%{_libdir}/libxbase.so
|
|
|
|
ln -s xbase64 %{buildroot}%{_includedir}/xbase
|
|
ln -s xbase64-config %{buildroot}%{_bindir}/xbase-config
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%post -n lib%{name} -p /sbin/ldconfig
|
|
%postun -n lib%{name} -p /sbin/ldconfig
|
|
|
|
%pretrans -n lib%{name}-devel -p <lua>
|
|
-- Remove /usr/sbin early to avoid error due to package upgrade from owned dir to symlink
|
|
path = "%{_includedir}/xbase"
|
|
st = posix.stat(path)
|
|
if st and st.type == "directory" then
|
|
status = os.rename(path, path .. ".rpmmoved")
|
|
end
|
|
|
|
%posttrans -n lib%{name}-devel
|
|
[ -e %{_includedir}/xbase.rpmmoved ] && rm -rf %{_includedir}/xbase.rpmmoved
|
|
:
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_bindir}/checkndx
|
|
%{_bindir}/copydbf
|
|
%{_bindir}/dbfutil1
|
|
%{_bindir}/dbfxtrct
|
|
%{_bindir}/deletall
|
|
%{_bindir}/dumphdr
|
|
%{_bindir}/dumprecs
|
|
%{_bindir}/packdbf
|
|
%{_bindir}/reindex
|
|
%{_bindir}/undelall
|
|
%{_bindir}/zap
|
|
|
|
%files -n lib%{name}
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libxbase.so.*
|
|
%{_libdir}/libxbase64.so.*
|
|
%doc copying
|
|
|
|
%files -n lib%{name}-devel
|
|
%defattr(-,root,root)
|
|
%{_bindir}/xbase64-config
|
|
%{_bindir}/xbase-config
|
|
%{_includedir}/xbase
|
|
%dir %{_includedir}/xbase64
|
|
%{_includedir}/xbase64/*.h
|
|
%{_libdir}/libxbase.so
|
|
%{_libdir}/libxbase64.so
|
|
#%doc ChangeLog NEWS README TODO
|
|
|
|
%changelog
|
|
* Sat Oct 21 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 3.1.2-1mamba
|
|
- update to 3.1.2
|
|
|
|
* Wed May 07 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.1-1mamba
|
|
- update to 2.1.1
|
|
|
|
* Fri Jan 28 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.0-1mamba
|
|
- package created by autospec
|