|
| 1 | +Name: @PACKAGE@ |
| 2 | +Version: @VERSION@ |
| 3 | +Release: 1 |
| 4 | +Summary: wolfCrypt and wolfCrypt FIPS engine for OpenSSL |
| 5 | + |
| 6 | +License: GPLv3 |
| 7 | +URL: http://www.wolfssl.com/ |
| 8 | +Source0: @PACKAGE@-@ [email protected] |
| 9 | + |
| 10 | +BuildRequires: gcc |
| 11 | +BuildRequires: glibc |
| 12 | +BuildRequires: glibc-common |
| 13 | +BuildRequires: glibc-devel |
| 14 | +BuildRequires: glibc-headers |
| 15 | +BuildRequires: make |
| 16 | +BuildRequires: pkgconfig |
| 17 | +BuildRequires: sed |
| 18 | +BuildRequires: tar |
| 19 | + |
| 20 | + |
| 21 | +# Don't add wolfSSL and OpenSSL to dependency list. User may want to |
| 22 | +# use a version outside of RPM. |
| 23 | +%global __requires_exclude ^lib(wolfssl|ssl|crypto).*$ |
| 24 | + |
| 25 | + |
| 26 | +%description |
| 27 | +This package contains the header files and development libraries |
| 28 | +for %{name}. If you like to develop programs using %{name}, |
| 29 | +you will need to install %{name}-devel. |
| 30 | + |
| 31 | + |
| 32 | +%package devel |
| 33 | +Summary: Header files and development libraries for %{name} |
| 34 | +Group: Development/Libraries |
| 35 | +Requires: %{name} = %{version}-%{release} |
| 36 | + |
| 37 | +%description devel |
| 38 | +This package contains the header files and development libraries |
| 39 | +for %{name}. If you like to develop programs using %{name}, |
| 40 | +you will need to install %{name}-devel. |
| 41 | + |
| 42 | + |
| 43 | +%prep |
| 44 | +%setup |
| 45 | + |
| 46 | + |
| 47 | +%build |
| 48 | +%configure @WOLFENGINE_CONFIG_ARGS@ |
| 49 | +%make_build |
| 50 | + |
| 51 | + |
| 52 | +%install |
| 53 | +%make_install |
| 54 | +%{__rm} -f %{buildroot}/%{_libdir}/libwolfengine.la |
| 55 | + |
| 56 | + |
| 57 | +%clean |
| 58 | +%{__rm} -rf %{buildroot} |
| 59 | + |
| 60 | + |
| 61 | +%files |
| 62 | +%doc ChangeLog.md COPYING INSTALL README.md |
| 63 | + |
| 64 | +%{_libdir}/libwolfengine.so |
| 65 | +%{_libdir}/libwolfengine.so.@WOLFENGINE_LIBRARY_VERSION_FIRST@ |
| 66 | +%{_libdir}/libwolfengine.so.@WOLFENGINE_LIBRARY_VERSION_FIRST@.@WOLFENGINE_LIBRARY_VERSION_SECOND@.@WOLFENGINE_LIBRARY_VERSION_THIRD@ |
| 67 | + |
| 68 | + |
| 69 | +%files devel |
| 70 | +%{_includedir}/wolfengine/we_fips.h |
| 71 | +%{_includedir}/wolfengine/we_logging.h |
| 72 | +%{_includedir}/wolfengine/we_visibility.h |
| 73 | +%{_includedir}/wolfengine/we_wolfengine.h |
| 74 | + |
| 75 | + |
| 76 | + |
| 77 | +%changelog |
| 78 | +* Mon Oct 17 2022 Juliusz Sosinowicz < [email protected]> |
| 79 | +- Initial package |
0 commit comments