[vimpal] Initial import #890482
Eduardo Javier Echeverria Alvarado
echevemaster at fedoraproject.org
Wed Jan 2 03:19:16 UTC 2013
commit 298b2e20859408712d4d27d887cc46d4f8e2a983
Author: Eduardo Echeverria <echevemaster at gmail.com>
Date: Tue Jan 1 22:46:33 2013 -0430
Initial import #890482
.gitignore | 1 +
sources | 1 +
vimpal.desktop | 8 +++++++
vimpal.spec | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 67 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..3e17996 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/vimpal_1.1.0.tar.gz
diff --git a/sources b/sources
index e69de29..1430ed5 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+7eaa7d3afa1c33be6a6414821f36a92f vimpal_1.1.0.tar.gz
diff --git a/vimpal.desktop b/vimpal.desktop
new file mode 100644
index 0000000..1d647bb
--- /dev/null
+++ b/vimpal.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=VIM Pal
+Comment=Separate application providing a file tree for VIM
+Exec=vimpal
+Icon=vimpal
+Terminal=false
+Type=Application
+Categories=Utility;Development;
diff --git a/vimpal.spec b/vimpal.spec
new file mode 100644
index 0000000..7838f72
--- /dev/null
+++ b/vimpal.spec
@@ -0,0 +1,57 @@
+Name: vimpal
+Version: 1.1.0
+Release: 1%{?dist}
+Summary: Separate application providing a file tree for VIM
+License: GPLv3+
+URL: http://vimpal.sourceforge.net
+Source0: http://downloads.sourceforge.net/project/%{name}/%{name}_%{version}.tar.gz
+Source1: vimpal.desktop
+BuildRequires: qt-devel
+BuildRequires: desktop-file-utils
+Requires: vim-X11
+
+%description
+Simple and small application that can be used to select the files you want
+to edit in Vim.
+
+%prep
+%setup -q -n %{name}_%{version}
+# I provide an icon without a name so generic
+cp -p img/icon.png img/vimpal.png
+
+%build
+qmake-qt4
+make %{?_smp_mflags}
+
+
+%install
+mkdir -p %{buildroot}%{_bindir}/
+install -pm 0755 vimpal %{buildroot}%{_bindir}/%{name}
+mkdir -p %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/
+install -pm 0644 img/%{name}.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/
+mkdir -p %{buildroot}%{_datadir}/applications/
+desktop-file-install \
+ --dir %{buildroot}%{_datadir}/applications \
+ %{SOURCE1}
+
+%post
+/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+
+%postun
+if [ $1 -eq 0 ] ; then
+ /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+ /usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || :
+fi
+
+%posttrans
+/usr/bin/gtk-update-icon-cache -f %{_datadir}/icons/hicolor &>/dev/null || :
+
+%files
+%doc README gpl.txt
+%{_bindir}/%{name}
+%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
+%{_datadir}/applications/%{name}.desktop
+
+%changelog
+* Thu Dec 27 2012 Eduardo Echeverria <echevemaster at gmail.com> - 1.1.0-1
+- Initial Packaging
More information about the scm-commits
mailing list