[packages/libdecaf] - new
qboosh
qboosh at pld-linux.org
Sat Sep 26 07:55:28 CEST 2020
commit c9ec4317882dc031a931cb33f6eaaf925e9af9b3
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Sep 26 07:58:14 2020 +0200
- new
libdecaf.spec | 93 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 93 insertions(+)
---
diff --git a/libdecaf.spec b/libdecaf.spec
new file mode 100644
index 0000000..8110584
--- /dev/null
+++ b/libdecaf.spec
@@ -0,0 +1,93 @@
+#
+# Conditional build:
+%bcond_without static_libs # static library
+#
+Summary: Elliptic curve library
+Summary(pl.UTF-8): Biblioteka krzywych eliptycznych
+Name: libdecaf
+Version: 1.0.0
+Release: 1
+License: MIT
+Group: Libraries
+Source0: http://downloads.sourceforge.net/ed448goldilocks/%{name}-%{version}.tgz
+# Source0-md5: 48b57dc6ff6be56930f0be2a5722a70e
+#Patch0: %{name}-what.patch
+URL: http://ed448goldilocks.sourceforge.net/
+BuildRequires: cmake >= 3.0
+BuildRequires: doxygen
+BuildRequires: libstdc++-devel
+BuildRequires: python >= 1:2.7
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The libdecaf library is for elliptic curve research and practical
+application. It currently supports Ed448-Goldilocks and Curve25519.
+
+%description -l pl.UTF-8
+Biblioteka libdecaf służy do badań i praktycznych zastosowań krzywych
+eliptycznych. Obecnie obsługuje Ed448-Goldilocks oraz Curve25519.
+
+%package devel
+Summary: Header files for decaf library
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki decaf
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+Header files for decaf library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki decaf.
+
+%package static
+Summary: Static decaf library
+Summary(pl.UTF-8): Statyczna biblioteka decaf
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static decaf library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka decaf.
+
+%prep
+%setup -q
+
+%build
+install -d build
+cd build
+%cmake .. \
+ %{!?with_static_libs:-DENABLE_STATIC=OFF}
+
+%{__make} -j1
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -C build install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc HISTORY.txt LICENSE.txt README.md TODO.txt
+%attr(755,root,root) %{_libdir}/libdecaf.so.0
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libdecaf.so
+%{_includedir}/decaf
+%dir %{_datadir}/decaf
+%{_datadir}/decaf/cmake
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libdecaf.a
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libdecaf.git/commitdiff/c9ec4317882dc031a931cb33f6eaaf925e9af9b3
More information about the pld-cvs-commit
mailing list