3 %bcond_without apidocs # API documentation
4 %bcond_without static_libs # static library
6 Summary: JOSE implementation for C
7 Summary(pl.UTF-8): Implementacja JOSE dla C
13 #Source0Download: https://github.com/cisco/cjose/releases
14 Source0: https://github.com/cisco/cjose/archive/%{version}/%{name}-%{version}.tar.gz
15 # Source0-md5: 7618e839ea0ecfa38355fa7f58391f88
16 Patch0: openssl3.patch
17 URL: https://github.com/cisco/cjose
18 BuildRequires: autoconf >= 2.69
19 BuildRequires: automake >= 1:1.14
20 BuildRequires: check-devel >= 0.9.4
21 %{?with_apidocs:BuildRequires: doxygen >= 1.8}
22 BuildRequires: gcc >= 6:4.5
23 BuildRequires: jansson-devel >= 2.3
24 BuildRequires: libtool >= 2:2.2
25 BuildRequires: make >= 3.81
26 BuildRequires: openssl-devel >= 1.0.1
27 BuildRequires: pkgconfig >= 1:0.20
28 Requires: jansson >= 2.3
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 Implementation of JOSE (JavaScript Object Signing and Encryption) for
35 %description -l pl.UTF-8
36 Implementacja JOSE (JavaScript Object Signing and Encryption) dla
40 Summary: Header files for cjose library
41 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki cjose
42 Group: Development/Libraries
43 Requires: %{name} = %{version}-%{release}
44 Requires: jansson-devel >= 2.3
45 Requires: openssl-devel >= 1.0.1
48 Header files for cjose library.
50 %description devel -l pl.UTF-8
51 Pliki nagłówkowe biblioteki cjose.
54 Summary: Static cjose library
55 Summary(pl.UTF-8): Statyczna biblioteka cjose
56 Group: Development/Libraries
57 Requires: %{name}-devel = %{version}-%{release}
62 %description static -l pl.UTF-8
63 Statyczna biblioteka cjose.
66 Summary: API documentation for cjose library
67 Summary(pl.UTF-8): Dokumentacja API biblioteki cjose
72 API documentation for cjose library.
74 %description apidocs -l pl.UTF-8
75 Dokumentacja API biblioteki cjose.
87 %{!?with_apidocs:--disable-doxygen-doc} \
88 %{!?with_static_libs:--disable-static}
92 rm -rf $RPM_BUILD_ROOT
95 DESTDIR=$RPM_BUILD_ROOT
97 # obsoleted by pkg-config
98 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libcjose.la
101 rm -rf $RPM_BUILD_ROOT
103 %post -p /sbin/ldconfig
104 %postun -p /sbin/ldconfig
107 %defattr(644,root,root,755)
108 %doc AUTHORS CHANGELOG.md LICENSE README.md
109 %attr(755,root,root) %{_libdir}/libcjose.so.*.*.*
110 %attr(755,root,root) %ghost %{_libdir}/libcjose.so.0
113 %defattr(644,root,root,755)
114 %attr(755,root,root) %{_libdir}/libcjose.so
116 %{_pkgconfigdir}/cjose.pc
118 %if %{with static_libs}
120 %defattr(644,root,root,755)
121 %{_libdir}/libcjose.a
126 %defattr(644,root,root,755)
127 %doc doc/html/{search,*.css,*.html,*.png}