From d592eb030c4aa78f0325628c801cb80bb985a7ae Mon Sep 17 00:00:00 2001 From: stevejenkins Date: Mon, 20 Apr 2015 14:53:20 -0700 Subject: Update to 2.10.1-13 --- opendkim.spec | 82 +++++++++++++++++++++++++++++++---------------------------- 1 file changed, 43 insertions(+), 39 deletions(-) diff --git a/opendkim.spec b/opendkim.spec index b9c2a6d..93f9318 100644 --- a/opendkim.spec +++ b/opendkim.spec @@ -5,7 +5,7 @@ Summary: A DomainKeys Identified Mail (DKIM) milter to sign and/or verify mail Name: opendkim Version: 2.10.1 -Release: 12%{?dist} +Release: 13%{?dist} Group: System Environment/Daemons License: BSD and Sendmail URL: http://%{name}.org/ @@ -46,20 +46,21 @@ library that implements the DKIM service, plus a milter-based filter application that can plug in to any milter-aware MTA, including sendmail, Postfix, or any other MTA that supports the milter protocol. -%package -n libopendkim +%package -n lib%{name} Summary: An open source DKIM library Group: System Environment/Libraries +Obsoletes: %{name}-sysvinit < 2.10.1-5 -%description -n libopendkim +%description -n lib%{name} This package contains the library files required for running services built using libopendkim. -%package -n libopendkim-devel +%package -n lib%{name}-devel Summary: Development files for lib%{name} Group: Development/Libraries Requires: lib%{name}%{?_isa} = %{version}-%{release} -%description -n libopendkim-devel +%description -n lib%{name}-devel This package contains the static libraries, headers, and other support files required for developing applications against libopendkim. @@ -85,26 +86,24 @@ required for developing applications against libopendkim. %endif # Remove rpath -sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool -sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool +%{__sed} -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool +%{__sed} -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool %install -rm -rf %{buildroot} - -make DESTDIR=%{buildroot} install %{?_smp_mflags} -install -d %{buildroot}%{_sysconfdir} -install -d %{buildroot}%{_sysconfdir}/sysconfig -install -m 0755 contrib/init/redhat/%{name}-default-keygen %{buildroot}%{_sbindir}/%{name}-default-keygen +%{__make} DESTDIR=%{buildroot} install %{?_smp_mflags} +%{__install} -d %{buildroot}%{_sysconfdir} +%{__install} -d %{buildroot}%{_sysconfdir}/sysconfig +%{__install} -m 0755 contrib/init/redhat/%{name}-default-keygen %{buildroot}%{_sbindir}/%{name}-default-keygen %if %systemd -install -d -m 0755 %{buildroot}%{_unitdir} -install -m 0644 contrib/systemd/%{name}.service %{buildroot}%{_unitdir}/%{name}.service +%{__install} -d -m 0755 %{buildroot}%{_unitdir} +%{__install} -m 0644 contrib/systemd/%{name}.service %{buildroot}%{_unitdir}/%{name}.service %else -install -d %{buildroot}%{_initrddir} -install -m 0755 contrib/init/redhat/%{name} %{buildroot}%{_initrddir}/%{name} +%{__install} -d %{buildroot}%{_initrddir} +%{__install} -m 0755 contrib/init/redhat/%{name} %{buildroot}%{_initrddir}/%{name} %endif -cat > %{buildroot}%{_sysconfdir}/%{name}.conf << 'EOF' +%{__cat} > %{buildroot}%{_sysconfdir}/%{name}.conf << 'EOF' ## BASIC %{bigname} CONFIGURATION FILE ## See %{name}.conf(5) or %{_defaultdocdir}/%{name}/%{name}.conf.sample for more @@ -189,7 +188,7 @@ KeyFile %{_sysconfdir}/%{name}/keys/default.private #InternalHosts refile:%{_sysconfdir}/%{name}/TrustedHosts EOF -cat > %{buildroot}%{_sysconfdir}/sysconfig/%{name} << 'EOF' +%{__cat} > %{buildroot}%{_sysconfdir}/sysconfig/%{name} << 'EOF' # Set the necessary startup options OPTIONS="-x %{_sysconfdir}/%{name}.conf -P %{_localstatedir}/run/%{name}/%{name}.pid" @@ -200,8 +199,8 @@ DKIM_SELECTOR=default DKIM_KEYDIR=%{_sysconfdir}/%{name}/keys EOF -mkdir -p %{buildroot}%{_sysconfdir}/%{name} -cat > %{buildroot}%{_sysconfdir}/%{name}/SigningTable << 'EOF' +%{__mkdir} -p %{buildroot}%{_sysconfdir}/%{name} +%{__cat} > %{buildroot}%{_sysconfdir}/%{name}/SigningTable << 'EOF' # %{bigname} SIGNING TABLE # This table controls how to apply one or more signatures to outgoing messages based # on the address found in the From: header field. In simple terms, this tells @@ -229,7 +228,7 @@ cat > %{buildroot}%{_sysconfdir}/%{name}/SigningTable << 'EOF' #example.com default._domainkey.example.com EOF -cat > %{buildroot}%{_sysconfdir}/%{name}/KeyTable << 'EOF' +%{__cat} > %{buildroot}%{_sysconfdir}/%{name}/KeyTable << 'EOF' # %{bigname} KEY TABLE # To use this file, uncomment the #KeyTable option in %{_sysconfdir}/%{name}.conf, # then uncomment the following line and replace example.com with your domain @@ -238,7 +237,7 @@ cat > %{buildroot}%{_sysconfdir}/%{name}/KeyTable << 'EOF' #default._domainkey.example.com example.com:default:%{_sysconfdir}/%{name}/keys/default.private EOF -cat > %{buildroot}%{_sysconfdir}/%{name}/TrustedHosts << 'EOF' +%{__cat} > %{buildroot}%{_sysconfdir}/%{name}/TrustedHosts << 'EOF' # %{bigname} TRUSTED HOSTS # To use this file, uncomment the #ExternalIgnoreList and/or the #InternalHosts # option in %{_sysconfdir}/%{name}.conf then restart %{upname}. Additional hosts @@ -250,7 +249,7 @@ cat > %{buildroot}%{_sysconfdir}/%{name}/TrustedHosts << 'EOF' #192.168.1.0/24 EOF -cat > README.fedora << 'EOF' +%{__cat} > README.fedora << 'EOF' ##################################### #FEDORA-SPECIFIC README FOR %{bigname}# ##################################### @@ -321,7 +320,7 @@ If you have %upname configured to use SQL datasets on a systemd-based server, it %name service after the database servers by referencing your database unit file(s) in the "After" section of the %upname unit file. -For example, if using both MariaDB and PostgreSQL, in /usr/lib/systemd/system/opendkim.service change: +For example, if using both MariaDB and PostgreSQL, in %{_unitdir}/%{name}.service change: After=network.target nss-lookup.target syslog.target @@ -345,25 +344,25 @@ Official documentation for %{upname} is available at http://%{name}.org/ ### EOF -install -p -d %{buildroot}%{_sysconfdir}/tmpfiles.d -cat > %{buildroot}%{_sysconfdir}/tmpfiles.d/%{name}.conf <<'EOF' +%{__install} -p -d %{buildroot}%{_sysconfdir}/tmpfiles.d +%{__cat} > %{buildroot}%{_sysconfdir}/tmpfiles.d/%{name}.conf <<'EOF' D %{_localstatedir}/run/%{name} 0700 %{name} %{name} - EOF -rm -r %{buildroot}%{_prefix}/share/doc/%{name} -rm %{buildroot}%{_libdir}/*.a -rm %{buildroot}%{_libdir}/*.la +%{__rm} -r %{buildroot}%{_prefix}/share/doc/%{name} +%{__rm} %{buildroot}%{_libdir}/*.a +%{__rm} %{buildroot}%{_libdir}/*.la -mkdir -p %{buildroot}%{_localstatedir}/spool/%{name} -mkdir -p %{buildroot}%{_localstatedir}/run/%{name} -mkdir -p %{buildroot}%{_sysconfdir}/%{name} -mkdir %{buildroot}%{_sysconfdir}/%{name}/keys +%{__mkdir} -p %{buildroot}%{_localstatedir}/spool/%{name} +%{__mkdir} -p %{buildroot}%{_localstatedir}/run/%{name} +%{__mkdir} -p %{buildroot}%{_sysconfdir}/%{name} +%{__mkdir} %{buildroot}%{_sysconfdir}/%{name}/keys -install -m 0755 stats/%{name}-reportstats %{buildroot}%{_prefix}/sbin/%{name}-reportstats -sed -i 's|^%{bigname}STATSDIR="/var/db/%{name}"|%{bigname}STATSDIR="%{_localstatedir}/spool/%{name}"|g' %{buildroot}%{_prefix}/sbin/%{name}-reportstats -sed -i 's|^%{bigname}DATOWNER="mailnull:mailnull"|%{bigname}DATOWNER="%{name}:%{name}"|g' %{buildroot}%{_prefix}/sbin/%{name}-reportstats +%{__install} -m 0755 stats/%{name}-reportstats %{buildroot}%{_prefix}/sbin/%{name}-reportstats +%{__sed} -i 's|^%{bigname}STATSDIR="/var/db/%{name}"|%{bigname}STATSDIR="%{_localstatedir}/spool/%{name}"|g' %{buildroot}%{_prefix}/sbin/%{name}-reportstats +%{__sed} -i 's|^%{bigname}DATOWNER="mailnull:mailnull"|%{bigname}DATOWNER="%{name}:%{name}"|g' %{buildroot}%{_prefix}/sbin/%{name}-reportstats -chmod 0644 contrib/convert/convert_keylist.sh +%{__chmod} 0644 contrib/convert/convert_keylist.sh %pre getent group %{name} >/dev/null || groupadd -r %{name} @@ -429,7 +428,7 @@ exit 0 %postun -n libopendkim -p /sbin/ldconfig %clean -rm -rf %{buildroot} +%{__rm} -rf %{buildroot} %files %if 0%{?_licensedir:1} @@ -483,6 +482,11 @@ rm -rf %{buildroot} %{_libdir}/pkgconfig/*.pc %changelog +* Mon Apr 13 2015 Steve Jenkins - 2.10.1-13 +- Obsoleted sysvinit subpackage via libopendkim subpackage +- Added more macros +- Updated README.fedora + * Mon Apr 06 2015 Steve Jenkins - 2.10.1-12 - BuildRequires opendbx-devel instead of opendbx - Fixed typo in configure flag -- cgit