Bump to 1.23.1 sandbox/gpgme_1.23.1
authorTizenOpenSource <tizenopensrc@samsung.com>
Thu, 7 Dec 2023 08:15:15 +0000 (17:15 +0900)
committerTizenOpenSource <tizenopensrc@samsung.com>
Thu, 7 Dec 2023 08:15:15 +0000 (17:15 +0900)
Signed-off-by: TizenOpenSource <tizenopensrc@samsung.com>
packaging/baselibs.conf [new file with mode: 0644]
packaging/gpgme.manifest [new file with mode: 0644]
packaging/gpgme.spec [new file with mode: 0644]

diff --git a/packaging/baselibs.conf b/packaging/baselibs.conf
new file mode 100644 (file)
index 0000000..7aa6500
--- /dev/null
@@ -0,0 +1 @@
+libgpgme
diff --git a/packaging/gpgme.manifest b/packaging/gpgme.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/gpgme.spec b/packaging/gpgme.spec
new file mode 100644 (file)
index 0000000..f358bc4
--- /dev/null
@@ -0,0 +1,141 @@
+#
+# spec file for package gpgme
+#
+# Copyright (c) 2012 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.
+
+Name:           gpgme
+BuildRequires:  gpg2 >= 2.0.10
+Version:        1.23.1
+Release:        0
+Summary:        A Library Designed to Give Applications Easy Access to GnuPG
+License:        GPL-2.0+
+Group:          Productivity/Security
+Url:            http://www.gnupg.org/related_software/gpgme/
+Source:         ftp://ftp.gnupg.org/gcrypt/gpgme/%{name}-%{version}.tar.bz2
+Source2:        baselibs.conf
+Source1001:    gpgme.manifest
+BuildRequires:  automake
+BuildRequires:  autoconf
+BuildRequires:  libassuan-devel >= 2.4.2
+BuildRequires:  libgpg-error-devel >= 1.36
+BuildRequires:  gpg2 >= 2.0.10
+
+%description
+GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG
+easier for applications. It provides a high-level Crypto API for
+encryption, decryption, signing, signature verification, and key
+management. Currently it uses GnuPG as its back-end, but the API is not
+restricted to this engine.
+
+Because the direct use of GnuPG from an application can be a
+complicated programming task, it is suggested that all software should
+try to use GPGME instead. This way bug fixes or improvements can be
+done at a central place and every application benefits from this.
+Authors of MUAs should especially consider using GPGME. Creating a set
+of standard widgets for common key selection tasks is even planned.
+
+%package -n libgpgme
+Summary:        A Library Designed to give Applications easy Access to GnuPG
+Group:          Development/Libraries
+Requires:       gpg2
+
+%description -n libgpgme
+GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG
+easier for applications. It provides a high-level Crypto API for
+encryption, decryption, signing, signature verification, and key
+management. Currently it uses GnuPG as its back-end, but the API is not
+restricted to this engine.
+
+Who Should use GPGME?
+
+Because the direct use of GnuPG from an application can be a
+complicated programming task, it is suggested that all software should
+try to use GPGME instead. This way bug fixes or improvements can be
+done at a central place and every application benefits from this.
+Authors of MUAs should especially consider using GPGME. Creating a set
+of standard widgets for common key selection tasks is even planned.
+
+%package -n libgpgme-devel
+Summary:        A Library Designed to give Applications easy Access to GnuPG
+Group:          Development/Libraries
+Requires:       glibc-devel
+Requires:       libgpg-error-devel
+Requires:       libgpgme = %{version}
+
+%description -n libgpgme-devel
+GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG
+easier for applications. It provides a high-level Crypto API for
+encryption, decryption, signing, signature verification, and key
+management. Currently it uses GnuPG as its back-end, but the API is not
+restricted to this engine.
+
+Who Should use GPGME?
+
+Because the direct use of GnuPG from an application can be a
+complicated programming task, it is suggested that all software should
+try to use GPGME instead. This way bug fixes or improvements can be
+done at a central place and every application benefits from this.
+Authors of MUAs should especially consider using GPGME. Creating a set
+of standard widgets for common key selection tasks is even planned.
+
+%prep
+%setup -q
+cp %{SOURCE1001} .
+
+%build
+sh autogen.sh
+languages="cl cpp"
+# Ensure that a (re)build uses fixed binaries with minimum version because
+# in case configure picks GnuPG-1.x, e.g. from /usr/local, this would cause
+# testsuite failures:
+%configure \
+       --disable-silent-rules \
+       --disable-static \
+       --disable-fd-passing \
+       --enable-languages="${languages}" 
+
+%make_build
+
+%install
+%make_install
+
+
+%post -n libgpgme -p /sbin/ldconfig
+
+%postun -n libgpgme -p /sbin/ldconfig
+
+
+%files
+%manifest %{name}.manifest
+%defattr(-,root,root)
+%license COPYING
+%{_datadir}/common-lisp
+%{_infodir}/gpgme*
+%{_bindir}/gpgme-*
+
+%files -n libgpgme
+%manifest %{name}.manifest
+%defattr(-,root,root)
+%{_libdir}/libgpgme.so.*
+%{_libdir}/libgpgmepp.so*
+%{_libdir}/pkgconfig/gpgme*.pc
+%{_libdir}/cmake/Gpgmepp/*.cmake
+
+%files -n libgpgme-devel
+%manifest %{name}.manifest
+%defattr(-,root,root)
+%{_libdir}/libgpgme.so
+%{_datadir}/aclocal/gpgme.m4
+%{_includedir}/gpgme.h
+%{_includedir}/gpgme++/*
+
+%changelog