SHA256
3
0
forked from pool/libedit

Accepting request 313057 from devel:libraries:c_c++

1

OBS-URL: https://build.opensuse.org/request/show/313057
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libedit?expand=0&rev=26
This commit is contained in:
Dominique Leuenberger 2015-07-02 20:44:49 +00:00 committed by Git OBS Bridge
commit a1abbf6678
4 changed files with 44 additions and 34 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9701e16570fb8f7fa407b506986652221b701a9dd61defc05bb7d1c61cdf5a40
size 484107

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c88a5e4af83c5f40dda8455886ac98923a9c33125699742603a88a0253fcc8c5
size 502792

View File

@ -1,10 +1,23 @@
-------------------------------------------------------------------
Mon Jun 22 11:45:10 UTC 2015 - tchvatal@suse.com
- Cleanup a bit with spec-cleaner
* remove pkg_name variable which is equal to name variable
-------------------------------------------------------------------
Fri Jun 19 12:01:55 UTC 2015 - idonmez@suse.com
- Update to 20150325-3.1
* version info: 0:53:0
* all: sync with upstream source
-------------------------------------------------------------------
Thu Feb 26 18:40:47 UTC 2015 - mpluskal@suse.com
- Update to 20141030-3.1
* version-info: 0:52:0
* all: sync with upstream source
* configura.ac: Fix posix shell portability issue.
* configure.ac: Fix posix shell portability issue.
-------------------------------------------------------------------
Mon Jul 28 14:48:16 UTC 2014 - mrueckert@suse.de

View File

@ -16,19 +16,15 @@
#
%define pkg_version 20150325-3.1
%define soname 0
%define library_name libedit%{soname}
Name: libedit
Version: 3.1.snap20141030
Version: 3.1.snap20150325
Release: 0
%define pkg_name libedit
%define pkg_version 20141030-3.1
#
#
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: ncurses-devel
BuildRequires: pkgconfig
#
Summary: Command Line Editing and History Library
License: BSD-3-Clause
Group: Development/Libraries/C and C++
Url: http://www.thrysoee.dk/editline/
Source: http://thrysoee.dk/editline/libedit-%{pkg_version}.tar.gz
Source1: README.SUSE
@ -36,23 +32,22 @@ 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++
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: ncurses-devel
BuildRequires: pkgconfig
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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++
Provides: %{name} = %{version}-%{release}
Obsoletes: %{name} < %{version}
%description -n %{library_name}
libedit is a command line editing and history library. It is designed
@ -60,11 +55,11 @@ 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++
Requires: %{library_name} = %{version}
Requires: glibc-devel
Provides: %{library_name}-devel = %{version}-%{release}
%description -n libedit-devel
libedit is a command line editing and history library. It is designed
@ -74,25 +69,27 @@ at a terminal prompt.
This package holds the development files for libedit.
%prep
%setup -q -n %{pkg_name}-20141029-3.1
%{__cp} %{S:1} .
%setup -q -n %{name}-%{pkg_version}
cp %{SOURCE1} .
%patch2
%patch3
%patch4 -p1
%build
NOCONFIGURE=1 autoreconf -fiv
%configure --disable-static --with-pic \
autoreconf -fiv
%configure \
--disable-static \
--with-pic \
--disable-silent-rules \
--enable-widec
make %{?_smp_mflags}
%install
%makeinstall
%__rm "%{buildroot}%{_libdir}"/*.la
make DESTDIR=%{buildroot} install %{?_smp_mflags}
find %{buildroot} -type f -name "*.la" -delete -print
%check
make check
make %{?_smp_mflags} check
%post -n %{library_name} -p /sbin/ldconfig