File domainkeys.spec of Package domainkeys
#
# spec file for package domainkeys
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2008, 2013 Weberhofer GmbH, Vienna, Austria
#
# 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.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: domainkeys
Version: 0.69.1.19
Release: 0
Summary: DomainKey Implementor's Tools and Library for email servers & clients
License: Yahoo! DomainKeys Public License
Group: Productivity/Security
URL: http://domainkeys.sourceforge.net/
Source0: libdomainkeys-0.69.tar.bz2
# Adaptions to support newer openSSL versions
Patch0: libdomainkeys-openssl-1.1.patch
BuildRequires: pkgconfig(openssl)
%description
A general purpose set of tools, C library and CPAN modules to help DomainKeys developers.
The goal is that these tools and library can be easily adopted by all MTAs, LDAs and possibly
MUAs. This project is about conforming to the DomainKeys standard.
Thanks to https://notes.sagredo.eu/en/qmail-notes-185/patching-qmail-82.html
%package -n lib%{name}-devel
Summary: Development tools for %{name}
License: Yahoo! DomainKeys Public License
Group: Development/Languages/C and C++
%description -n lib%{name}-devel
A general purpose set of tools, C library and CPAN modules to help DomainKeys developers.
The goal is that these tools and library can be easily adopted by all MTAs, LDAs and possibly
MUAs. This project is about conforming to the DomainKeys standard.
License:
Yahoo! DomainKeys Public License Agreement v1.1
http://domainkeys.sourceforge.net/license/softwarelicense1-1.html
%prep
%setup -q -n lib%{name}-0.69
%patch0 -p1
%build
%define cflags %(echo %{optflags} | sed -e 's/$/ -fPIE/' )
%define ccflags %(echo %{optflags} | sed -e 's/$/ -fPIE/' )
%define ldflags %(echo %{optflags} | sed -e 's/$/ -pie/' )
export CFLAGS="%{ccflags}"
export LDFLAGS="%{ldflags}"
echo "-lresolv" > dns.lib
make %{?_smp_mflags}
%install
mkdir -p %{buildroot}%{_includedir}
mkdir -p %{buildroot}%{_libdir}
mkdir -p %{buildroot}%{_bindir}
install -p domainkeys.h dktrace.h %{buildroot}%{_includedir}
install -p libdomainkeys.a %{buildroot}%{_libdir}
install -p dknewkey %{buildroot}%{_bindir}
install -p -s dktest %{buildroot}%{_bindir}
%files
%doc README CHANGES *.html
%defattr(0755,root,root)
%{_bindir}/*
%files -n lib%{name}-devel
%defattr(0644,root,root)
%{_libdir}/libdomainkeys.a
%{_includedir}/domainkeys.h
%{_includedir}/dktrace.h
%changelog