Merge pull request #1 from Valentin-v-Todorov/valentins_PR

adding spec file
This commit is contained in:
Doncho N. Gunchev 2024-02-21 12:54:15 +02:00 committed by GitHub
commit af6100ca49
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

31
gwebu-profile.spec Normal file
View file

@ -0,0 +1,31 @@
Summary: Install z-ps-twtty-7.sh and z-time_style.sh
Name: gwebu-profile
Version: 1.0
Release: 2
License: GPLv2
Source0: %{name}-%{version}.tar.gz
BuildArch: noarch
Requires: bash >= 4
%description
Bash prompt look nicer, history ordered by date with exit codes, commands starting with space are not saved
%prep
%setup -q
%build
# No build actions needed for Bash scripts
%install
mkdir -p %{buildroot}%{_sysconfdir}/profile.d
#install -m 755 *.sh %{buildroot}%{_sysconfdir}/profile.d/
install -m 644 *.sh %{buildroot}%{_sysconfdir}/profile.d/
chmod 644 %{buildroot}%{_sysconfdir}/profile.d/*.sh
%files
%defattr(-,root,root,-)
%{_sysconfdir}/profile.d/*.sh
%changelog
* Wed Feb 14 2024 Valentin Todorov <vtodorov@ctw.travel> - 1.0-1
- Initial package.