summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-11-06 22:56:34 -0800
committerAnas Nashif <anas.nashif@intel.com>2012-11-06 22:56:34 -0800
commit78ec9b457793eb924342fbd5dd1a0cf2d75fedab (patch)
treef66ec1822b7b9a06ec4c4fd9ee32d8d88e77e44f /packaging
parenta95df6d374a9be6fa8cee82be6ff1fb51a3c8593 (diff)
downloaded-78ec9b457793eb924342fbd5dd1a0cf2d75fedab.tar.gz
ed-78ec9b457793eb924342fbd5dd1a0cf2d75fedab.tar.bz2
ed-78ec9b457793eb924342fbd5dd1a0cf2d75fedab.zip
Diffstat (limited to 'packaging')
-rw-r--r--packaging/ed.spec38
1 files changed, 38 insertions, 0 deletions
diff --git a/packaging/ed.spec b/packaging/ed.spec
new file mode 100644
index 0000000..ec2fa1b
--- /dev/null
+++ b/packaging/ed.spec
@@ -0,0 +1,38 @@
+Name: ed
+Version: 1.6
+Release: 1
+License: GPL-3.0+ ; LGPL-2.1+
+Summary: Standard UNIX Line Editor
+Url: http://www.gnu.org/software/ed/
+Group: Productivity/Editors/Other
+Source: %{name}-%{version}.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-build
+
+%description
+The standard, old Unix line editor.
+
+%prep
+%setup -q
+sed -i \
+ -e "s/CFLAGS='.*/CFLAGS='%{optflags}'/" \
+ -e "s/CXXFLAGS='.*/CXXFLAGS='%{optflags}'/" \
+ configure
+
+%build
+%{configure}
+make %{?_smp_mflags}
+
+%check
+make check
+
+%install
+%{makeinstall}
+
+%files
+%defattr(-,root,root)
+%{_bindir}/%{name}
+%{_bindir}/r%{name}
+%doc %{_infodir}/%{name}.info.gz
+%doc %{_mandir}/man1/%{name}.1.gz
+%doc %{_mandir}/man1/r%{name}.1.gz
+