[packages/nvme-cli] up to 1.7

atler atler at pld-linux.org
Fri Jan 11 17:45:27 CET 2019


commit 10b7305f1a19a315871902addd00e74e21527318
Author: Jan Palus <atler at pld-linux.org>
Date:   Fri Jan 11 17:44:18 2019 +0100

    up to 1.7
    
    - packaged zsh completion

 nvme-cli.spec | 28 ++++++++++++++++++++++------
 1 file changed, 22 insertions(+), 6 deletions(-)
---
diff --git a/nvme-cli.spec b/nvme-cli.spec
index 6d13b53..57329bf 100644
--- a/nvme-cli.spec
+++ b/nvme-cli.spec
@@ -1,12 +1,12 @@
 Summary:	NVMe management command line interface
 Summary(pl.UTF-8):	Konsolowy interfejs do zarządzania NVMe
 Name:		nvme-cli
-Version:	1.4
+Version:	1.7
 Release:	1
 License:	GPL v2+
 Group:		Applications
 Source0:	https://github.com/linux-nvme/nvme-cli/archive/v%{version}.tar.gz
-# Source0-md5:	d3b43b7a8b7387ac4b52a9e1a44fba75
+# Source0-md5:	ec64bc935957f6bc52109bde704a5a42
 URL:		https://github.com/linux-nvme/nvme-cli
 BuildRequires:	libuuid-devel
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -33,6 +33,21 @@ bash-completion for nvme-cli.
 %description -n bash-completion-nvme-cli -l pl.UTF-8
 Bashowe dopełnianie składni dla nvme-cli.
 
+%package -n zsh-completion-nvme-cli
+Summary:	zsh-completion for nvme-cli
+Summary(pl.UTF-8):	Dopełnianie składni w zsh dla nvme-cli
+Group:		Applications/Shells
+Requires:	%{name} = %{epoch}:%{version}-%{release}
+%if "%{_rpmversion}" >= "5"
+BuildArch:	noarch
+%endif
+
+%description -n zsh-completion-nvme-cli
+zsh-completion for nvme-cli.
+
+%description -n zsh-completion-nvme-cli -l pl.UTF-8
+Dopełnianie składni w zsh dla nvme-cli.
+
 %prep
 %setup -q
 
@@ -40,7 +55,7 @@ Bashowe dopełnianie składni dla nvme-cli.
 
 PREFIX=%{_prefix} \
 LDFLAGS="${LDFLAGS:-%rpmldflags}" \
-CFLAGS="${CFLAGS:-%rpmcflags}" \
+CFLAGS="${CFLAGS:-%rpmcflags} -I." \
 CXXFLAGS="${CXXFLAGS:-%rpmcxxflags}" \
 CPPFLAGS="${CPPFLAGS:-%rpmcppflags}" \
 %{?__cc:CC="%{__cc}"} \
@@ -54,9 +69,6 @@ rm -rf $RPM_BUILD_ROOT
 	PREFIX=%{_prefix} \
 	DESTDIR=$RPM_BUILD_ROOT
 
-install -d $RPM_BUILD_ROOT/%{bash_compdir}
-mv $RPM_BUILD_ROOT/{%{_datadir}/bash_completion.d/nvme,%{bash_compdir}}
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -69,3 +81,7 @@ rm -rf $RPM_BUILD_ROOT
 %files -n bash-completion-nvme-cli
 %defattr(644,root,root,755)
 %{bash_compdir}/nvme
+
+%files -n zsh-completion-nvme-cli
+%defattr(644,root,root,755)
+%{zsh_compdir}/_nvme
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nvme-cli.git/commitdiff/10b7305f1a19a315871902addd00e74e21527318



More information about the pld-cvs-commit mailing list