Skip to content

Commit 83ac86e

Browse files
committed
Sync with Fedora spec
All changes but the release bump and additional changelog entry, as well as the non-upstream patches. All of Matt Domsch' changes to the specfile are there though.
1 parent 46d6d2f commit 83ac86e

File tree

1 file changed

+21
-8
lines changed

1 file changed

+21
-8
lines changed

contrib/spec/openarc.spec.in

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ URL: https://github.com/trusteddomainproject/OpenARC
1212

1313
Source0: https://github.com/trusteddomainproject/OpenARC/archive/v%{version}%{?pre_rel:.%pre_rel}/%{name}-%{version}%{?pre_rel:.%pre_rel}.tar.gz
1414

15-
BuildRequires: libtool
15+
BuildRequires: libtool gcc
1616
BuildRequires: pkgconfig(openssl)
1717
BuildRequires: pkgconfig(libbsd)
1818

@@ -67,34 +67,45 @@ required for developing applications against libopenarc.
6767
%build
6868
autoreconf --install
6969
%configure --disable-static
70-
make %{?_smp_mflags}
70+
%make_build
7171

7272
%install
73-
make install DESTDIR=%{buildroot}
74-
mkdir -p %{buildroot}%{_sysconfdir}
73+
%make_install
74+
mkdir -p -m 0700 %{buildroot}%{_sysconfdir}/%{name}
7575
mkdir -p -m 0700 %{buildroot}%{_localstatedir}/run/%{name}
7676
rm -r %{buildroot}%{_prefix}/share/doc/openarc
7777
rm %{buildroot}/%{_libdir}/*.la
7878

7979

8080
cat > %{buildroot}%{_sysconfdir}/openarc.conf <<EOF
8181
## See openarc.conf(5) or %{_docdir}/%{name}%{?rhel:-%{version}}/openarc.conf.sample for more
82-
PidFile %{_localstatedir}/run/openarc/openarc.pid
82+
PidFile %{_localstatedir}/run/%{name}/%{name}.pid
8383
Syslog yes
8484
#Umask 002
8585
UserID openarc:openarc
86-
Socket inet:8894@localhost
86+
Socket local:%{_localstatedir}/run/%{name}/%{name}.sock
87+
SignHeaders to,subject,message-id,date,from,mime-version,dkim-signature
88+
PeerList %{_sysconfdir}/%{name}/PeerList
89+
MilterDebug 6
90+
EnableCoredumps yes
8791

8892
## After setting Mode to "sv", running
8993
## opendkim-genkey -D %{_sysconfdir}/openarc -s key -d `hostname --domain`
9094
## and putting %{_sysconfdir}/openarc
95+
#Mode sv
9196
#Canonicalization relaxed/simple
9297
#Domain example.com # change to domain
9398
#Selector key
9499
#KeyFile %{_sysconfdir}/openarc/key.private
95100
#SignatureAlgorithm rsa-sha256
96101
EOF
97102

103+
# Don't sign or validate connections from localhost
104+
cat > %{buildroot}%{_sysconfdir}/%{name}/PeerList <<EOF
105+
127.0.0.1/32
106+
[::1]/128
107+
EOF
108+
chmod 0640 %{buildroot}%{_sysconfdir}/%{name}/PeerList
98109

99110
%if %systemd
100111
install -d -m 0755 %{buildroot}%{_unitdir}
@@ -168,6 +179,8 @@ exit 0
168179
%license LICENSE LICENSE.Sendmail
169180
%doc README RELEASE_NOTES openarc/openarc.conf.sample
170181
%config(noreplace) %{_sysconfdir}/openarc.conf
182+
%dir %attr(-,%{name},%{name}) %{_sysconfdir}/%{name}
183+
%config(noreplace) %{_sysconfdir}/%{name}/PeerList
171184

172185
%if %{tmpfiles}
173186
%{_tmpfilesdir}/%{name}.conf
@@ -186,10 +199,10 @@ exit 0
186199

187200
%files -n libopenarc
188201
%license LICENSE LICENSE.Sendmail
189-
%{_libdir}/*.so.*
202+
%{_libdir}/*.so.0
203+
%{_libdir}/*.so.0.0.0
190204

191205
%files -n libopenarc-devel
192-
%license LICENSE LICENSE.Sendmail
193206
%{_includedir}/*
194207
%{_libdir}/*.so
195208
%{_libdir}/pkgconfig/*.pc

0 commit comments

Comments
 (0)