Files
sqlcipher/sqlcipher.spec
Martin Pluskal 7d57ec6656 - Update to version 4.6.1:
* Updates baseline to upstream SQLite 3.46.1
	* Significant refactor to merge crypto.h, crypto.c, and crypto_impl.c into a single sqlcipher.c source file for simplicity.
	* Updates minimum working set size on windows to increase lockable pages
	* Adds new PRAGMA cipher_log_source for filtering log output on higher verbosity levels
	* Improves log output by including the log level and source prior to message
	* Improves error logging in PRAGMA cipher_migrate
	* Fixes issue where log level and target would be overwritten if set prior to initialization
	* Corrects Podspec license element to use specific BSD 3 Clause
	* Fixes default log output to console for macOS

OBS-URL: https://build.opensuse.org/package/show/server:database/sqlcipher?expand=0&rev=45
2024-12-09 09:46:53 +00:00

140 lines
4.5 KiB
RPMSpec
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#
# spec file for package sqlcipher
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define lib_version 3.46.1
%define lib_name libsqlcipher-3_46_1-0
Name: sqlcipher
Version: 4.6.1
Release: 0
Summary: SQLite database encryption
License: BSD-3-Clause
Group: Productivity/Databases/Clients
URL: http://sqlcipher.net
Source: https://github.com/sqlcipher/sqlcipher/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source99: baselibs.conf
BuildRequires: ncurses-devel
BuildRequires: openssl-devel
BuildRequires: pkgconfig
BuildRequires: readline-devel
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(tcl)
%{?suse_build_hwcaps_libs}
%description
SQLCipher is an SQLite extension that provides transparent 256-bit AES
encryption of database files. Pages are encrypted before being written to
disk and are decrypted when read back. Due to the small footprint and great
performance its ideal for protecting embedded application databases and is
well suited for mobile development.
%package -n %{lib_name}
Summary: Shared library for SQLCipher
Group: System/Libraries
%description -n %{lib_name}
SQLCipher is an SQLite extension that provides transparent 256-bit AES
encryption of database files. Pages are encrypted before being written to
disk and are decrypted when read back. Due to the small footprint and great
performance its ideal for protecting embedded application databases and is
well suited for mobile development/
This package contains shared library.
%package -n tcl-%{name}
Summary: Tcl extension for sqlcipher
Group: Development/Languages/Tcl
%requires_ge tcl
Provides: %{name}-tcl = %{version}-%{release}
Obsoletes: %{name}-tcl < %{version}-%{release}
%description -n tcl-%{name}
SQLCipher is an SQLite extension that provides transparent 256-bit AES
encryption of database files. Pages are encrypted before being written to
disk and are decrypted when read back. Due to the small footprint and great
performance its ideal for protecting embedded application databases and is
well suited for mobile development/
This package provides tcl extension for SQLCipher.
%package devel
Summary: Development files for SQLCipher
Group: Development/Libraries/C and C++
Requires: %{lib_name} = %{version}-%{release}
Requires: %{name} = %{version}-%{release}
Requires: tcl-%{name} = %{version}-%{release}
%description devel
SQLCipher is an SQLite extension that provides transparent 256-bit AES
encryption of database files. Pages are encrypted before being written to
disk and are decrypted when read back. Due to the small footprint and great
performance its ideal for protecting embedded application databases and is
well suited for mobile development.
This package contains development files for SQLCipher.
%prep
%autosetup
%build
export CFLAGS="%{optflags} -DSQLITE_HAS_CODEC -DSQLITE_TEMP_STORE=2"
export LDFLAGS="-lcrypto"
%configure \
--enable-threadsafe \
--enable-cross-thread-connections \
--enable-releasemode \
--disable-static \
--with-crypto-lib \
--with-tcl=%{_libdir} \
--enable-tempstore=yes
%make_build
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%ldconfig_scriptlets -n %{lib_name}
%files
%license LICENSE.md
%doc README.md
%{_bindir}/sqlcipher
%files -n %{lib_name}
%license LICENSE.md
%doc README.md
%{_libdir}/libsqlcipher-%{lib_version}.so.0
%{_libdir}/libsqlcipher-%{lib_version}.so.0.8.6
%files -n tcl-%{name}
%license LICENSE.md
%doc README.md
%dir %{_libdir}/tcl/tcl8.?/sqlite3
%{_libdir}/tcl/tcl8.?/sqlite3/libtclsqlite3.so
%{_libdir}/tcl/tcl8.?/sqlite3/pkgIndex.tcl
%files devel
%license LICENSE.md
%doc README.md
%{_libdir}/libsqlcipher.so
%{_libdir}/pkgconfig/sqlcipher.pc
%{_includedir}/sqlcipher/
%{_includedir}/sqlcipher/sqlite3.h
%{_includedir}/sqlcipher/sqlite3ext.h
%changelog