Update open build service recipes

This commit is contained in:
Gioacchino Mazzurco 2019-02-11 10:54:33 -03:00
parent a96310d45e
commit 3f2a1d52c2
No known key found for this signature in database
GPG key ID: A1FBCA3872E87051
66 changed files with 5111 additions and 70 deletions

View file

@ -0,0 +1,28 @@
#!/bin/bash
NAME=sqlcipher
# this is a huge hunk of stuff, so reuse the local repo if possible
if [ -d ${NAME}/.git ]; then
cd ${NAME}
git pull
cd ..
else
set -e
git clone https://github.com/sqlcipher/sqlcipher.git
set +e
fi
TOPDIR=$(pwd)
cd ${NAME}
TAG=$(git tag -l | tail -n 1)
LINE=$(git show --format=format:"%h %ai"|head -n 1)
set -- $LINE
REV=$1
DATE=$2
VER=${DATE//-/.}
set -e
git archive --prefix=${NAME}-${TAG#v}/ -o $TOPDIR/${NAME}-${TAG#v}.tar ${TAG}
cd $TOPDIR
bzip2 -9 ${NAME}-${TAG#v}.tar
sed -i "s/^Version:.*/Version: ${TAG#v}/" ${NAME}.spec
osc vc -m "Update to $REV ($DATE)"

View file

@ -0,0 +1,30 @@
-------------------------------------------------------------------
Sat Jul 18 08:36:19 UTC 2015 - goedhart.martijn@gmail.com
- Update to c01b94f (2015-07-13)
-------------------------------------------------------------------
Mon Oct 27 15:48:36 UTC 2014 - goedhart.martijn@gmail.com
- Update to e7b8d1f (2014-09-30)
-------------------------------------------------------------------
Tue Jun 24 10:56:35 UTC 2014 - goedhart.martijn@gmail.com
- Update to 9096584 (2014-04-23)
-------------------------------------------------------------------
Wed Dec 18 15:53:46 UTC 2013 - goedhart.martijn@gmail.com
- Update to 8d0acdb (2013-12-06)
-------------------------------------------------------------------
Wed Dec 18 15:40:13 UTC 2013 - goedhart.martijn@gmail.com
- Update to 8d0acdb (2013-12-06)
-------------------------------------------------------------------
Wed Dec 18 15:31:39 UTC 2013 - goedhart.martijn@gmail.com
- Update to 8d0acdb (2013-12-06)

View file

@ -0,0 +1,95 @@
#
# spec file for package
#
# Copyright (c) 2013 SUSE LINUX Products 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/
#
Name: sqlcipher
Version: 3.3.1
Release: 0
License: BSD-3-Clause
Summary: SQLite database encryption
Url: http://sqlcipher.net
Group: Productivity/Databases/Clients
Source: %name-%{version}.tar.bz2
BuildRequires: pkgconfig
BuildRequires: tcl-devel
BuildRequires: pkgconfig(openssl)
BuildRequires: readline-devel
BuildRequires: pkgconfig(sqlite3)
#Requires: libncurses5
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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}-3_8_10_2-0
Group: System/Libraries
Summary: Shared library for SQLCipher
%description -n lib%{name}-3_8_10_2-0
SQLCipher library.
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 devel
Group: Development/Libraries/C and C++
Summary: Development files for SQLCipher
#Requires: sqlite3-devel
#Requires: libopenssl-devel
%description devel
Development files for SQLCipher.
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.
%prep
%setup -q
%build
%configure --enable-threadsafe --enable-cross-thread-connections --enable-releasemode --with-crypto-lib --disable-tcl --enable-tempstore=yes CFLAGS="-fPIC -DSQLITE_HAS_CODEC" LDFLAGS="-lcrypto"
make %{?_smp_mflags}
%install
%make_install
%post -n lib%{name}-3_8_10_2-0
/sbin/ldconfig
%postun -n lib%{name}-3_8_10_2-0
/sbin/ldconfig
%files
%defattr(-,root,root)
%doc README.md LICENSE
%_bindir/sqlcipher
%files -n lib%{name}-3_8_10_2-0
%defattr(-,root,root)
%doc README.md LICENSE
%_libdir/libsqlcipher-3.8.10.2.so.*
%files devel
%defattr(-,root,root)
%doc README.md LICENSE
%_libdir/libsqlcipher.a
%_libdir/libsqlcipher.la
%_libdir/libsqlcipher.so
%_libdir/pkgconfig/sqlcipher.pc
#%_libdir/tcl/tcl*/sqlite3
%_includedir/sqlcipher
%changelog