mstevens pushed to mbedtls (f21). "Initial import (#1193923)."

notifications at fedoraproject.org notifications at fedoraproject.org
Thu May 14 21:12:22 UTC 2015


From 59139740dc5dae9be3d1a5e0bcf847d80bb4db91 Mon Sep 17 00:00:00 2001
From: Morten Stevens <mstevens at imt-systems.com>
Date: Thu, 14 May 2015 22:56:27 +0200
Subject: Initial import (#1193923).


diff --git a/.gitignore b/.gitignore
index e69de29..894c52d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/mbedtls-1.3.10-gpl.tgz
diff --git a/mbedtls.spec b/mbedtls.spec
new file mode 100644
index 0000000..ec02aa2
--- /dev/null
+++ b/mbedtls.spec
@@ -0,0 +1,108 @@
+%global _docdir_fmt %{name}
+
+Name: mbedtls
+Version: 1.3.10
+Release: 1%{?dist}
+Summary: Light-weight cryptographic and SSL/TLS library
+Group: System Environment/Libraries
+License: GPLv2+ with exceptions
+URL: https://tls.mbed.org/
+Source0: https://tls.mbed.org/download/%{name}-%{version}-gpl.tgz
+
+BuildRequires: cmake
+BuildRequires: doxygen
+BuildRequires: graphviz
+
+# replace polarssl with mbedtls
+
+Obsoletes: polarssl < 1.3.10
+Provides:  polarssl = %{version}-%{release}
+
+%description
+Mbed TLS is a light-weight open source cryptographic and SSL/TLS
+library written in C. Mbed TLS makes it easy for developers to include
+cryptographic and SSL/TLS capabilities in their (embedded)
+applications with as little hassle as possible.
+FOSS License Exception: https://tls.mbed.org/foss-license-exception
+
+%package        utils
+Summary:        Utilities for %{name}
+Group:          Applications/System
+Requires:       %{name}%{?_isa} = %{version}-%{release}
+Obsoletes:      polarssl-utils < 1.3.10
+Provides:       polarssl-utils = %{version}-%{release}
+
+%description    utils
+Cryptographic utilities based on %{name}. 
+
+%package        devel
+Summary:        Development files for %{name}
+Group:          Development/Libraries
+Requires:       %{name}%{?_isa} = %{version}-%{release}
+Obsoletes:      polarssl-devel < 1.3.10
+Provides:       polarssl-devel = %{version}-%{release}
+
+%description    devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+%package        static
+Summary:        Static files for %{name}
+Group:          Development/Libraries
+Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
+
+%description    static
+The %{name}-static package contains static files for
+developing applications that use %{name}.
+
+%package        doc
+Summary:        Documentation files for %{name}
+Group:          Documentation
+BuildArch:      noarch
+
+%description    doc
+The %{name}-doc package contains documentation.
+
+%prep
+%setup -q
+
+%build
+%cmake -D CMAKE_BUILD_TYPE:String="Release" -D USE_SHARED_MBEDTLS_LIBRARY:BOOL=1 .
+make %{?_smp_mflags} all apidoc
+
+%install
+%make_install
+mkdir -p $RPM_BUILD_ROOT%{_libexecdir}
+mv $RPM_BUILD_ROOT%{_bindir} $RPM_BUILD_ROOT%{_libexecdir}/mbedtls
+
+# check temporarily disabled due a bug
+# %check
+# LD_LIBRARY_PATH=$PWD/library ctest --output-on-failure -V
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%doc ChangeLog
+%license LICENSE
+%{_libdir}/*.so.*
+
+%files utils
+%{_libexecdir}/%{name}/
+
+%files devel
+%{_includedir}/polarssl/
+%{_libdir}/*.so
+
+%files static
+%{_libdir}/*.a
+
+%files doc
+%doc apidoc/*
+
+%changelog
+* Thu May 14 2015 Morten Stevens <mstevens at imt-systems.com> - 1.3.10-1
+- Initial Fedora Package
+- Added subpackage for documentation files
+- Added subpackage for static files
diff --git a/sources b/sources
index e69de29..110dac1 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+19ebbc96feceb430ad958dfe89cb633f  mbedtls-1.3.10-gpl.tgz
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/mbedtls.git/commit/?h=f21&id=59139740dc5dae9be3d1a5e0bcf847d80bb4db91


More information about the scm-commits mailing list