diff --git a/fastfetch.changes b/fastfetch.changes index 0f832c8..7d6546e 100644 --- a/fastfetch.changes +++ b/fastfetch.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 17 14:34:44 UTC 2023 - Soc Virnyl Estela + +- Move configuration files based on openSUSE distribution. + ------------------------------------------------------------------- Wed May 17 14:13:18 UTC 2023 - Soc Virnyl Estela diff --git a/fastfetch.spec b/fastfetch.spec index 7d5e0be..4d2d9cd 100644 --- a/fastfetch.spec +++ b/fastfetch.spec @@ -72,9 +72,6 @@ sed -i "s|\#\!\/usr\/bin\/env bash||g" completions/bash %install %cmake_install -# Move the default config file to a saner directory -mv -v %{buildroot}%{_prefix}%{_sysconfdir} %{buildroot}%{_sysconfdir} - %files %license LICENSE %doc README.md CHANGELOG.md @@ -82,9 +79,18 @@ mv -v %{buildroot}%{_prefix}%{_sysconfdir} %{buildroot}%{_sysconfdir} %{_bindir}/flashfetch %{_bindir}/%{name} +%if 0%{?suse_version} < 1500 + +%dir %{_prefix}%{_sysconfdir}/%{name} +%{_prefix}%{_sysconfdir}/%{name}/config.conf + +%else + %dir %{_sysconfdir}/%{name} %config(noreplace) %{_sysconfdir}/%{name}/config.conf +%endif + %{_datadir}/%{name}/ %{_datadir}/bash-completion/