[easybashgui] Initial import (#797447)

fantom fantom at fedoraproject.org
Tue Mar 6 17:02:48 UTC 2012


commit 73a19fb1f461d53c05529ecbddd4dfe9aa403798
Author: Matthieu Saulnier <fantom at fedoraproject.org>
Date:   Tue Mar 6 18:01:58 2012 +0100

    Initial import (#797447)

 .gitignore                            |    1 +
 easybashgui-4.0.2-file_location.patch |   14 ++++++
 easybashgui.spec                      |   76 +++++++++++++++++++++++++++++++++
 sources                               |    1 +
 4 files changed, 92 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..cf5badf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/EasyBashGUI_4.0.2.tar.gz
diff --git a/easybashgui-4.0.2-file_location.patch b/easybashgui-4.0.2-file_location.patch
new file mode 100644
index 0000000..fb24261
--- /dev/null
+++ b/easybashgui-4.0.2-file_location.patch
@@ -0,0 +1,14 @@
+diff -up EasyBashGUI_4.0.2/easybashgui_4.0.2.orig EasyBashGUI_4.0.2/easybashgui_4.0.2
+--- EasyBashGUI_4.0.2/easybashgui_4.0.2.orig	2012-02-25 21:55:07.547200161 +0100
++++ EasyBashGUI_4.0.2/easybashgui_4.0.2	2012-02-25 21:57:04.281205452 +0100
+@@ -448,8 +448,8 @@ elif [ "${mode}" = "Xdialog" ]
+ 	no_tags="--no-tags"
+ 	no_buttons="--no-buttons"
+ 	menubox="--menubox"
+-	icona_Ok="--icon /usr/local/bin/Ok.xpm"
+-	icona_Attenzione="--icon /usr/local/bin/Attenzione.xpm"
++	icona_Ok="--icon /usr/share/easybashgui/Ok.xpm"
++	icona_Attenzione="--icon /usr/share/easybashgui/Attenzione.xpm"
+ 	progress="--progress"
+ 	#
+ 	dialogo="Xdialog"
diff --git a/easybashgui.spec b/easybashgui.spec
new file mode 100644
index 0000000..e41b237
--- /dev/null
+++ b/easybashgui.spec
@@ -0,0 +1,76 @@
+Name:           easybashgui
+Version:        4.0.2
+Release:        2%{?dist}
+Summary:        Bash function library
+
+License:        GPLv3
+URL:            https://sites.google.com/site/easybashgui/
+# The tarball is not available for download by wget
+# You can download the tarball at this url:
+# https://sites.google.com/site/easybashgui/download
+Source0:        EasyBashGUI_%{version}.tar.gz
+# Patch to move from /usr/local/bin/*.xpm to /usr/share/easybashgui/
+Patch0:         %{name}-4.0.2-file_location.patch
+
+#BuildRequires:  
+Requires:       xdialog
+Requires:       zenity
+Requires:       dialog
+BuildArch:      noarch
+
+
+%description
+EasyBashGUI is a bash function library that aims to give simple GUI functions
+using gtkdialog, kdialog, zenity, Xdialog, dialog, or whiptail depending on
+KDE or GNOME running or not, Gtkdialog or Xdialog installed or not and X server
+running or not ( (c)dialog or whiptail is the minimum ). So, if bash programmer
+writes: "message 'Thanks for using this program' ", he has not to worry in which
+environment his program runs: it is enough there is at least (c)dialog or
+whiptail installed, and program will work as expected. Obviously, if user has
+KDE, GNOME, or gtkdialog/Xdialog also installed ( and he's in a X session ),
+program will have "an other look", but logical flow is *exactly* the same. In
+EasyBashGUI "suite" there are a library ( "easybashgui_X.X.X" ), a script to
+quick test it ( "easybashgui_test.sh" ), and a stand-alone script to create
+dialog boxes externally ( "easydialog.sh" ). 
+
+
+%prep
+%setup -qn EasyBashGUI_%{version}
+%patch0 -p1
+# Remove shebang from easybashgui_test.sh :
+sed -i "s@#!/usr/bin/env bash@@" ./easybashgui_test.sh
+
+
+%build
+# Nothing to build
+
+
+%install
+# Install binary :
+mkdir -p %{buildroot}%{_bindir}
+install -pm 755 ./%{name}_%{version} %{buildroot}%{_bindir}/%{name}
+# Install external dialog boxes script :
+install -pm 755 ./easydialog.sh %{buildroot}%{_bindir}/easydialog
+# Install shared files (that need Patch0) :
+mkdir -p %{buildroot}%{_datadir}/%{name}
+install -pm 644 ./Ok.xpm ./Attenzione.xpm %{buildroot}%{_datadir}/%{name}/
+# Fix mode of easybashgui_test.sh :
+chmod 644 ./easybashgui_test.sh
+
+
+%files
+%doc EasyBashGUI-readme EasyBashGUI-license easybashgui_test.sh
+%{_bindir}/%{name}
+%{_bindir}/easydialog
+%{_datadir}/%{name}/
+
+
+%changelog
+* Tue Mar 06 2012 Matthieu Saulnier <fantom at fedoraproject.org> - 4.0.2-2
+- fix typo in %%description
+- add easybashgui_test in %%doc
+- remove shebang by sed statement in %%prep
+- fix mode of easybashgui_test.sh file
+
+* Sat Feb 25 2012 Matthieu Saulnier <fantom at fedoraproject.org> - 4.0.2-1
+- Initial Release
diff --git a/sources b/sources
index e69de29..7574f9b 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+0c084e5f2776182d2003f14410a00a88  EasyBashGUI_4.0.2.tar.gz


More information about the scm-commits mailing list