[-]
[+]
|
Added |
_service:tar_git:profanity.spec
|
|
[-]
[+]
|
Added |
_service:tar_git:libomemo-configure.patch
^
|
@@ -0,0 +1,20 @@
+diff --git a/configure.ac b/configure.ac
+index 2fd1222f..a13a9994 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -324,13 +324,13 @@ dnl feature: omemo
+ AM_CONDITIONAL([BUILD_OMEMO], [false])
+ if test "x$enable_omemo" != xno; then
+ OMEMO_LIBS=""
+- PKG_CHECK_MODULES([libsignal], [libsignal-protocol-c >= 2.3.2],
++ PKG_CHECK_MODULES([omemo], [omemo-protocol-c >= 2.3.2],
+ [OMEMO_LIBS="-lsignal-protocol-c"
+ AC_CHECK_LIB([gcrypt], [gcry_md_extract],
+ [OMEMO_LIBS="-lgcrypt $OMEMO_LIBS"
+ AM_CONDITIONAL([BUILD_OMEMO], [true])],
+ [AC_MSG_NOTICE([gcrypt >= 1.7.0 not found, OMEMO support not enabled])])],
+- [AC_MSG_NOTICE([libsignal-protocol-c >= 2.3.2 not found, OMEMO support not enabled])])
++ [AC_MSG_NOTICE([omemo-protocol-c >= 2.3.2 not found, OMEMO support not enabled])])
+
+ AM_COND_IF([BUILD_OMEMO],
+ [AC_DEFINE([HAVE_OMEMO], [1], [Have OMEMO])
|
[-]
[+]
|
Added |
_service:tar_git:libomemo.patch
^
|
@@ -0,0 +1,373 @@
+diff -Naur a/configure b/configure
+--- a/configure 2023-08-03 08:02:09.000000000 +0200
++++ b/configure 2023-10-25 18:07:32.000000000 +0200
+@@ -676,8 +676,8 @@
+ THEMES_INSTALL_FALSE
+ THEMES_INSTALL_TRUE
+ THEMES_PATH
+-libsignal_LIBS
+-libsignal_CFLAGS
++omemo_LIBS
++omemo_CFLAGS
+ BUILD_OMEMO_FALSE
+ BUILD_OMEMO_TRUE
+ gdk_pixbuf_LIBS
+@@ -921,8 +921,8 @@
+ libotr_LIBS
+ gdk_pixbuf_CFLAGS
+ gdk_pixbuf_LIBS
+-libsignal_CFLAGS
+-libsignal_LIBS
++omemo_CFLAGS
++omemo_LIBS
+ libqrencode_CFLAGS
+ libqrencode_LIBS
+ cmocka_CFLAGS
+@@ -1653,10 +1653,9 @@
+ C compiler flags for gdk_pixbuf, overriding pkg-config
+ gdk_pixbuf_LIBS
+ linker flags for gdk_pixbuf, overriding pkg-config
+- libsignal_CFLAGS
+- C compiler flags for libsignal, overriding pkg-config
+- libsignal_LIBS
+- linker flags for libsignal, overriding pkg-config
++ omemo_CFLAGS
++ C compiler flags for omemo, overriding pkg-config
++ omemo_LIBS linker flags for omemo, overriding pkg-config
+ libqrencode_CFLAGS
+ C compiler flags for libqrencode, overriding pkg-config
+ libqrencode_LIBS
+@@ -1885,7 +1884,7 @@
+ #define $2 innocuous_$2
+
+ /* System header to define __stub macros and hopefully few prototypes,
+- which can conflict with char $2 (); below. */
++ which can conflict with char $2 (void); below. */
+
+ #include <limits.h>
+ #undef $2
+@@ -1896,7 +1895,7 @@
+ #ifdef __cplusplus
+ extern "C"
+ #endif
+-char $2 ();
++char $2 (void);
+ /* The GNU C library defines this for functions which it implements
+ to always fail with ENOSYS. Some functions are actually named
+ something starting with __ and the normal name is an alias. */
+@@ -2275,9 +2274,7 @@
+ /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
+ struct buf { int x; };
+ struct buf * (*rcsopen) (struct buf *, struct stat *, int);
+-static char *e (p, i)
+- char **p;
+- int i;
++static char *e (char **p, int i)
+ {
+ return p[i];
+ }
+@@ -2328,6 +2325,7 @@
+ extern int printf (const char *, ...);
+ extern int dprintf (int, const char *, ...);
+ extern void *malloc (size_t);
++extern void free (void *);
+
+ // Check varargs macros. These examples are taken from C99 6.10.3.5.
+ // dprintf is used instead of fprintf to avoid needing to declare
+@@ -11404,8 +11402,14 @@
+
+ /* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+- builtin and then its argument prototype would still apply. */
+-char dlopen ();
++ builtin and then its argument prototype would still apply.
++ The 'extern "C"' is for builds by C++ compilers;
++ although this is not generally supported in C code supporting it here
++ has little cost and some practical benefit (sr 110532). */
++#ifdef __cplusplus
++extern "C"
++#endif
++char dlopen (void);
+ int
+ main (void)
+ {
+@@ -11466,8 +11470,14 @@
+
+ /* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+- builtin and then its argument prototype would still apply. */
+-char shl_load ();
++ builtin and then its argument prototype would still apply.
++ The 'extern "C"' is for builds by C++ compilers;
++ although this is not generally supported in C code supporting it here
++ has little cost and some practical benefit (sr 110532). */
++#ifdef __cplusplus
++extern "C"
++#endif
++char shl_load (void);
+ int
+ main (void)
+ {
+@@ -11510,8 +11520,14 @@
+
+ /* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+- builtin and then its argument prototype would still apply. */
+-char dlopen ();
++ builtin and then its argument prototype would still apply.
++ The 'extern "C"' is for builds by C++ compilers;
++ although this is not generally supported in C code supporting it here
++ has little cost and some practical benefit (sr 110532). */
++#ifdef __cplusplus
++extern "C"
++#endif
++char dlopen (void);
+ int
+ main (void)
+ {
+@@ -11549,8 +11565,14 @@
+
+ /* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+- builtin and then its argument prototype would still apply. */
+-char dlopen ();
++ builtin and then its argument prototype would still apply.
++ The 'extern "C"' is for builds by C++ compilers;
++ although this is not generally supported in C code supporting it here
++ has little cost and some practical benefit (sr 110532). */
++#ifdef __cplusplus
++extern "C"
++#endif
++char dlopen (void);
+ int
+ main (void)
+ {
+@@ -11588,8 +11610,14 @@
+
+ /* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+- builtin and then its argument prototype would still apply. */
+-char dld_link ();
++ builtin and then its argument prototype would still apply.
++ The 'extern "C"' is for builds by C++ compilers;
++ although this is not generally supported in C code supporting it here
++ has little cost and some practical benefit (sr 110532). */
++#ifdef __cplusplus
++extern "C"
++#endif
++char dld_link (void);
+ int
+ main (void)
+ {
+@@ -13479,8 +13507,14 @@
+
+ /* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+- builtin and then its argument prototype would still apply. */
+-char fmod ();
++ builtin and then its argument prototype would still apply.
++ The 'extern "C"' is for builds by C++ compilers;
++ although this is not generally supported in C code supporting it here
++ has little cost and some practical benefit (sr 110532). */
++#ifdef __cplusplus
++extern "C"
++#endif
++char fmod (void);
+ int
+ main (void)
+ {
+@@ -13928,8 +13962,14 @@
+
+ /* Override any GCC internal prototype to avoid an error.
+ Use char because int might match the return type of a GCC
+- builtin and then its argument prototype would still apply. */
+-char pthread_join ();
++ builtin and then its argument prototype would still apply.
++ The 'extern "C"' is for builds by C++ compilers;
++ although this is not generally supported in C code supporting it here
++ has little cost and some practical benefit (sr 110532). */
++#ifdef __cplusplus
++extern "C"
++#endif
++char pthread_join (void);
+ int
+ main (void)
+ {
+@@ -16871,19 +16911,19 @@
+ OMEMO_LIBS=""
+
+ pkg_failed=no
|
[-]
[+]
|
Added |
_service
^
|
@@ -0,0 +1,10 @@
+<services>
+ <service name="tar_git">
+ <param name="url">https://codeberg.org/nephros/sailfish-profanity.git</param>
+ <param name="branch"></param>
+ <param name="revision">0.14.0+git4</param>
+ <param name="token"/>
+ <param name="debian">N</param>
+ <param name="dumb">N</param>
+</service>
+</services>
|
|
Added |
_service:tar_git:profanity-0.14.0+git4.tar.gz
^
|
[-]
[+]
|
Added |
_service:tar_git:profanity-rpmlintrc
^
|
@@ -0,0 +1,4 @@
+from Config import *
+addFilter("summary-too-long")
+addFilter("no-changelogname-tag")
+addFilter("invalid-url")
|
[-]
[+]
|
Added |
_service:tar_git:profanity.yaml
^
|
@@ -0,0 +1,87 @@
+Name: profanity
+Summary: A console based XMPP client inspired by Irssi
+Version: 0.14.0
+Release: 0
+Group: Applications
+License: GPLv3
+URL: https://profanity-im.github.io/
+SCM: https://github.com/profanity-im/profanity
+Sources:
+ - '%{name}-%{version}.tar.gz'
+Description: |
+ %{summary}.
+
+ %if "%{?vendor}" == "chum"
+ Type: console-application
+ PackagedBy: nephros
+ Categories:
+ - InstantMessaging
+ Custom:
+ Repo: %{url}
+ PackagingRepo: https://codeberg.org/nephros/sailfish-profanity
+ PackageIcon: %{url}/master/icons/%{name}.svg
+ Screenshots:
+ - https://profanity-im.github.io/images/prof-1.png
+ - https://profanity-im.github.io/images/profroster.png
+ - https://profanity-im.github.io/images/2-barebones-chat.png
+ Links:
+ Homepage: %{url}
+ Help: https://profanity-im.github.io/guide/0140/userguide.html
+ Donation: https://profanity-im.github.io/donate.html
+ %endif
+
+Patches:
+ - libomemo-configure.patch
+SetupOptions: -q -n %{name}-%{version}/upstream
+RpmLintIgnore:
+ - 'summary-too-long'
+ - 'no-changelogname-tag'
+ - 'invalid-url'
+#Macros:
+#Requires:
+PkgBR:
+ - autoconf
+ - autoconf-archive
+ - automake
+ - pkgconfig
+ - python3-devel
+ # leads to compile error:
+ # gpgme-devel
+ - gdk-pixbuf-devel
+PkgConfigBR:
+ - libstrophe
+ - libomemo-c
+ - ncurses
+ - readline
+ - libcurl
+ # gpgme
+ - libgcrypt
+ - sqlite3
+ - glib-2.0
+ - libotr
+Configure: reconfigure
+ConfigOptions:
+ # leads to compile error:
+ # '--enable-pgp' # enable pgp
+ # '--enable-omemo' # enable OMEMO encryption
+ - '--enable-gdk-pixbuf' # enable GDK Pixbuf support to scale avatars before uploading
+ # '--enable-notifications' # enable desktop notifications
+ - '--enable-python-plugins' # enable Python plugins
+ - '--enable-c-plugins' # enable C plugins
+ - '--enable-plugins' # enable plugins
+ - '--enable-otr' # enable otr encryption
+ # '--enable-omemo-qrcode' # enable ability to display omemo qr code
+Builder: none
+Files:
+ - '%license COPYING'
+ - '%{_bindir}/*'
+ - '%{_libdir}/*.so.*'
+ - '%{_datadir}/%{name}'
+SubPackages:
+ - Name: devel
+ Summary: Development files for %{name}
+ Group: Development
+ Files:
+ - '%{_libdir}/*.so'
+ - '%{_includedir}/*'
+
|