From e67649ba3409906ccdc2faad25af831a0bb70115 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 18:04:59 +0100 Subject: [PATCH] package created using the webbuild interface [release 4.3.0-1mamba;Fri Feb 28 2020] --- README.md | 2 ++ sqlcipher.spec | 90 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 92 insertions(+) create mode 100644 sqlcipher.spec diff --git a/README.md b/README.md index 368a5d3..aee610a 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # sqlcipher +SQLCipher is an SQLite extension that provides 256 bit AES encryption of database files. + diff --git a/sqlcipher.spec b/sqlcipher.spec new file mode 100644 index 0000000..17438e4 --- /dev/null +++ b/sqlcipher.spec @@ -0,0 +1,90 @@ +Name: sqlcipher +Version: 4.3.0 +Release: 1mamba +Summary: SQLCipher is an SQLite extension that provides 256 bit AES encryption of database files +Group: Applications/Databases +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://www.zetetic.net/sqlcipher/ +## GITSOURCE https://github.com/sqlcipher/sqlcipher.git v4.3.0 +Source: https://github.com/sqlcipher/sqlcipher.git/v%{version}/sqlcipher-%{version}.tar.bz2 +License: BSD +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: ldconfig +BuildRequires: libedit-devel +BuildRequires: libopenssl-devel +BuildRequires: libz-devel +## AUTOBUILDREQ-END +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +SQLCipher is an SQLite extension that provides 256 bit AES encryption of database files. + +%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} +Requires: pkg-config + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + +%debug_package + +%prep +%setup -q + +%build +%configure \ + --prefix=/usr \ + --enable-tempstore=yes \ + CFLAGS="%{optflags} -DSQLITE_HAS_CODEC" \ + LDFLAGS="-lcrypto" + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_bindir}/sqlcipher +%doc LICENSE + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libsqlcipher.so.* +%{_prefix}/lib/tcl*/sqlite3/libtclsqlite3.so +%{_prefix}/lib/tcl*/sqlite3/pkgIndex.tcl + +%files -n lib%{name}-devel +%defattr(-,root,root) +%dir %{_includedir}/sqlcipher +%{_includedir}/sqlcipher/*.h +%{_libdir}/libsqlcipher.a +%{_libdir}/libsqlcipher.la +%{_libdir}/libsqlcipher.so +%{_libdir}/pkgconfig/sqlcipher.pc +%doc README.md + + +%changelog +* Fri Feb 28 2020 Silvan Calarco 4.3.0-1mamba +- package created using the webbuild interface