95 lines
2.5 KiB
RPMSpec
95 lines
2.5 KiB
RPMSpec
Name: soci
|
|
Version: 4.1.1
|
|
Release: 1mamba
|
|
Summary: Database access library for C++
|
|
Group: Applications/Databases
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: https://soci.sourceforge.net/
|
|
Source: https://sourceforge.net/projects/soci/files/soci/soci-%{version}/soci-%{version}.tar.gz
|
|
License: Boost Software License
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: libboost-devel
|
|
BuildRequires: libfbclient
|
|
BuildRequires: libgcc
|
|
BuildRequires: libmariadb-devel
|
|
BuildRequires: libodbc-devel
|
|
BuildRequires: libpostgresql-devel
|
|
BuildRequires: libsqlite-devel
|
|
BuildRequires: libstdc++6-devel
|
|
## AUTOBUILDREQ-END
|
|
BuildRequires: cmake
|
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
%description
|
|
Database access library for C++.
|
|
|
|
%package -n lib%{name}
|
|
Group: System/Libraries
|
|
Summary: Shared libraries for %{name}
|
|
|
|
%description -n lib%{name}
|
|
This package contains shared libraries for %{name}.
|
|
|
|
%package -n lib%{name}-devel
|
|
Group: Development/Libraries
|
|
Summary: Development files for %{name}
|
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
%description -n lib%{name}-devel
|
|
This package contains libraries and header files for developing applications that use %{name}.
|
|
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
%cmake -d build \
|
|
-DSOCI_TESTS=OFF \
|
|
-DCMAKE_CXX_STANDARD=11
|
|
|
|
%make
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%makeinstall -C build
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
%files -n lib%{name}
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libsoci_core.so.*
|
|
%{_libdir}/libsoci_empty.so.*
|
|
%{_libdir}/libsoci_firebird.so.*
|
|
%{_libdir}/libsoci_mysql.so.*
|
|
%{_libdir}/libsoci_odbc.so.*
|
|
%{_libdir}/libsoci_postgresql.so.*
|
|
%{_libdir}/libsoci_sqlite3.so.*
|
|
%doc AUTHORS
|
|
|
|
%files -n lib%{name}-devel
|
|
%defattr(-,root,root)
|
|
%dir %{_includedir}/soci
|
|
%{_includedir}/soci/*
|
|
%{_libdir}/libsoci_core.so
|
|
%{_libdir}/libsoci_empty.so
|
|
%{_libdir}/libsoci_firebird.so
|
|
%{_libdir}/libsoci_mysql.so
|
|
%{_libdir}/libsoci_odbc.so
|
|
%{_libdir}/libsoci_postgresql.so
|
|
%{_libdir}/libsoci_sqlite3.so
|
|
%dir %{_libdir}/cmake/soci-%{version}
|
|
%{_libdir}/cmake/soci-%{version}/*
|
|
%doc CHANGES README.md
|
|
|
|
%changelog
|
|
* Fri May 16 2025 Automatic Build System <autodist@openmamba.org> 4.1.1-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Aug 23 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 4.0.3-1mamba
|
|
- package created using the webbuild interface
|