%define _name moto4lin %define _version 0.3 %define _suse_version %(grep VERSION /etc/SuSE-release|cut -f3 -d" ") %define _suse_vernum %(echo "%_suse_version"|tr -d '.') %define _release suse%{_suse_vernum} %define _distribution SuSE Linux %_suse_version Name: moto4lin Summary: Motorola phone tool for Linux Version: %{_version} Release: %{_release} License: GPL Group: Hardware/Tools Source: %{_name}-%{_version}.tar.bz2 URL: http:// BuildRoot: %{_tmppath}/build-%{_name}-%{_version} Packager: Sergey Yegorov BuildRequires: libusb, qt3-devel, Distribution: %{_distribution} %description Motorola phone tool for Linux (such as p2kman for Windows (tm)). By Vladimir Nezhevenko (dion@rcomp.zp.ua) %prep rm -rf $RPM_BUILD_ROOT mkdir $RPM_BUILD_ROOT %setup -q %build /usr/lib/qt3/bin/qmake make %install mkdir $RPM_BUILD_ROOT/opt mkdir $RPM_BUILD_ROOT/opt/moto4lin cp /usr/src/packages/BUILD/moto4lin-0.3/moto_ui/moto4lin $RPM_BUILD_ROOT/opt/moto4lin mkdir $RPM_BUILD_ROOT/opt/moto4lin/images cp /usr/src/packages/BUILD/moto4lin-0.3/moto_ui/images/*.png $RPM_BUILD_ROOT/opt/moto4lin/images mkdir $RPM_BUILD_ROOT/opt/moto4lin/obj cp /usr/src/packages/BUILD/moto4lin-0.3/moto_ui/obj/*.o $RPM_BUILD_ROOT/opt/moto4lin/obj %clean rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_DIR/moto4lin %files /opt/moto4lin/images/*.png /opt/moto4lin/obj/*.o %defattr(-,root,root,0755) /opt/moto4lin/moto4lin %changelog * Sun Apr 03 2005 Sergey Yegorov -initate *.rpm release