summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packaging/ed.manifest5
-rw-r--r--packaging/ed.spec36
2 files changed, 41 insertions, 0 deletions
diff --git a/packaging/ed.manifest b/packaging/ed.manifest
new file mode 100644
index 0000000..017d22d
--- /dev/null
+++ b/packaging/ed.manifest
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+ <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/ed.spec b/packaging/ed.spec
new file mode 100644
index 0000000..d6784c1
--- /dev/null
+++ b/packaging/ed.spec
@@ -0,0 +1,36 @@
+Name: ed
+Version: 1.19
+Release: 1
+License: GPL-3.0+
+Summary: Standard UNIX Line Editor
+Url: http://www.gnu.org/software/ed/
+Group: Productivity/Editors/Other
+Source: %{name}-%{version}.tar.gz
+Source1001: ed.manifest
+
+%description
+The standard, old Unix line editor.
+
+%prep
+%setup -q
+cp %{SOURCE1001} .
+
+%build
+export CFLAGS+=" -fPIC"
+export LDFLAGS+=" -pie"
+%{configure} CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
+%{__make} %{?_smp_mflags}
+
+# %check
+# make check
+
+%install
+%{makeinstall}
+%{remove_docs}
+
+%files
+%manifest %{name}.manifest
+%license COPYING
+%{_bindir}/%{name}
+%{_bindir}/r%{name}
+