2007-01-04 16:26:56 +00:00
|
|
|
#
|
2011-11-16 14:20:48 +00:00
|
|
|
# spec file for package mhash
|
2007-01-04 16:26:56 +00:00
|
|
|
#
|
2024-02-29 10:44:55 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2007-01-04 16:26:56 +00:00
|
|
|
#
|
2009-01-20 00:12:38 +00:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
2020-01-20 15:42:36 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-04 16:26:56 +00:00
|
|
|
#
|
|
|
|
|
|
2009-01-20 00:12:38 +00:00
|
|
|
|
2007-01-04 16:26:56 +00:00
|
|
|
Name: mhash
|
2009-01-20 00:12:38 +00:00
|
|
|
Version: 0.9.9.9
|
2013-01-14 08:50:20 +00:00
|
|
|
Release: 0
|
2015-02-27 09:53:49 +00:00
|
|
|
Summary: A Library for Working with Strong Hashes
|
2020-01-20 15:42:36 +00:00
|
|
|
License: GPL-2.0-or-later
|
2013-01-14 08:50:20 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2024-02-29 10:44:55 +00:00
|
|
|
URL: https://mhash.sourceforge.net/
|
2022-04-29 10:21:14 +00:00
|
|
|
Source: https://sourceforge.net/projects/%{name}/files/%{name}/%{version}/%{name}-%{version}.tar.bz2
|
2007-01-04 16:26:56 +00:00
|
|
|
Patch0: %{name}-%{version}-shared.diff
|
2010-01-21 10:50:22 +00:00
|
|
|
# PATCH-FIX-UPSTREAM fix-for-upstream-sources.patch sourceforge#2908478
|
|
|
|
|
Patch1: mhash_remove_premature_free.patch
|
2020-01-20 15:42:36 +00:00
|
|
|
Patch2: mhash-0.9.9.9-fix-snefru-segfault.patch
|
|
|
|
|
Patch3: mhash-0.9.9.9-fix-mem-leak.patch
|
|
|
|
|
Patch4: mhash-0.9.9.9-fix-whirlpool-segfault.patch
|
|
|
|
|
Patch5: mhash-0.9.9-no-free-before-use.patch
|
2015-02-27 09:53:49 +00:00
|
|
|
BuildRequires: autoconf
|
|
|
|
|
BuildRequires: automake
|
|
|
|
|
BuildRequires: libtool
|
2007-01-04 16:26:56 +00:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
The mhash library provides an easy way to access strong hashes, such as
|
|
|
|
|
MD5, SHA1, and other algorithms.
|
|
|
|
|
|
2015-02-27 09:53:49 +00:00
|
|
|
%package -n lib%{name}2
|
|
|
|
|
Summary: A Library for Working with Strong Hashes
|
|
|
|
|
Group: System/Libraries
|
|
|
|
|
Provides: %{name} = %{version}
|
|
|
|
|
Obsoletes: %{name} < %{version}
|
|
|
|
|
|
|
|
|
|
%description -n lib%{name}2
|
|
|
|
|
The mhash library provides an easy way to access strong hashes, such as
|
|
|
|
|
MD5, SHA1, and other algorithms.
|
|
|
|
|
|
2007-01-04 16:26:56 +00:00
|
|
|
%package devel
|
2015-02-27 09:53:49 +00:00
|
|
|
Summary: Header Files for mhash Library
|
2007-01-04 16:26:56 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2015-02-27 09:53:49 +00:00
|
|
|
Requires: lib%{name}2 = %{version}
|
|
|
|
|
Provides: %{name}:%{_includedir}/%{name}.h
|
2007-01-04 16:26:56 +00:00
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
The mhash library provides an easy way to access strong hashes such as
|
|
|
|
|
MD5, SHA1, and other algorithms.
|
|
|
|
|
|
|
|
|
|
%prep
|
2024-02-29 10:44:55 +00:00
|
|
|
%autosetup -p1
|
2007-01-04 16:26:56 +00:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
autoreconf --force --install
|
2015-02-27 09:53:49 +00:00
|
|
|
%configure \
|
|
|
|
|
--with-pic \
|
|
|
|
|
--disable-static
|
2007-01-04 16:26:56 +00:00
|
|
|
|
2024-02-29 10:44:55 +00:00
|
|
|
%make_build
|
2007-01-04 16:26:56 +00:00
|
|
|
|
2015-02-27 09:53:49 +00:00
|
|
|
%install
|
2024-02-29 10:44:55 +00:00
|
|
|
%make_install
|
|
|
|
|
# useless .la file
|
2015-02-27 09:53:49 +00:00
|
|
|
rm %{buildroot}%{_libdir}/lib%{name}.la
|
2009-03-17 19:13:59 +00:00
|
|
|
|
2015-02-27 09:53:49 +00:00
|
|
|
%check
|
2024-02-29 10:44:55 +00:00
|
|
|
%make_build check
|
2007-01-04 16:26:56 +00:00
|
|
|
|
2015-02-27 09:53:49 +00:00
|
|
|
%post -n lib%{name}2 -p /sbin/ldconfig
|
|
|
|
|
%postun -n lib%{name}2 -p /sbin/ldconfig
|
2007-01-04 16:26:56 +00:00
|
|
|
|
2015-02-27 09:53:49 +00:00
|
|
|
%files -n lib%{name}2
|
2024-02-29 10:44:55 +00:00
|
|
|
%license COPYING
|
|
|
|
|
%doc AUTHORS ChangeLog NEWS README THANKS TODO
|
2007-01-04 16:26:56 +00:00
|
|
|
%{_libdir}/libmhash.so.*
|
|
|
|
|
|
|
|
|
|
%files devel
|
2024-02-29 10:44:55 +00:00
|
|
|
%license COPYING
|
|
|
|
|
%doc AUTHORS ChangeLog NEWS README THANKS TODO
|
2015-02-27 09:53:49 +00:00
|
|
|
%doc doc/skid2-authentication doc/example.c
|
2024-02-29 10:44:55 +00:00
|
|
|
%{_mandir}/man?/*
|
2007-01-04 16:26:56 +00:00
|
|
|
%{_includedir}/*
|
2007-04-05 22:26:53 +00:00
|
|
|
%{_libdir}/libmhash.so
|
|
|
|
|
|
|
|
|
|
%changelog
|