diff --git a/.gitignore b/.gitignore index bddbb9d..37c80f3 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /crypto-profiles-git81364e4.tar.gz +/config diff --git a/crypto-policies.spec b/crypto-policies.spec index 6867b7b..e2db2f2 100644 --- a/crypto-policies.spec +++ b/crypto-policies.spec @@ -1,11 +1,11 @@ # we use the upstream version from http_parser.h as the SONAME -%global git_date 20140520 -%global git_commit_hash 81364e4 +%global git_date 20140522 +%global git_commit_hash a50bad2 %global aname crypto-profiles Name: crypto-policies Version: 0.9 -Release: 3.%{git_date}git%{git_commit_hash}%{?dist} +Release: 4.%{git_date}git%{git_commit_hash}%{?dist} Summary: Crypto policies package for Fedora License: LGPLv2+ @@ -14,6 +14,7 @@ URL: https://git.fedorahosted.org/git/crypto-profiles.git # This is a tarball of the git repository without the .git/ # directory. Source0: crypto-profiles-git%{git_commit_hash}.tar.gz +Source1: config BuildArch: noarch BuildRequires: asciidoc @@ -41,6 +42,7 @@ mkdir -p -m 755 %{buildroot}%{_bindir} install -p -m 644 update-crypto-policies.8 %{buildroot}%{_mandir}/man8 install -p -m 755 update-crypto-policies %{buildroot}%{_bindir}/update-crypto-policies install -p -m 644 profiles/* %{buildroot}%{_datadir}/crypto-policies/profiles +install -p -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/crypto-policies/config %post %{_bindir}/update-crypto-policies @@ -48,7 +50,11 @@ install -p -m 644 profiles/* %{buildroot}%{_datadir}/crypto-policies/profiles %files %defattr(-,root,root,-) + %dir %{_sysconfdir}/crypto-policies/ + +%config(noreplace) %{_sysconfdir}/crypto-policies/config + %dir %{_datadir}/crypto-policies/ %{_bindir}/update-crypto-policies %{_mandir}/man8/update-crypto-policies.8.gz @@ -57,6 +63,9 @@ install -p -m 644 profiles/* %{buildroot}%{_datadir}/crypto-policies/profiles %doc COPYING.LESSER %changelog +* Thu May 22 2014 Nikos Mavrogiannopoulos - 0.9-4-20140522gita50bad2 +- Install the default configuration file. + * Wed May 21 2014 Nikos Mavrogiannopoulos - 0.9-3-20140520git81364e4 - Run update-crypto-policies after installation. diff --git a/sources b/sources index d699381..a9b10da 100644 --- a/sources +++ b/sources @@ -1 +1,2 @@ 4feaa365e3849646e3326034b830d0a3 crypto-profiles-git81364e4.tar.gz +314d5220cd267170bf79bb02d075a7e1 config