SHA256
5
0
forked from pool/libstfl

Accepting request 578218 from home:avindra

- update to 0.24
  * increased table MAX_ROWS and MAX_COLS
  * Added "process" variable
  * Added stfl_redraw API
  * Added example2
  * Fixed updating of "pos_name" in list widget
  * Added stfl_text() function
  * removed unimplemented stfl_lookup() function
  * Fixed compiler warning in wt_list.c
  * cosmetic changes in parser.c
- cleanup spec file with spec-cleaner
- rebase stfl-optflags.patch
  * version number removed from context for better reusability

OBS-URL: https://build.opensuse.org/request/show/578218
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libstfl?expand=0&rev=15
This commit is contained in:
2018-02-20 10:50:24 +00:00
committed by Git OBS Bridge
parent 71d6daaea6
commit 37cdb642ba
5 changed files with 27 additions and 26 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package libstfl
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2018 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
@@ -18,7 +18,7 @@
%define soname 0
Name: libstfl
Version: 0.23
Version: 0.24
Release: 0
Summary: Structured Terminal Forms Library
License: LGPL-3.0+
@@ -28,10 +28,8 @@ Source: http://www.clifford.at/stfl/stfl-%{version}.tar.gz
Source99: libstfl-rpmlintrc
Patch1: stfl-optflags.patch
Patch2: stfl-ncurses.patch
#BuildRequires: swig perl python python-devel ruby ruby-devel
BuildRequires: ncurses-devel
BuildRequires: pkg-config
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: pkgconfig
%description
.............................................................................
@@ -75,10 +73,8 @@ GUI and can concentrate on the more interesting programming tasks.
%build
make %{?_smp_mflags} \
prefix="%{_prefix}" \
libdir="%{_lib}" \
CC="gcc" \
OPTFLAGS="%{optflags}" \
OPTFLAGS="%{optflags}"\
FOUND_SPL=0 \
FOUND_SWIG=0 \
FOUND_RUBY=0 \
@@ -86,14 +82,9 @@ make %{?_smp_mflags} \
FOUND_PYTHON=0
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags} \
prefix="%{_prefix}" \
%make_install \
libdir="%{_lib}" \
FOUND_SPL=0 \
FOUND_SWIG=0 \
FOUND_RUBY=0 \
FOUND_PERL=0 \
FOUND_PYTHON=0
prefix="%{_prefix}"
[ -e "%{buildroot}%{_libdir}/libstfl.so.%{soname}" ] || {
pushd "%{buildroot}%{_libdir}/"
@@ -102,17 +93,14 @@ make DESTDIR=%{buildroot} install %{?_smp_mflags} \
}
%post -n libstfl%{soname} -p /sbin/ldconfig
%postun -n libstfl%{soname} -p /sbin/ldconfig
%files -n libstfl%{soname}
%defattr(-,root,root)
%doc COPYING README
%{_libdir}/libstfl.so.%{soname}
%{_libdir}/libstfl.so.%{soname}.*
%files -n libstfl-devel
%defattr(-,root,root)
%{_includedir}/stfl.h
%{_libdir}/libstfl.so
%{_libdir}/libstfl.a