diff --git a/README.md b/README.md index f717993..b55dc86 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # sqlitecpp +SQLiteC++ (SQLiteCpp) is a smart and easy to use C++ SQLite3 wrapper. + diff --git a/sqlitecpp.spec b/sqlitecpp.spec new file mode 100644 index 0000000..5522916 --- /dev/null +++ b/sqlitecpp.spec @@ -0,0 +1,82 @@ +Name: sqlitecpp +Version: 3.3.1 +Release: 1mamba +Summary: C++ SQLite3 wrapper +Group: Applications/Databases +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://srombauts.github.io/SQLiteCpp +Source: https://github.com/SRombauts/SQLiteCpp.git/%{version}/SQLiteCpp-%{version}.tar.bz2 +License: MIT +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libgcc +BuildRequires: libsqlite-devel +BuildRequires: libstdc++6-devel +## AUTOBUILDREQ-END +BuildRequires: cmake +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description +SQLiteC++ (SQLiteCpp) is a smart and easy to use C++ SQLite3 wrapper. + +%package -n lib%{name} +Group: System/Libraries +Summary: A smart and easy to use C++ SQLite3 wrapper + +%description -n lib%{name} +SQLiteC++ (SQLiteCpp) is a smart and easy to use C++ SQLite3 wrapper. +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 -n SQLiteCpp-%{version} + +%build +%cmake \ + -DSQLITECPP_INCLUDE_SCRIPT=OFF \ + -DSQLITECPP_INTERNAL_SQLITE='false' \ + -DSQLITECPP_RUN_CPPLINT='false' \ + -DSQLITECPP_RUN_CPPCHECK='false' + +%cmake_build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%cmake_install + +%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}/libSQLiteCpp.so.0 +%doc LICENSE.txt + +%files -n lib%{name}-devel +%defattr(-,root,root) +%dir %{_includedir}/SQLiteCpp +%{_includedir}/SQLiteCpp/* +%{_libdir}/libSQLiteCpp.so +%dir %{_libdir}/cmake/SQLiteCpp +%{_libdir}/cmake/SQLiteCpp/SQLiteCpp*.cmake +%{_datadir}/SQLiteCpp/package.xml +%doc README.md + +%changelog +* Sun Mar 03 2024 Silvan Calarco 3.3.1-1mamba +- package created using the webbuild interface