summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
Diffstat (limited to 'packaging')
-rw-r--r--packaging/sed.changes6
-rw-r--r--packaging/sed.manifest5
-rw-r--r--packaging/sed.spec53
3 files changed, 64 insertions, 0 deletions
diff --git a/packaging/sed.changes b/packaging/sed.changes
new file mode 100644
index 0000000..d8bb0de
--- /dev/null
+++ b/packaging/sed.changes
@@ -0,0 +1,6 @@
+* Fri Mar 22 2013 Anas Nashif <anas.nashif@intel.com> submit/trunk/20121230.160228@325f398
+- Fixed package groups
+
+* Sun Dec 30 2012 Anas Nashif <anas.nashif@intel.com> upstream/4.2.1@3bc8d68
+- provide /bin/sed
+
diff --git a/packaging/sed.manifest b/packaging/sed.manifest
new file mode 100644
index 0000000..017d22d
--- /dev/null
+++ b/packaging/sed.manifest
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+ <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/sed.spec b/packaging/sed.spec
new file mode 100644
index 0000000..1df1565
--- /dev/null
+++ b/packaging/sed.spec
@@ -0,0 +1,53 @@
+Name: sed
+Version: 4.1c
+Release: 0
+Summary: A Stream-Oriented Non-Interactive Text Editor
+License: GPL-2.0+
+Group: Base/Utilities
+Url: http://www.gnu.org/directory/sed.html
+Source: %{name}-%{version}.tar.bz2
+Source1001: sed.manifest
+Provides: base:/bin/sed
+BuildRequires: automake
+Provides: /bin/sed
+
+%description
+Sed takes text input, performs one or more operations on it, and
+outputs the modified text. Sed is typically used for extracting parts
+of a file using pattern matching or for substituting multiple
+occurrences of a string within a file.
+
+%prep
+%setup -q
+cp %{SOURCE1001} .
+
+%build
+%define warn_flags -Wall -Wstrict-prototypes -Wpointer-arith -Wformat-security
+export CFLAGS="%{optflags} %warn_flags"
+%configure --prefix=/usr \
+ --mandir=%{_mandir} \
+ --infodir=%{_infodir} \
+ --disable-nls \
+ --without-included-regex \
+ %{_target_cpu}-tizen-linux
+%if %do_profiling
+ %__make %{?_smp_mflags} CFLAGS="$CFLAGS "%cflags_profile_generate
+ %__make %{?_smp_mflags} check
+ %__make clean
+ %__make %{?_smp_mflags} CFLAGS="$CFLAGS "%cflags_profile_feedback
+%else
+ %__make %{?_smp_mflags}
+%endif
+%__make %{?_smp_mflags} check
+
+%install
+%make_install
+
+
+%docs_package
+
+%files
+%manifest %{name}.manifest
+%defattr(-, root, root)
+%{_bindir}/sed
+%license COPYING*