-
Notifications
You must be signed in to change notification settings - Fork 1
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 #91 from essentialkaos/develop
Version 3.0.0
- Loading branch information
Showing
8 changed files
with
156 additions
and
39 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
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 |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
|
||
Summary: Simple utility for counting unique lines | ||
Name: uc | ||
Version: 2.0.1 | ||
Version: 3.0.0 | ||
Release: 0%{?dist} | ||
Group: Applications/System | ||
License: Apache License, Version 2.0 | ||
|
@@ -16,7 +16,7 @@ Source0: https://source.kaos.st/%{name}/%{name}-%{version}.tar.bz2 | |
|
||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) | ||
|
||
BuildRequires: golang >= 1.19 | ||
BuildRequires: golang >= 1.20 | ||
|
||
Provides: %{name} = %{version}-%{release} | ||
|
||
|
@@ -54,6 +54,34 @@ install -pm 755 %{name}/%{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 | ||
|
@@ -65,6 +93,12 @@ rm -rf %{buildroot} | |
################################################################################ | ||
|
||
%changelog | ||
* Mon Feb 19 2024 Anton Novojilov <[email protected]> - 3.0.0-0 | ||
- crc64 replaced by xxhash | ||
- Added different output formats for distribution info | ||
- Code refactoring | ||
- Dependencies update | ||
|
||
* Tue Dec 19 2023 Anton Novojilov <[email protected]> - 2.0.1-0 | ||
- Dependencies update | ||
- Code refactoring | ||
|
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
Oops, something went wrong.