--- /dev/null
+%include /usr/lib/rpm/macros.perl
+Summary: Intel AMT serial-over-lan (sol) client
+Name: amtterm
+Version: 1.3
+Release: 1
+License: GPL v2
+Group: Applications/Networking
+Source0: http://www.kraxel.org/releases/amtterm/%{name}-%{version}.tar.gz
+# Source0-md5: a2385b2305680ae06687867527924ff5
+URL: http://www.kraxel.org/blog/linux/amtterm/
+BuildRequires: gtk+2-devel
+BuildRequires: pkg-config
+BuildRequires: vte0-devel
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+Requires: perl-SOAP-Lite
+Requires: perl-SOAP-Lite-HTTP
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Serial-over-lan (sol) client for Intel AMT.
+
+%package -n gamt
+Summary: Graphical Intel AMT serial-over-lan (sol) client
+Group: X11/Applications/Networking
+
+%description -n gamt
+Serial-over-lan (sol) client for Intel AMT.
+This package contains graphical (gtk) version.
+
+%prep
+%setup -q
+
+%build
+prefix=%{_prefix} \
+CFLAGS="%{rpmcflags}" \
+LDFLAGS="%{rpmldflags}" \
+%{__make} verbose=yes
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ prefix=%{_prefix} \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/amtterm
+%attr(755,root,root) %{_bindir}/amttool
+%{_mandir}/man1/amtterm.1*
+%{_mandir}/man1/amttool.1*
+%{_mandir}/man7/amt-howto.7*
+
+%files -n gamt
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/gamt
+%{_mandir}/man1/gamt.1*
+%{_desktopdir}/gamt.desktop