%define rev 25 Name: gsm-ussd Group: Applications/Communications Version: 0.4.0 Release: 0.1.%{rev}%{?dist} Source: http://linux.zum-quadrat.de/downloads/%{name}_%{version}-%{rev}.tar.gz BuildArch: noarch Summary: USSD query tool License: GPLv2 Url: http://iloapp.zum-quadrat.de/blog/linux?Home&category=2 Requires: perl-Expect Patch0: lib-exec.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/* %files %defattr(-,root,root,-) %doc README LICENSE TODO docs/README.* docs/story.txt docs/ussd-sessions.txt %doc %{_mandir}/man1/* %doc %{_mandir}/de/man1/* %{_libexecdir}/gsm-ussd/* %{_bindir}/gsm-ussd %{_bindir}/xussd %changelog * Sun Sep 16 2012 Ivan Romanov 0.4.0-0.1.25 - Initial version of package based on spec.tmpl from source tarball