[gsm-ussd/f17] initial version

ivanromanov ivanromanov at fedoraproject.org
Wed Oct 10 01:01:58 UTC 2012


commit d8156736d675a5e3c093943a39b0da4707120d41
Author: Ivan Romanov <drizt at land.ru>
Date:   Wed Oct 10 06:59:47 2012 +0600

    initial version

 gsm-ussd-libexec.patch |   24 +++++++++++++++
 gsm-ussd.spec          |   77 ++++++++++++++++++++++++++++++++++++++++++++++++
 sources                |    1 +
 3 files changed, 102 insertions(+), 0 deletions(-)
---
diff --git a/gsm-ussd-libexec.patch b/gsm-ussd-libexec.patch
new file mode 100644
index 0000000..0133526
--- /dev/null
+++ b/gsm-ussd-libexec.patch
@@ -0,0 +1,24 @@
+diff --git a/Makefile b/Makefile
+index 2d21eac..a2ac1c0 100644
+--- a/Makefile
++++ b/Makefile
+@@ -9,7 +9,7 @@ PREFIX		= /usr/local
+ INSTALL_PATH	= $(PREFIX)
+ BIN_PATH	= $(INSTALL_PATH)/bin
+ MAN_PATH	= $(INSTALL_PATH)/share/man
+-LIB_PATH	= $(INSTALL_PATH)/lib/gsm-ussd
++LIB_PATH	= $(INSTALL_PATH)/libexec/gsm-ussd
+ 
+ # The documentation in POD and *roff format
+ PODS		= docs/gsm-ussd.en.pod docs/gsm-ussd.de.pod docs/xussd.en.pod docs/xussd.de.pod
+@@ -27,8 +27,8 @@ install:	all
+ 	install lib/GSMUSSD/* $(LIB_PATH)/lib/GSMUSSD
+ 	install bin/gsm-ussd.pl $(LIB_PATH)/bin
+ 	install bin/xussd.sh $(LIB_PATH)/bin
+-	cd $(BIN_PATH) && ln -sf ../lib/gsm-ussd/bin/gsm-ussd.pl gsm-ussd
+-	cd $(BIN_PATH) && ln -sf ../lib/gsm-ussd/bin/xussd.sh xussd
++	cd $(BIN_PATH) && ln -sf ../libexec/gsm-ussd/bin/gsm-ussd.pl gsm-ussd
++	cd $(BIN_PATH) && ln -sf ../libexec/gsm-ussd/bin/xussd.sh xussd
+ 
+ doc:	$(MANS)
+ 
diff --git a/gsm-ussd.spec b/gsm-ussd.spec
new file mode 100644
index 0000000..ba840b3
--- /dev/null
+++ b/gsm-ussd.spec
@@ -0,0 +1,77 @@
+%global __provides_exclude_from %{_libexecdir}
+%global __requires_exclude .*GSMUSSD.*
+
+%global rev 25
+Name:           gsm-ussd
+Group:          Applications/Communications
+Version:        0.4.0
+Release:        0.3.%{rev}%{?dist}
+Source:         http://linux.zum-quadrat.de/downloads/%{name}_%{version}-%{rev}.tar.gz
+BuildArch:      noarch 
+Summary:        USSD query tool
+
+License:        GPLv2+ or LGPLv2+
+Url:            http://iloapp.zum-quadrat.de/blog/linux?Home&category=2
+Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
+Requires:       perl(Expect)
+
+# Makefile installs python scripts to lib dir. It's wrong.
+# Patch serves to fix it.
+Patch0:         %{name}-libexec.patch
+
+%description
+gsm-ussd is a script to send USSD (Unstructured Supplementary
+Services Data) queries to your broadband provider. USSD queries
+are "phone numbers" like "*100#", which will result in a message
+(NOT a SMS) with your current prepaid account balance.
+
+You can use this program to query your own phone number,
+replenish your prepaid account, query your free minutes left
+and so on, depending on your GSM provider.
+
+%prep
+%setup -qn %{name}_%{version}-%{rev}
+%patch0 -p1
+
+%build
+
+%install
+make PREFIX=$RPM_BUILD_ROOT/usr install install-doc
+# Unset executable bit
+chmod 644 $RPM_BUILD_ROOT%{_mandir}/man1/* $RPM_BUILD_ROOT%{_mandir}/de/man1/*
+chmod 644 $RPM_BUILD_ROOT%{_libexecdir}/%{name}/lib/GSMUSSD/*
+
+# gsm-ussd has gui but it depends from KDE and Gnome.
+# So I've droped it to prevent many dependencies.
+rm $RPM_BUILD_ROOT%{_bindir}/xussd
+rm $RPM_BUILD_ROOT%{_libexecdir}/%{name}/bin/xussd.sh
+rm $RPM_BUILD_ROOT%{_mandir}/man1/xussd*
+rm $RPM_BUILD_ROOT%{_mandir}/de/man1/xussd*
+
+%files
+%doc README LICENSE TODO docs/README.* docs/story.txt docs/ussd-sessions.txt
+%doc %{_mandir}/man1/*
+%doc %{_mandir}/de/man1/*
+%{_libexecdir}/%{name}/
+%{_bindir}/%{name}
+
+%changelog
+* Mon Oct 08 2012 Ivan Romanov <drizt at land.ru> 0.4.0-0.4.25
+- use %%global instead of %%define
+- use %%name in patch
+
+* Sun Oct 07 2012 Ivan Romanov <drizt at land.ru> 0.4.0-0.3.25
+- dropped xussd
+- unset executable flag for perl modules
+- fixed License tag
+- fixed Requires tag
+- filter modules from Provides
+
+* Sat Sep 22 2012 Ivan Romanov <drizt at land.ru> 0.4.0-0.2.25
+- renamed lib-exec.patch -> gsm-ussd-libexec.patch
+- dropped %%defattr
+- corrected license
+- use %%gloabal instead of %%define
+
+* Sun Sep 16 2012 Ivan Romanov <drizt at land.ru> 0.4.0-0.1.25
+- Initial version of package based on spec.tmpl from source tarball
diff --git a/sources b/sources
index e69de29..a037ab0 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+6beb7fb55e44f39ff74ae688b104cb63  gsm-ussd_0.4.0-25.tar.gz


More information about the scm-commits mailing list