X-Git-Url: http://git.jankratochvil.net/?p=mdsms.git;a=blobdiff_plain;f=mdsms.spec.in;fp=mdsms.spec.in;h=245ae60c0cddc3d5df532e6a77d3b9638d8a82f2;hp=0000000000000000000000000000000000000000;hb=3ded411478eb74cce19986adf7a6419ba907c446;hpb=ac11bc9838ab29cd6b65168ebae994e8f03f1f43 diff --git a/mdsms.spec.in b/mdsms.spec.in new file mode 100644 index 0000000..245ae60 --- /dev/null +++ b/mdsms.spec.in @@ -0,0 +1,45 @@ +Summary: Mobile Device SMS tool. +Name: @PACKAGE@ +%define release 0 +Version: @VERSION@ +Release: %{release} +Group: Applications/Communications +Source: http://atrey.karlin.mff.cuni.cz/~short/sw/@PACKAGE@-@VERSION@.tar.gz +Copyright: LGPL2.1 +BuildRoot: /var/tmp/@PACKAGE@-@VERSION@-%{release}-root +Prefix: /usr +AutoReq: no + +%description +Program sends one SmartMessaging SMS through one of the supported mobile +device connected through the serial port. Currently supported devices: + + * Nokia Communicator 9000/9000i/9110 + * Siemens A1 (incl. MobilDock) + +%prep +%setup + +%build +CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr +make + +%install +rm -rf $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT/usr/bin + +make DESTDIR="$RPM_BUILD_ROOT" install + +{ cd $RPM_BUILD_ROOT + strip ./usr/bin/@PACKAGE@ +} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +%doc README NEWS ChangeLog +/usr/bin/@PACKAGE@ +/usr/man/man1/@PACKAGE@.1 +/usr/share/locale/*/LC_MESSAGES/@PACKAGE@.mo