From: Ramesh Thomas <ramesh.thomas at intel.com>
To: accel-config@lists.01.org
Subject: [Accel-config] [PATCH 2/3] accel-config: Update rpm scripts to install test programs in /usr/lib
Date: Wed, 05 Oct 2022 13:23:16 -0700 [thread overview]
Message-ID: <20221005202317.2113-3-ramesh.thomas@intel.com> (raw)
In-Reply-To: 20221005202317.2113-1-ramesh.thomas@intel.com
[-- Attachment #1: Type: text/plain, Size: 1888 bytes --]
Test programs are being installed into /usr/share which violates the
policy
https://refspecs.linuxfoundation.org/FHS_3.0/fhs-3.0.html#usrshareArchitectureindependentData
Update rpm scripts to install test programs and related config files in
/usr/lib
Reported-by: Colin Ian King <colin.king(a)intel.com>
Signed-off-by: Ramesh Thomas <ramesh.thomas(a)intel.com>
---
accfg-test.spec.in | 6 +++---
accfg.spec.in | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/accfg-test.spec.in b/accfg-test.spec.in
index e279149..b639cc4 100644
--- a/accfg-test.spec.in
+++ b/accfg-test.spec.in
@@ -70,8 +70,8 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
%license licenses/accel-config-licenses LICENSE_GPL_2_0
%{_bindir}/accel-config
%{_mandir}/man1/accel-config*
-%{_sysconfdir}/accel-config/accel-config.conf.sample
-%{_datadir}/accel-config/contrib/configs/*
+%{_prefix}/lib/accel-config/accel-config.conf.sample
+%{_prefix}/lib/accel-config/contrib/configs/*
%files -n LNAME
%defattr(-,root,root)
@@ -90,6 +90,6 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
%files -n %{name}-test
%defattr(-,root,root)
%license Documentation/COPYING LICENSE_GPL_2_0
-%{_datadir}/accel-config/test/*
+%{_prefix}/lib/accel-config/test/*
%changelog
diff --git a/accfg.spec.in b/accfg.spec.in
index 7eb65bb..b905d30 100644
--- a/accfg.spec.in
+++ b/accfg.spec.in
@@ -62,8 +62,8 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
%license licenses/accel-config-licenses LICENSE_GPL_2_0
%{_bindir}/accel-config
%{_mandir}/man1/accel-config*
-%{_sysconfdir}/accel-config/accel-config.conf.sample
-%{_datadir}/accel-config/contrib/configs/*
+%{_prefix}/lib/accel-config/accel-config.conf.sample
+%{_prefix}/lib/accel-config/contrib/configs/*
%files -n LNAME
%defattr(-,root,root)
--
2.37.3
reply other threads:[~2022-10-05 20:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221005202317.2113-3-ramesh.thomas@intel.com \
--to=accel-config@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox