[mingw-nettle] Initial package commit.
mooninite
mooninite at fedoraproject.org
Sat Sep 22 18:02:57 UTC 2012
commit 792eb7636ccb1bcb1a56d76b69f6535c65b7a8f2
Author: Michael Cronenworth <mike at cchtml.com>
Date: Sat Sep 22 13:02:50 2012 -0500
Initial package commit.
.gitignore | 1 +
mingw-nettle.spec | 133 +++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 135 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..c2d1bbc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/nettle-2.4.tar.gz
diff --git a/mingw-nettle.spec b/mingw-nettle.spec
new file mode 100644
index 0000000..3790175
--- /dev/null
+++ b/mingw-nettle.spec
@@ -0,0 +1,133 @@
+%{?mingw_package_header}
+
+Name: mingw-nettle
+Version: 2.4
+Release: 2%{?dist}
+
+Summary: MinGW package for nettle cryptographic library
+License: LGPLv2+
+Group: Development/Libraries
+URL: http://www.lysator.liu.se/~nisse/nettle/
+Source: http://www.lysator.liu.se/~nisse/archive/nettle-%{version}.tar.gz
+
+BuildArch: noarch
+
+BuildRequires: mingw32-filesystem >= 95
+BuildRequires: mingw64-filesystem >= 95
+BuildRequires: mingw32-gcc
+BuildRequires: mingw64-gcc
+BuildRequires: mingw32-binutils
+BuildRequires: mingw64-binutils
+BuildRequires: mingw32-gmp
+BuildRequires: mingw64-gmp
+BuildRequires: mingw32-openssl
+BuildRequires: mingw64-openssl
+
+BuildRequires: m4
+
+
+%description
+Nettle is a cryptographic library that is designed to fit easily in
+more or less any context: In crypto toolkits for object-oriented
+languages (C++, Python, Pike, ...), in applications like LSH or GNUPG,
+or even in kernel space.
+
+
+# Mingw32
+%package -n mingw32-nettle
+Summary: MinGW package for nettle cryptographic library
+
+
+%description -n mingw32-nettle
+Nettle is a cryptographic library that is designed to fit easily in
+more or less any context: In crypto toolkits for object-oriented
+languages (C++, Python, Pike, ...), in applications like LSH or GNUPG,
+or even in kernel space.
+
+
+# Mingw64
+%package -n mingw64-nettle
+Summary: MinGW package for nettle cryptographic library
+
+
+%description -n mingw64-nettle
+Nettle is a cryptographic library that is designed to fit easily in
+more or less any context: In crypto toolkits for object-oriented
+languages (C++, Python, Pike, ...), in applications like LSH or GNUPG,
+or even in kernel space.
+
+
+%?mingw_debug_package
+
+
+%prep
+%setup -q -n nettle-%{version}
+
+
+%build
+%mingw_configure --enable-shared
+%mingw_make %{?_smp_mflags}
+
+
+%install
+%mingw_make install DESTDIR=$RPM_BUILD_ROOT
+
+# make install misses DLLs
+cp -p build_win32/libhogweed-2-1.dll \
+ build_win32/libnettle-4-3.dll \
+ $RPM_BUILD_ROOT%{mingw32_bindir}
+cp -p build_win64/libhogweed-2-1.dll \
+ build_win64/libnettle-4-3.dll \
+ $RPM_BUILD_ROOT%{mingw64_bindir}
+
+# Clean out files that should not be part of the rpm.
+rm -f $RPM_BUILD_ROOT%{mingw32_libdir}/libnettle.a
+rm -f $RPM_BUILD_ROOT%{mingw64_libdir}/libnettle.a
+rm -f $RPM_BUILD_ROOT%{mingw32_libdir}/libhogweed.a
+rm -f $RPM_BUILD_ROOT%{mingw64_libdir}/libhogweed.a
+
+# Remove documentation which duplicates that found in the native package.
+rm -r $RPM_BUILD_ROOT/%{mingw32_prefix}/share
+rm -r $RPM_BUILD_ROOT/%{mingw64_prefix}/share
+
+
+# Win32
+%files -n mingw32-nettle
+%doc README COPYING.LIB
+%{mingw32_bindir}/nettle-hash.exe
+%{mingw32_bindir}/nettle-lfib-stream.exe
+%{mingw32_bindir}/pkcs1-conv.exe
+%{mingw32_bindir}/sexp-conv.exe
+%{mingw32_bindir}/libnettle-4-3.dll
+%{mingw32_bindir}/libhogweed-2-1.dll
+%{mingw32_libdir}/libnettle.dll.a
+%{mingw32_libdir}/libhogweed.dll.a
+%{mingw32_libdir}/pkgconfig/nettle.pc
+%{mingw32_libdir}/pkgconfig/hogweed.pc
+%dir %{mingw32_includedir}/nettle
+%{mingw32_includedir}/nettle/*.h
+
+
+# Win64
+%files -n mingw64-nettle
+%doc README COPYING.LIB
+%{mingw64_bindir}/nettle-hash.exe
+%{mingw64_bindir}/nettle-lfib-stream.exe
+%{mingw64_bindir}/pkcs1-conv.exe
+%{mingw64_bindir}/sexp-conv.exe
+%{mingw64_bindir}/libnettle-4-3.dll
+%{mingw64_bindir}/libhogweed-2-1.dll
+%{mingw64_libdir}/libnettle.dll.a
+%{mingw64_libdir}/libhogweed.dll.a
+%{mingw64_libdir}/pkgconfig/nettle.pc
+%{mingw64_libdir}/pkgconfig/hogweed.pc
+%dir %{mingw64_includedir}/nettle
+%{mingw64_includedir}/nettle/*.h
+
+
+%changelog
+* Wed Aug 29 2012 Michael Cronenworth <mike at cchtml.com> - 2.4-2
+- Missing BR m4
+
+* Tue Jul 10 2012 Michael Cronenworth <mike at cchtml.com> - 2.4-1
+- Initial RPM package
diff --git a/sources b/sources
index e69de29..06aacef 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+450be8c4886d46c09f49f568ad6fa013 nettle-2.4.tar.gz
More information about the scm-commits
mailing list