From 2f86ac9323fe1facbaa99b48cf2415884fc1f9c2 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 13 Oct 2010 05:57:44 -0400 Subject: [PATCH] Lift repository from RCS to git. --- .gitignore | 1 + README | 18 ++++++++++++++++++ semex.spec | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 67 insertions(+) create mode 100644 .gitignore create mode 100644 README create mode 100644 semex.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0866ab8 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +semex diff --git a/README b/README new file mode 100644 index 0000000..7791983 --- /dev/null +++ b/README @@ -0,0 +1,18 @@ + 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 . + +The MIT/X license applies. + + Eric S. Raymond + diff --git a/semex.spec b/semex.spec new file mode 100644 index 0000000..34db8ae --- /dev/null +++ b/semex.spec @@ -0,0 +1,48 @@ +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 1.5-1 +- RPMS can be built by a non-root user. + +* Sun Dec 28 2003 Eric S. Raymond 1.4 +- Updated RPM packaging. + +* Thu Aug 1 2002 Eric S. Raymond 1.3 +- Initial build. + + -- 2.43.0