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