Files
sqlcipher/sqlcipher.spec
Martin Pluskal 79413d7caf Accepting request 702587 from home:polslinux:branches:server:database
- Update to v4.1.0:
  * Adds PRAGMA cipher_settings to query current database
    codec settings
  * Adds PRAGMA cipher_default_settings to query current
    default SQLCipher options
  * PRAGMA cipher_hmac_pgno is now deprecated
  * PRAGMA cipher_hmac_salt_mask is now deprecated
  * PRAGMA fast_kdf_iter is now deprecated
  * Disable backup API for encrypted databases (this was
    previously documented as not-working and non-supported,
    but will now explicitly error out on initialization)
  * Default page size for databases increased to 4096 bytes
    (up from 1024)
  * Default PBKDF2 iterations increased to 256,000 
    (up from 64,000)
  * Default KDF algorithm is now PBKDF2-HMAC-SHA512
    (from PBKDF2-HMAC-SHA1)
  * Default HMAC algorithm is now HMAC-SHA512 (from HMAC-SHA1)
  * PRAGMA cipher is now disabled and no longer supported
    (after multi-year deprecation)
  * PRAGMA rekey_cipher is now disabled and no longer supported
  * PRAGMA rekey_kdf_iter is now disabled and no longer
    supported
  * By default all memory allocated internally by SQLite before
    the memory is wiped before it is freed
  * PRAGMA cipher_memory_security: allows full memory wiping
    to be disabled for performance when the feature is
    not required
  * PRAGMA cipher_kdf_algorithm, cipher_default_kdf_algorithm
    to control KDF algorithm selection between PBKDF2-HMAC-SHA1,
    PBKDF2-HMAC-SHA256 and PBKDF2-HMAC-SHA512
  * PRAGMA cipher_hmac_algorithm, cipher_default_hmac_algorithm
    to control HMAC algorithm selection between HMAC-SHA1,
    HMAC-SHA256 and PBKDF2-HMAC-SHA512
  * When compiled with readline support, PRAGMA key and rekey
    lines will no longer be saved to history
  * Adds second optional parameter to sqlcipher_export to specify
    source database to support bidirectional exports
  * PRAGMA cipher_plaintext_header_size and
    cipher_default_plaintext_header_size: allocates a portion of
    the database header which will not be encrypted to allow
    identification as a SQLite database
  * PRAGMA cipher_salt: retrieve or set the salt value for
    the database

OBS-URL: https://build.opensuse.org/request/show/702587
OBS-URL: https://build.opensuse.org/package/show/server:database/sqlcipher?expand=0&rev=14
2019-05-19 16:17:41 +00:00

139 lines
4.5 KiB
RPMSpec
Raw 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) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
%define lib_version 3.27.2
%define lib_name lib%{name}-3_27_2-0
Name: sqlcipher
Version: 4.1.0
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
BuildRequires: ncurses-devel
BuildRequires: openssl-devel
BuildRequires: pkgconfig
BuildRequires: readline-devel
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(tcl)
%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_eq 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
%setup -q
%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
%post -n %{lib_name} -p /sbin/ldconfig
%postun -n %{lib_name} -p /sbin/ldconfig
%files
%license LICENSE
%doc README.md
%{_bindir}/sqlcipher
%files -n %{lib_name}
%license LICENSE
%doc README.md
%{_libdir}/libsqlcipher-%{lib_version}.so.0
%{_libdir}/libsqlcipher-%{lib_version}.so.0.8.6
%files -n tcl-%{name}
%license LICENSE
%doc README.md
%dir %{_libdir}/tcl/tcl8.?/sqlite3
%{_libdir}/tcl/tcl8.?/sqlite3/libtclsqlite3.so
%{_libdir}/tcl/tcl8.?/sqlite3/pkgIndex.tcl
%files devel
%license LICENSE
%doc README.md
%{_libdir}/libsqlcipher.so
%{_libdir}/pkgconfig/sqlcipher.pc
%{_includedir}/sqlcipher/
%{_includedir}/sqlcipher/sqlite3.h
%{_includedir}/sqlcipher/sqlite3ext.h
%changelog