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 Thu Feb 26 18:40:47 UTC 2015 - mpluskal@suse.com
- Update to 20141030-3.1 - Update to 20141030-3.1
* version-info: 0:52:0 * version-info: 0:52:0
* all: sync with upstream source * 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 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 Name: libedit
Version: 3.1.snap20141030 Version: 3.1.snap20150325
Release: 0 Release: 0
%define pkg_name libedit Summary: Command Line Editing and History Library
%define pkg_version 20141030-3.1 License: BSD-3-Clause
# Group: Development/Libraries/C and C++
#
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: ncurses-devel
BuildRequires: pkgconfig
#
Url: http://www.thrysoee.dk/editline/ Url: http://www.thrysoee.dk/editline/
Source: http://thrysoee.dk/editline/libedit-%{pkg_version}.tar.gz Source: http://thrysoee.dk/editline/libedit-%{pkg_version}.tar.gz
Source1: README.SUSE Source1: README.SUSE
@ -36,23 +32,22 @@ Source2: baselibs.conf
Patch2: libedit-20100424-3.0-ncurses.patch Patch2: libedit-20100424-3.0-ncurses.patch
Patch3: libedit-ocloexec.patch Patch3: libedit-ocloexec.patch
Patch4: libedit-visibility.patch Patch4: libedit-visibility.patch
Summary: Command Line Editing and History Library BuildRequires: gcc-c++
License: BSD-3-Clause BuildRequires: libtool
Group: Development/Libraries/C and C++ BuildRequires: ncurses-devel
BuildRequires: pkgconfig
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
libedit is a command line editing and history library. It is designed 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 to be used by interactive programs that allow the user to type commands
at a terminal prompt. at a terminal prompt.
%define library_name libedit0
%define soname 0
%package -n %{library_name} %package -n %{library_name}
Provides: %{pkg_name} = %{version}-%{release}
Obsoletes: %{pkg_name} < %{version}
Summary: Command Line Editing and History Library Summary: Command Line Editing and History Library
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Provides: %{name} = %{version}-%{release}
Obsoletes: %{name} < %{version}
%description -n %{library_name} %description -n %{library_name}
libedit is a command line editing and history library. It is designed 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. at a terminal prompt.
%package -n libedit-devel %package -n libedit-devel
Requires: %{library_name} = %{version}
Provides: %{library_name}-devel = %{version}-%{release}
Requires: glibc-devel
Summary: Development files for libedit Summary: Development files for libedit
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: %{library_name} = %{version}
Requires: glibc-devel
Provides: %{library_name}-devel = %{version}-%{release}
%description -n libedit-devel %description -n libedit-devel
libedit is a command line editing and history library. It is designed 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. This package holds the development files for libedit.
%prep %prep
%setup -q -n %{pkg_name}-20141029-3.1 %setup -q -n %{name}-%{pkg_version}
%{__cp} %{S:1} . cp %{SOURCE1} .
%patch2 %patch2
%patch3 %patch3
%patch4 -p1 %patch4 -p1
%build %build
NOCONFIGURE=1 autoreconf -fiv autoreconf -fiv
%configure --disable-static --with-pic \ %configure \
--disable-static \
--with-pic \
--disable-silent-rules \ --disable-silent-rules \
--enable-widec --enable-widec
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
%makeinstall make DESTDIR=%{buildroot} install %{?_smp_mflags}
%__rm "%{buildroot}%{_libdir}"/*.la find %{buildroot} -type f -name "*.la" -delete -print
%check %check
make check make %{?_smp_mflags} check
%post -n %{library_name} -p /sbin/ldconfig %post -n %{library_name} -p /sbin/ldconfig