- Move configuration files based on openSUSE distribution.

OBS-URL: https://build.opensuse.org/package/show/utilities/fastfetch?expand=0&rev=14
This commit is contained in:
Soc Virnyl Estela 2023-05-17 14:35:17 +00:00 committed by Git OBS Bridge
parent 63b0caa221
commit b277d29a54
2 changed files with 14 additions and 3 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed May 17 14:34:44 UTC 2023 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>
- Move configuration files based on openSUSE distribution.
-------------------------------------------------------------------
Wed May 17 14:13:18 UTC 2023 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>

View File

@ -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/