--- /dev/null
+ semex
+
+This was originally written sometime in the dark and backward abysm of
+time back in the 1980s.
+
+The 1.2 release in 1994 moved the code to ANSI C with prototypes.
+
+The 1.3 release in 2002 changed the code to use strerror(3) rather
+than its own array of error strings.
+
+The 1.4 release in 2003 updated the RPM packaging.
+
+The latest version of this code lives at <http://www.catb.org/~esr/semex/>.
+
+The MIT/X license applies.
+
+ Eric S. Raymond
+ <esr@thyrsus.com>
--- /dev/null
+Name: semex
+Version: 1.5
+Release: 1
+URL: http://www.catb.org/~esr/semex/
+Source0: %{name}-%{version}.tar.gz
+License: MIT
+Group: System/Utilities
+Summary: exerciser for semaphore system calls
+BuildRoot: %{_tmppath}/%{name}-root
+
+%description
+Tester and exerciser for Unix System V semaphore functions.
+Quite useful for getting hands-on knowledge of them, also
+as part of a test frame for any semaphore-using program.
+
+%prep
+%setup -q
+
+%build
+make %{?_smp_mflags} semex semex.1
+
+%install
+[ "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf "$RPM_BUILD_ROOT"
+mkdir -p "$RPM_BUILD_ROOT"%{_bindir}
+mkdir -p "$RPM_BUILD_ROOT"%{_mandir}/man1/
+cp semex "$RPM_BUILD_ROOT"%{_bindir}
+cp semex.1 "$RPM_BUILD_ROOT"%{_mandir}/man1/
+
+%clean
+[ "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf "$RPM_BUILD_ROOT"
+
+%files
+%defattr(-,root,root,-)
+%{_mandir}/man1/semex.1*
+%{_bindir}/semex
+%doc README
+
+%changelog
+* Mon Dec 29 2003 Eric S. Raymond <esr@snark.thyrsus.com> 1.5-1
+- RPMS can be built by a non-root user.
+
+* Sun Dec 28 2003 Eric S. Raymond <esr@snark.thyrsus.com> 1.4
+- Updated RPM packaging.
+
+* Thu Aug 1 2002 Eric S. Raymond <esr@golux.thyrsus.com> 1.3
+- Initial build.
+
+