[packages/opendmarc] Up to 1.4.2; library part is ready (and will be used in exim package)

arekm arekm at pld-linux.org
Tue Jul 30 13:13:29 CEST 2024


commit 7c7cc39e502b0a12e641221c27c6c8facfac2db3
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Tue Jul 30 12:18:27 2024 +0200

    Up to 1.4.2; library part is ready (and will be used in exim package)

 opendmarc.spec | 31 +++++++++++++++++--------------
 1 file changed, 17 insertions(+), 14 deletions(-)
---
diff --git a/opendmarc.spec b/opendmarc.spec
index 42cd501..7a711ab 100644
--- a/opendmarc.spec
+++ b/opendmarc.spec
@@ -1,26 +1,25 @@
 # TODO
 # - pld useradd/groupadd and register uid/gid
 # - pldize initscript
+%define		ver 1-4-2
+%define		ver_dot	%(echo %{ver} | tr '-' '.')
 Summary:	DMARC milter and library
 Name:		opendmarc
-Version:	1.2.0
-Release:	0.1
+Version:	%{ver_dot}
+Release:	1
 License:	BSD
 Group:		Daemons
-Source0:	http://downloads.sourceforge.net/opendmarc/%{name}-%{version}.tar.gz
-# Source0-md5:	bad2c454841cf7711fc148e114620051
+Source0:	https://github.com/trusteddomainproject/OpenDMARC/archive/refs/tags/rel-%{name}-%{ver}.tar.gz
+# Source0-md5:	658d951db84a0305b0c5d9312eff5b64
 Source1:	%{name}.tmpfiles
 URL:		http://www.trusteddomain.org/opendmarc.html
+BuildRequires:	libspf2-devel
 BuildRequires:	pkgconfig
 BuildRequires:	rpmbuild(macros) >= 1.644
 BuildRequires:	sendmail-devel
 Requires:	libopendmarc = %{version}-%{release}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-# unresolved __dn_expand, __dn_skipname, __res_query
-# TODO: fix linking: -lresolv
-%define		skip_post_check_so	libopendmarc.so.1.0.2
-
 %description
 OpenDMARC (Domain-based Message Authentication, Reporting &
 Conformance) provides an open source library that implements the DMARC
@@ -49,12 +48,16 @@ This package contains the static libraries, headers, and other support
 files required for developing applications against libopendmarc.
 
 %prep
-%setup -q
+%setup -q -n OpenDMARC-rel-%{name}-%{ver}
 
 %build
+autoreconf -v -i
 %configure \
 	--disable-silent-rules \
-	--disable-static
+	--disable-static \
+	--with-spf \
+	--with-spf2-include=%{_includedir}/spf2 \
+	--with-spf2-lib=%{_libdir}
 %{__make}
 
 %install
@@ -107,7 +110,7 @@ fi
 
 %files
 %defattr(644,root,root,755)
-%doc INSTALL README RELEASE_NOTES docs/draft-dmarc-base-02.txt
+%doc CONTRIBUTING INSTALL README README.md RELEASE_NOTES
 %doc db/README.schema db/schema.mysql
 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}.conf
 %attr(754,root,root) /etc/rc.d/init.d/%{name}
@@ -126,11 +129,11 @@ fi
 
 %files -n libopendmarc
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libopendmarc.so.*.*.*
-%ghost %{_libdir}/libopendmarc.so.1
+%attr(755,root,root) %{_libdir}/libopendmarc.so.*.*
+%attr(755,root,root) %ghost %{_libdir}/libopendmarc.so.2
 
 %files -n libopendmarc-devel
 %defattr(644,root,root,755)
 %doc libopendmarc/docs/*.html
 %{_includedir}/%{name}
-%{_libdir}/libopendmarc.so
+%attr(755,root,root) %{_libdir}/libopendmarc.so
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/opendmarc.git/commitdiff/7c7cc39e502b0a12e641221c27c6c8facfac2db3



More information about the pld-cvs-commit mailing list