-Summary: The exmh mail handling system.
-Name: exmh
-Version: 2.0.2
-Release: 7
-Requires: mh metamail
-Copyright: freeware
-Group: Applications/Internet
+Summary: The exmh mail handling system.
+Name: exmh
+Version: 2.0.2
+Release: 8
+Requires: mh metamail
+Copyright: freeware
+Group: Applications/Mail
+Url: http://www.beedub.com/exmh/
+Source0: ftp://ftp.sunlabs.com/exmh-2.0.2.tar.Z
+Source1: exmh.wmconfig
+Patch1: exmh-2.0.2-conf.patch
+Patch2: exmh-2.0.2-smproxy.patch
+BuildRoot: /tmp/%{name}-%{version}-root
BuildArchitectures: noarch
-Source0: ftp://ftp.sunlabs.com/exmh-2.0.2.tar.Z
-Url: http://www.beedub.com/exmh/
-Source1: exmh.wmconfig
-Patch1: exmh-2.0.2-conf.patch
-Patch2: exmh-2.0.2-smproxy.patch
-BuildRoot: /var/tmp/exmh-root
%description
Exmh provides an X interface for MH/nmh mail, a feature-rich email
that you will also have to install the nmh package.
%prep
-%setup -q -n exmh-%{PACKAGE_VERSION}
+%setup -q
for i in *.MASTER; do
cp $i ${i%%.MASTER}
done
%install
rm -rf $RPM_BUILD_ROOT
-mkdir -p $RPM_BUILD_ROOT/etc/X11/wmconfig
-mkdir -p $RPM_BUILD_ROOT/usr/{bin,man/man1}
-mkdir -p $RPM_BUILD_ROOT/usr/lib/exmh-%{PACKAGE_VERSION}
+install -d $RPM_BUILD_ROOT/etc/X11/wmconfig
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1,%{_libdir}/exmh-%{version}}
for i in exmh exmh-bg exmh-async ftp.expect; do
- install -m755 $i $RPM_BUILD_ROOT/usr/bin
+ install $i $RPM_BUILD_ROOT%{_bindir}
done
+
for i in *.l; do
- install -m644 $i $RPM_BUILD_ROOT/usr/man/man1/${i%%.l}.1
+ install $i $RPM_BUILD_ROOT%{_mandir}/man1/${i%%.l}.1
done
-cp -ar lib/* $RPM_BUILD_ROOT/usr/lib/exmh-%{PACKAGE_VERSION}
+cp -ar lib/* $RPM_BUILD_ROOT/usr/lib/exmh-%{version}
+
+install $RPM_SOURCE_DIR/exmh.wmconfig $RPM_BUILD_ROOT/etc/X11/wmconfig/exmh
-install -m644 $RPM_SOURCE_DIR/exmh.wmconfig $RPM_BUILD_ROOT/etc/X11/wmconfig/exmh
+gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/* \
+ COPYRIGHT exmh.CHANGES exmh.COLORS exmh.README
%clean
rm -rf $RPM_BUILD_ROOT
%files
-%defattr(-,root,root)
-%doc COPYRIGHT exmh.CHANGES exmh.COLORS exmh.README
+%defattr(644,root,root,755)
+%doc {COPYRIGHT,exmh.CHANGES,exmh.COLORS,exmh.README}.gz
%config /etc/X11/wmconfig/exmh
-/usr/bin/exmh
-/usr/bin/exmh-bg
-/usr/bin/exmh-async
-/usr/bin/ftp.expect
-/usr/lib/exmh-%{PACKAGE_VERSION}
-/usr/man/man1/exmh.1
+%attr(755,root,root) %{_bindir}/exmh
+%attr(755,root,root) %{_bindir}/exmh-bg
+%attr(755,root,root) %{_bindir}/exmh-async
+%attr(755,root,root) %{_bindir}/ftp.expect
+%{_libdir}/exmh-%{version}
+%{_mandir}/man1/exmh.1.gz