[packages/libhmac] - new
qboosh
qboosh at pld-linux.org
Fri Jan 23 16:23:10 CET 2015
commit 5ac887578957dc412c352e396e8997d3b23520fc
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Fri Jan 23 16:24:54 2015 +0100
- new
libhmac-system-libs.patch | 64 ++++++++++++++++++++++++
libhmac.spec | 122 ++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 186 insertions(+)
---
diff --git a/libhmac.spec b/libhmac.spec
new file mode 100644
index 0000000..d1a4fe9
--- /dev/null
+++ b/libhmac.spec
@@ -0,0 +1,122 @@
+Summary: Library to support various Hash-based Message Authentication Codes (HMAC)
+Summary(pl.UTF-8): Biblioteka obsługująca różne kody uwierzytelniające oparte na skrótach (HMAC)
+Name: libhmac
+Version: 20150104
+Release: 1
+License: LGPL v3+
+Group: Libraries
+Source0: https://github.com/libyal/libhmac/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 884a976f30e374cbdd5ab528d90adca0
+Patch0: %{name}-system-libs.patch
+URL: https://github.com/libyal/libhmac/
+BuildRequires: autoconf >= 2.59
+BuildRequires: automake >= 1.6
+BuildRequires: gettext-tools >= 0.18.1
+BuildRequires: libcerror-devel >= 20120425
+BuildRequires: libcfile-devel >= 20140503
+BuildRequires: libclocale-devel >= 20120425
+BuildRequires: libcnotify-devel >= 20120425
+BuildRequires: libcpath-devel >= 20120701
+BuildRequires: libcsplit-devel >= 20120701
+BuildRequires: libcstring-devel >= 20120425
+BuildRequires: libcsystem-devel >= 20141018
+BuildRequires: libuna-devel >= 20120425
+BuildRequires: libtool
+BuildRequires: openssl-devel >= 1.0
+BuildRequires: pkgconfig
+BuildRequires: sed >= 4.0
+Requires: libcerror >= 20120425
+Requires: libcfile >= 20140503
+Requires: libclocale >= 20120425
+Requires: libcnotify >= 20120425
+Requires: libcpath >= 20120701
+Requires: libcsplit >= 20120701
+Requires: libcstring >= 20120425
+Requires: libcsystem >= 20141018
+Requires: libuna >= 20120425
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+libhmac is a library to support various Hash-based Message
+Authentication Codes (HMAC).
+
+%description -l pl.UTF-8
+libhmac to biblioteka obsługująca różne kody uwierzytelniające oparte
+na skrótach (HMAC - Hash-based Message Authentication Codes).
+
+%package devel
+Summary: Header files for libhmac library
+Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libhmac
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Requires: libcerror-devel >= 20120425
+Requires: libcstring-devel >= 20120425
+Requires: openssl-devel >= 1.0
+
+%description devel
+Header files for libhmac library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki libhmac.
+
+%package static
+Summary: Static libhmac library
+Summary(pl.UTF-8): Statyczna biblioteka libhmac
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static libhmac library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka libhmac.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%{__gettextize}
+%{__sed} -i -e 's/ po\/Makefile.in//' configure.ac
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+# obsoleted by pkg-config
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libhmac.la
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog README
+%attr(755,root,root) %{_bindir}/hmacsum
+%attr(755,root,root) %{_libdir}/libhmac.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libhmac.so.1
+%{_mandir}/man1/hmacsum.1*
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libhmac.so
+%{_includedir}/libhmac
+%{_includedir}/libhmac.h
+%{_pkgconfigdir}/libhmac.pc
+%{_mandir}/man3/libhmac.3*
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libhmac.a
diff --git a/libhmac-system-libs.patch b/libhmac-system-libs.patch
new file mode 100644
index 0000000..e3aa3f5
--- /dev/null
+++ b/libhmac-system-libs.patch
@@ -0,0 +1,64 @@
+--- libhmac-20150104/configure.ac.orig 2015-01-22 21:22:50.472043728 +0100
++++ libhmac-20150104/configure.ac 2015-01-22 21:49:51.885309018 +0100
+@@ -160,16 +160,7 @@ dnl Have configure make the Makefiles
+ AC_CONFIG_FILES([Makefile])
+ AC_CONFIG_FILES([include/Makefile])
+ AC_CONFIG_FILES([common/Makefile])
+-AC_CONFIG_FILES([libcstring/Makefile])
+-AC_CONFIG_FILES([libcerror/Makefile])
+ AC_CONFIG_FILES([libhmac/Makefile])
+-AC_CONFIG_FILES([libclocale/Makefile])
+-AC_CONFIG_FILES([libcnotify/Makefile])
+-AC_CONFIG_FILES([libcsplit/Makefile])
+-AC_CONFIG_FILES([libuna/Makefile])
+-AC_CONFIG_FILES([libcfile/Makefile])
+-AC_CONFIG_FILES([libcpath/Makefile])
+-AC_CONFIG_FILES([libcsystem/Makefile])
+ AC_CONFIG_FILES([hmactools/Makefile])
+ AC_CONFIG_FILES([po/Makefile.in])
+ AC_CONFIG_FILES([po/Makevars])
+--- libhmac-20150104/Makefile.am.orig 2015-01-22 21:22:49.925377085 +0100
++++ libhmac-20150104/Makefile.am 2015-01-22 21:50:10.885308221 +0100
+@@ -3,16 +3,7 @@ ACLOCAL_AMFLAGS = -I m4
+ SUBDIRS = \
+ include \
+ common \
+- libcstring \
+- libcerror \
+ libhmac \
+- libclocale \
+- libcnotify \
+- libcsplit \
+- libuna \
+- libcfile \
+- libcpath \
+- libcsystem \
+ hmactools \
+ po \
+ manuals \
+@@ -64,8 +55,6 @@ lib: library
+
+ library:
+ (cd $(srcdir)/common && $(MAKE) $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libcstring && $(MAKE) $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libcerror && $(MAKE) $(AM_MAKEFLAGS))
+ (cd $(srcdir)/libhmac && $(MAKE) $(AM_MAKEFLAGS))
+ (cd $(srcdir)/po && $(MAKE) $(AM_MAKEFLAGS))
+
+@@ -82,16 +71,7 @@ distclean: clean
+ done && test -z "$$fail"
+
+ splint:
+- (cd $(srcdir)/libcstring && $(MAKE) splint $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libcerror && $(MAKE) splint $(AM_MAKEFLAGS))
+ (cd $(srcdir)/libhmac && $(MAKE) splint $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libclocale && $(MAKE) splint $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libcnotify && $(MAKE) splint $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libcsplit && $(MAKE) splint $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libuna && $(MAKE) splint $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libcfile && $(MAKE) splint $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libcpath && $(MAKE) splint $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libcsystem && $(MAKE) splint $(AM_MAKEFLAGS))
+ (cd $(srcdir)/hmactools && $(MAKE) splint $(AM_MAKEFLAGS))
+ (cd $(srcdir)/po && $(MAKE) splint $(AM_MAKEFLAGS))
+ (cd $(srcdir)/tests && $(MAKE) splint $(AM_MAKEFLAGS))
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libhmac.git/commitdiff/5ac887578957dc412c352e396e8997d3b23520fc
More information about the pld-cvs-commit
mailing list