-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #27 from essentialkaos/develop
Version 2.4.0
- Loading branch information
Showing
6 changed files
with
218 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ language: go | |
go: | ||
- 1.10.x | ||
- 1.11.x | ||
- 1.12.x | ||
- tip | ||
|
||
os: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
|
||
Summary: Tool for checking perfectly written RPM specs | ||
Name: perfecto | ||
Version: 2.3.1 | ||
Version: 2.4.0 | ||
Release: 0%{?dist} | ||
Group: Development/Tools | ||
License: EKOL | ||
|
@@ -49,6 +49,34 @@ install -pm 755 %{name} %{buildroot}%{_bindir}/ | |
%clean | ||
rm -rf %{buildroot} | ||
|
||
%post | ||
if [[ -d %{_sysconfdir}/bash_completion.d ]] ; then | ||
%{name} --completion=bash 1> %{_sysconfdir}/bash_completion.d/%{name} 2>/dev/null | ||
fi | ||
|
||
if [[ -d %{_datarootdir}/fish/vendor_completions.d ]] ; then | ||
%{name} --completion=fish 1> %{_datarootdir}/fish/vendor_completions.d/%{name}.fish 2>/dev/null | ||
fi | ||
|
||
if [[ -d %{_datadir}/zsh/site-functions ]] ; then | ||
%{name} --completion=zsh 1> %{_datadir}/zsh/site-functions/_%{name} 2>/dev/null | ||
fi | ||
|
||
%postun | ||
if [[ $1 == 0 ]] ; then | ||
if [[ -f %{_sysconfdir}/bash_completion.d/%{name} ]] ; then | ||
rm -f %{_sysconfdir}/bash_completion.d/%{name} &>/dev/null || : | ||
fi | ||
|
||
if [[ -f %{_datarootdir}/fish/vendor_completions.d/%{name}.fish ]] ; then | ||
rm -f %{_datarootdir}/fish/vendor_completions.d/%{name}.fish &>/dev/null || : | ||
fi | ||
|
||
if [[ -f %{_datadir}/zsh/site-functions/_%{name} ]] ; then | ||
rm -f %{_datadir}/zsh/site-functions/_%{name} &>/dev/null || : | ||
fi | ||
fi | ||
|
||
################################################################################ | ||
|
||
%files | ||
|
@@ -59,6 +87,10 @@ rm -rf %{buildroot} | |
################################################################################ | ||
|
||
%changelog | ||
* Tue Jul 09 2019 Anton Novojilov <[email protected]> - 2.4.0-0 | ||
- Added check for bash loops syntax | ||
- Added completions generators | ||
|
||
* Fri Jul 05 2019 Anton Novojilov <[email protected]> - 2.3.1-0 | ||
- Fixed bug with checking default paths without macro | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
################################################################################ | ||
|
||
Summary: Test spec for perfecto | ||
Name: perfecto-spec | ||
Version: 1.0.0 | ||
Release: 0%{?dist} | ||
Group: System Environment/Base | ||
License: MIT | ||
URL: https://domain.com | ||
|
||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) | ||
|
||
Source0: https://domain.com/%{name}-%{version}.tar.gz | ||
|
||
################################################################################ | ||
|
||
%description | ||
Test spec for perfecto app. | ||
|
||
################################################################################ | ||
|
||
%package magic | ||
|
||
Summary: Test subpackage for perfecto | ||
Group: System Environment/Base | ||
|
||
%description magic | ||
Test subpackge for perfecto app. | ||
|
||
################################################################################ | ||
|
||
%prep | ||
%setup -qn %{name}-%{version} | ||
|
||
%build | ||
|
||
while true | ||
do | ||
rm -f $file | ||
done | ||
|
||
%{__make} %{?_smp_mflags} | ||
|
||
%install | ||
rm -rf %{buildroot} | ||
|
||
%{make_install} PREFIX=%{buildroot}%{_prefix} | ||
|
||
for file in $(ls -1) | ||
do | ||
rm -f $file | ||
done | ||
|
||
%clean | ||
# perfecto:absolve 2 | ||
rm -rf %{buildroot} | ||
|
||
%post | ||
%{__chkconfig} --add %{name} &>/dev/null || : | ||
|
||
%preun | ||
%{__chkconfig} --del %{name} &> /dev/null || : | ||
|
||
%postun | ||
%{__chkconfig} --del %{name} &> /dev/null || : | ||
|
||
################################################################################ | ||
|
||
%files | ||
%defattr(-,root,root,-) | ||
%{_bindir}/%{name} | ||
|
||
%files magic | ||
%defattr(-,root,root,-) | ||
%{_bindir}/%{name}-magic | ||
|
||
################################################################################ | ||
|
||
%changelog | ||
* Wed Jan 24 2018 Anton Novojilov <[email protected]> - 1.0.0-0 | ||
- Test changelog record |