diff --git a/README.md b/README.md index 73556c8..1ea0d1b 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # soci +Database access library for C++. + diff --git a/soci.spec b/soci.spec new file mode 100644 index 0000000..d110880 --- /dev/null +++ b/soci.spec @@ -0,0 +1,101 @@ +Name: soci +Version: 4.0.3 +Release: 1mamba +Summary: Database access library for C++ +Group: Applications/Databases +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://soci.sf.net +Source: https://sourceforge.net/projects/soci/files/soci/soci-%{version}/soci-%{version}.tar.gz +License: Boost Software License +## AUTOBUILDREQ-BEGIN +BuildRequires: firebird-devel +BuildRequires: glibc-devel +BuildRequires: libboost-devel +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}. + +%debug_package + +%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}" + +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + +%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.a +%{_libdir}/libsoci_core.so +%{_libdir}/libsoci_empty.a +%{_libdir}/libsoci_empty.so +%{_libdir}/libsoci_firebird.a +%{_libdir}/libsoci_firebird.so +%{_libdir}/libsoci_mysql.a +%{_libdir}/libsoci_mysql.so +%{_libdir}/libsoci_odbc.a +%{_libdir}/libsoci_odbc.so +%{_libdir}/libsoci_postgresql.a +%{_libdir}/libsoci_postgresql.so +%{_libdir}/libsoci_sqlite3.a +%{_libdir}/libsoci_sqlite3.so +%dir %{_libdir}/cmake/SOCI +%{_libdir}/cmake/SOCI/SOCI*.cmake +%doc CHANGES README.md + +%changelog +* Tue Aug 23 2022 Silvan Calarco 4.0.3-1mamba +- package created using the webbuild interface