1
0

jose.spec 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. Name: jose
  2. Version: 10
  3. Release: 5%{?dist}
  4. Summary: Tools for JSON Object Signing and Encryption (JOSE)
  5. License: ASL 2.0
  6. URL: https://github.com/latchset/%{name}
  7. Source0: https://github.com/latchset/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.bz2
  8. BuildRequires: gcc
  9. BuildRequires: pkgconfig
  10. BuildRequires: jansson-devel >= 2.10
  11. BuildRequires: openssl-devel
  12. BuildRequires: zlib-devel
  13. Requires: lib%{name}%{?_isa} = %{version}-%{release}
  14. %description
  15. José is a command line utility for performing various tasks on JSON
  16. Object Signing and Encryption (JOSE) objects. José provides a full
  17. crypto stack including key generation, signing and encryption.
  18. %package -n lib%{name}
  19. Summary: Library implementing JSON Object Signing and Encryption
  20. Conflicts: jansson < 2.10
  21. Provides: lib%{name}-openssl = %{version}-%{release}
  22. Obsoletes: lib%{name}-openssl < %{version}-%{release}
  23. Provides: lib%{name}-zlib = %{version}-%{release}
  24. Obsoletes: lib%{name}-zlib < %{version}-%{release}
  25. %description -n lib%{name}
  26. This package contains a C library for performing JOSE operations.
  27. %package -n lib%{name}-devel
  28. Summary: Development files for lib%{name}
  29. Requires: lib%{name}%{?_isa} = %{version}-%{release}
  30. Requires: pkgconfig
  31. Requires: jansson-devel
  32. Provides: lib%{name}-openssl-devel = %{version}-%{release}
  33. Obsoletes: lib%{name}-openssl-devel < %{version}-%{release}
  34. Provides: lib%{name}-zlib-devel = %{version}-%{release}
  35. Obsoletes: lib%{name}-zlib-devel < %{version}-%{release}
  36. %description -n lib%{name}-devel
  37. This package contains development files for lib%{name}.
  38. %prep
  39. %setup -q
  40. %build
  41. %if 0%{?rhel}
  42. %__sed -i 's|libcrypto >= 1\.0\.2|libcrypto >= 1\.0\.1|' configure
  43. %endif
  44. %configure --disable-openmp
  45. make %{?_smp_mflags}
  46. %install
  47. rm -rf %{buildroot}
  48. %make_install
  49. rm -rf %{buildroot}/%{_libdir}/lib%{name}.la
  50. %check
  51. make %{?_smp_mflags} check
  52. %ldconfig_scriptlets -n lib%{name}
  53. %files
  54. %{_bindir}/%{name}
  55. %{_mandir}/man1/jose*.1*
  56. %files -n lib%{name}
  57. %license COPYING
  58. %{_libdir}/lib%{name}.so.*
  59. %files -n lib%{name}-devel
  60. %dir %{_includedir}/%{name}
  61. %{_includedir}/%{name}/*.h
  62. %{_libdir}/lib%{name}.so
  63. %{_libdir}/pkgconfig/%{name}.pc
  64. %{_mandir}/man3/jose*.3*
  65. %changelog