taler-rpm

Specifications for RPM packages (experimental)
Log | Files | Refs

taler-merchant.spec (4008B)


      1 Name:           taler-merchant
      2 Version:        0.13.0
      3 Release:        2%{?dist}
      4 Summary:        GNU's payment system merchant backend.
      5 License:        AGPL-3.0-or-later
      6 URL:            https://taler.net
      7 %global         _disable_source_fetch 0
      8 Source0:        https://ftpmirror.gnu.org/gnu/taler/%{name}-%{version}.tar.gz
      9 Source1:        https://ftpmirror.gnu.org/gnu/taler/%{name}-%{version}.tar.gz.sig
     10 Source2:        https://keyserver.ubuntu.com/pks/lookup?op=get&search=0xc720d89aae76119bb75de459d2e4f00f29d02a4b
     11 %global         SHA512SUM0 23ee2121156a4a6e1c6001807334f66f8dc45b0ea78ff045b055c014ab3a4b448cd01892f1f36728faacc542bbeef723e10a64ea42af5325d8facfef2e6902e0
     12 BuildRequires:  libtool
     13 BuildRequires:  libtool-ltdl
     14 BuildRequires:  libtool-ltdl-devel
     15 BuildRequires:  autoconf
     16 BuildRequires:  make
     17 BuildRequires:  gettext
     18 BuildRequires:  gcc
     19 BuildRequires:  sqlite-devel
     20 BuildRequires:  libunistring-devel
     21 BuildRequires:  libcurl-devel
     22 BuildRequires:  libgcrypt-devel
     23 BuildRequires:  libsodium-devel
     24 BuildRequires:  libargon2-devel
     25 BuildRequires:  jansson-devel
     26 BuildRequires:  libpq-devel
     27 BuildRequires:  qrencode-devel
     28 BuildRequires:  gnupg2
     29 Recommends: postgresql-server
     30 BuildRequires:  libmicrohttpd-devel
     31 BuildRequires:  libgnunetpq-devel
     32 BuildRequires:  libtalerexchange-devel
     33 BuildRequires:  python3-jinja2
     34 
     35 %description
     36 GNU's payment system merchant backend.
     37 The GNU Taler merchant backend provides e-commerce
     38 applications with a simple RESTful API to integrate
     39 payments using GNU Taler. This package provides the
     40 merchant backend.
     41 
     42 %package -n libtalermerchant
     43 Summary: Libraries to talk to a GNU Taler merchant.
     44 %description -n libtalermerchant
     45 This package contains the development files for libtalermerchant.
     46 Libraries to talk to a GNU Taler merchant.
     47 The GNU Taler merchant backend provides e-commerce
     48 applications with a simple RESTful API to integrate
     49 payments using GNU Taler. This C library implements
     50 a client-side version of that REST API.  Please note
     51 that the core API is pretty simple, so applications
     52 may legitimately choose to implement the API directly
     53 instead of using this wrapper.
     54 
     55 %package -n libtalermerchant-devel
     56 Requires: libtalermerchant%{?_isa} = %{version}-%{release}
     57 Summary: Libraries to talk to a GNU Taler merchant (development).
     58 %description -n libtalermerchant-devel
     59 This package contains the development files for libtalermerchant.
     60 
     61 %prep
     62 echo "%SHA512SUM0 %SOURCE0" | sha512sum -c -
     63 %{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
     64 
     65 %autosetup
     66 
     67 %build
     68 %configure
     69 %{make_build}
     70 
     71 %install
     72 make install DESTDIR=%{buildroot}
     73 #install -Dm644 "contrib/packages/fedora/%{name}.service" "%{buildroot}/%{_unitdir}/%{name}.service"
     74 #install -Dm644 "contrib/packages/fedora/%{name}-user.service" "%{buildroot}/%{_userunitdir}/%{name}-user.service"
     75 #install -Dm644 "contrib/packages/fedora/gnunet-system.conf" %{buildroot}/%{_sysconfdir}/gnunet.conf
     76 rm -f %{buildroot}%{_infodir}/dir
     77 
     78 %check
     79 #make check
     80 
     81 %post
     82 #%systemd_post %{name}.service
     83 #%systemd_user_post %{name}-user.service
     84 
     85 %preun
     86 #%systemd_preun %{name}.service
     87 
     88 %postun
     89 #%systemd_postun_with_restart %{name}.service
     90 #%systemd_user_post %{name}-user.service
     91 
     92 %files
     93 # AGPLv3
     94 %{_libdir}/libtalermerchantdb.so.*
     95 %{_mandir}/man1/*
     96 %{_bindir}/taler-merchant*
     97 %{_infodir}/taler-merchant*
     98 %{_datadir}/taler/merchant/*
     99 %{_datadir}/taler/sql/merchant/*
    100 %{_datadir}/taler/config.d/*
    101 %{_libdir}/taler/libtaler_plugin_merchantdb_postgres.so
    102 
    103 %files -n libtalermerchant
    104 %{_libdir}/libtalermerchant.so.*
    105 %{_libdir}/libtalermerchantbank.so.*
    106 
    107 %files -n libtalermerchant-devel
    108 %{_libdir}/libtalermerchant.so
    109 %{_libdir}/libtalermerchantbank.so
    110 %{_libdir}/libtalermerchanttesting.so*
    111 %{_includedir}/taler/taler_merchant*.h
    112 %{_libdir}/libtalermerchantdb.so
    113 
    114 %changelog
    115 * Fri Oct 11 2024 Martin Schanzenbach - 0.13.0-2
    116 - Add signer GPG key and verification back
    117 
    118 * Fri Oct 11 2024 Martin Schanzenbach - 0.13.0-1
    119 - Version bump
    120 
    121 * Thu May 18 2023 Martin Schanzenbach - 0.9.2-1
    122 - Initial package