commit c676b8987b78dcda40365defa933facb0307c547
Author: Caleb Maclennan <[email protected]>
Date:   Thu May 16 13:12:59 2013 +0300

    Install zsh completions

 vcsh-makefile.patch | 13 +++++++++++++
 vcsh.spec           |  6 +++++-
 2 files changed, 18 insertions(+), 1 deletion(-)
---
diff --git a/vcsh.spec b/vcsh.spec
index 3c4f51f..5406b80 100644
--- a/vcsh.spec
+++ b/vcsh.spec
@@ -2,11 +2,12 @@
 Summary:       home directory config manager based on git
 Name:          vcsh
 Version:       1.2
-Release:       0.1
+Release:       0.2
 License:       GPL v2
 Group:         Applications/Console
 Source0:       
https://github.com/RichiH/vcsh/archive/v%{version}-%{dotversion}.tar.gz
 # Source0-md5: 67ee98eb5db9a4b112966cc8aac41c11
+Patch0:                %{name}-makefile.patch
 URL:           https://github.com/RichiH/vcsh
 Requires:      mr
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -20,6 +21,7 @@ machine.
 
 %prep
 %setup -q -n %{name}-%{version}-%{dotversion}
+%patch0 -p0
 
 %build
 %{__make}
@@ -37,3 +39,5 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 #%doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO
 %attr(755,root,root) %{_bindir}/*
+%{_datadir}/zsh/site-functions/_%{name}
+%{_mandir}/man1/%{name}.1*
diff --git a/vcsh-makefile.patch b/vcsh-makefile.patch
new file mode 100644
index 0000000..fa32b7a
--- /dev/null
+++ b/vcsh-makefile.patch
@@ -0,0 +1,13 @@
+--- Makefile~  2013-05-06 00:56:11.000000000 +0300
++++ Makefile   2013-05-16 13:03:34.863192036 +0300
+@@ -14,8 +14,8 @@
+       install -d $(DESTDIR)$(PREFIX)/share/doc/$(self)
+       install -m 0644 README.md $(DESTDIR)$(PREFIX)/share/doc/$(self)
+       install -m 0644 doc/hooks $(DESTDIR)$(PREFIX)/share/doc/$(self)
+-      install -d $(DESTDIR)$(PREFIX)/share/zsh/vendor-completions
+-      install -m 0644 _$(self) 
$(DESTDIR)$(PREFIX)/share/zsh/vendor-completions
++      install -d $(DESTDIR)$(PREFIX)/share/zsh/site-functions
++      install -m 0644 _$(self) $(DESTDIR)$(PREFIX)/share/zsh/site-functions
+ 
+ manpages: $(manpages)
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/vcsh.git/commitdiff/c676b8987b78dcda40365defa933facb0307c547

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to