Rebase for libedit 20170329 37/136337/1
authorAnas Nashif <anas.nashif@intel.com>
Sat, 24 Aug 2013 12:40:31 +0000 (08:40 -0400)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Thu, 29 Jun 2017 06:51:07 +0000 (15:51 +0900)
Change-Id: Ic82fcfd37a44e90554856c68f940f6366ce0fe11
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>
packaging/baselibs.conf [new file with mode: 0644]
packaging/libedit.changes [new file with mode: 0644]
packaging/libedit.spec [new file with mode: 0644]

diff --git a/packaging/baselibs.conf b/packaging/baselibs.conf
new file mode 100644 (file)
index 0000000..f6e8aa0
--- /dev/null
@@ -0,0 +1 @@
+libedit
diff --git a/packaging/libedit.changes b/packaging/libedit.changes
new file mode 100644 (file)
index 0000000..c2234f5
--- /dev/null
@@ -0,0 +1,3 @@
+* Sat Aug 24 2013 Anas Nashif <anas.nashif@intel.com> upstream/20130712@0ec0bb2
+- Imported Upstream version 20130712-3.1
+
diff --git a/packaging/libedit.spec b/packaging/libedit.spec
new file mode 100644 (file)
index 0000000..7d4e244
--- /dev/null
@@ -0,0 +1,70 @@
+Name:           libedit
+Version:        3.1.snap20130712
+Release:        0
+%define pkg_name    libedit
+%define pkg_version 20130712-3.1
+Source:         %{name}-%{pkg_version}.tar.gz
+Source2:        baselibs.conf
+Summary:        Command Line Editing and History Library
+License:        BSD-3-Clause
+Group:          Development/Libraries
+Url:            http://www.thrysoee.dk/editline/
+BuildRequires:  gcc-c++
+BuildRequires:  libtool
+BuildRequires:  ncurses-devel
+BuildRequires:  pkgconfig
+
+%description
+libedit is a command line editing and history library. It is designed
+to be used by interactive programs that allow the user to type commands
+at a terminal prompt.
+
+%package devel
+Requires:       %{name} = %{version}
+Requires:       glibc-devel
+Summary:        Development files for libedit
+
+%description devel
+libedit is a command line editing and history library. It is designed
+to be used by interactive programs that allow the user to type commands
+at a terminal prompt.
+
+This package holds the development files for libedit.
+
+%prep
+%setup -q -n %{name}-%{pkg_version}
+
+%build
+NOCONFIGURE=1 autoreconf -fiv
+%configure --disable-static --with-pic \
+    --disable-silent-rules \
+    --enable-widec
+
+make %{?_smp_mflags}
+
+%check
+make check
+
+%install
+%make_install
+
+
+%post   -p /sbin/ldconfig
+
+%postun  -p /sbin/ldconfig
+
+%files 
+%defattr(-,root,root,-)
+%{_libdir}/libedit.so.*
+%{_mandir}/man5/editrc.5*
+%license COPYING
+
+%files -n libedit-devel
+%defattr(-,root,root,-)
+%{_libdir}/libedit.so
+%{_includedir}/histedit.h
+%{_includedir}/editline/
+%{_mandir}/man3/*.3%{ext_man}
+%{_libdir}/pkgconfig/libedit.pc
+
+%changelog