SHA256
3
0
forked from pool/libedit
libedit/libedit.spec
Ismail Dönmez 2118b4e98e - Update to 20150325-3.1
* version info: 0:53:0
  * all: sync with upstream source
  * configure.ac: Fix posix shell portability issue.

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libedit?expand=0&rev=53
2015-06-19 12:06:31 +00:00

119 lines
3.4 KiB
RPMSpec

#
# spec file for package libedit
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: libedit
Version: 3.1.snap20150325
Release: 0
%define pkg_name libedit
%define pkg_version 20150325-3.1
#
#
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: ncurses-devel
BuildRequires: pkgconfig
#
Url: http://www.thrysoee.dk/editline/
Source: http://thrysoee.dk/editline/libedit-%{pkg_version}.tar.gz
Source1: README.SUSE
Source2: baselibs.conf
Patch2: libedit-20100424-3.0-ncurses.patch
Patch3: libedit-ocloexec.patch
Patch4: libedit-visibility.patch
Summary: Command Line Editing and History Library
License: BSD-3-Clause
Group: Development/Libraries/C and C++
%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.
%define library_name libedit0
%define soname 0
%package -n %{library_name}
Provides: %{pkg_name} = %{version}-%{release}
Obsoletes: %{pkg_name} < %{version}
Summary: Command Line Editing and History Library
Group: Development/Libraries/C and C++
%description -n %{library_name}
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 -n libedit-devel
Requires: %{library_name} = %{version}
Provides: %{library_name}-devel = %{version}-%{release}
Requires: glibc-devel
Summary: Development files for libedit
Group: Development/Libraries/C and C++
%description -n libedit-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 %{pkg_name}-%{pkg_version}
cp %{S:1} .
%patch2
%patch3
%patch4 -p1
%build
NOCONFIGURE=1 autoreconf -fiv
%configure --disable-static \
--with-pic \
--disable-silent-rules \
--enable-widec
make %{?_smp_mflags}
%install
%makeinstall
rm "%{buildroot}%{_libdir}"/*.la
%check
make check
%post -n %{library_name} -p /sbin/ldconfig
%postun -n %{library_name} -p /sbin/ldconfig
%files -n %{library_name}
%defattr(-,root,root,-)
%{_libdir}/libedit.so.%{soname}
%{_libdir}/libedit.so.%{soname}.*
%{_mandir}/man5/editrc.5%{ext_man}
%doc README.SUSE THANKS ChangeLog COPYING examples/*c
%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