SHA256
6
0
forked from pool/libstfl
stfl/libstfl.spec
Adam Majer 37cdb642ba 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
2018-02-20 10:50:24 +00:00

110 lines
3.5 KiB
RPMSpec

#
# spec file for package libstfl
#
# 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
# 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/
#
%define soname 0
Name: libstfl
Version: 0.24
Release: 0
Summary: Structured Terminal Forms Library
License: LGPL-3.0+
Group: System/Libraries
Url: http://www.clifford.at/stfl/
Source: http://www.clifford.at/stfl/stfl-%{version}.tar.gz
Source99: libstfl-rpmlintrc
Patch1: stfl-optflags.patch
Patch2: stfl-ncurses.patch
BuildRequires: ncurses-devel
BuildRequires: pkgconfig
%description
.............................................................................
%package -n libstfl%{soname}
Summary: Structured Terminal Forms Library
Group: System/Libraries
%description -n libstfl%{soname}
STFL is a library which implements a curses-based widget set for text
terminals. The STFL API can be used from C, SPL, Python, Perl and Ruby. Since
the API is only 14 simple function calls big and there are already generic
SWIG bindings it is very easy to port STFL to additional scripting languages.
A special language (the Structured Terminal Forms Language) is used to
describe STFL GUIs. The language is designed to be easy and fast to write so
an application programmer does not need to spend ages fiddling around with the
GUI and can concentrate on the more interesting programming tasks.
%package -n libstfl-devel
Summary: Structured Terminal Forms Library
Group: Development/Libraries/C and C++
Requires: libstfl%{soname} = %{version}
Requires: ncurses-devel
%description -n libstfl-devel
STFL is a library which implements a curses-based widget set for text
terminals. The STFL API can be used from C, SPL, Python, Perl and Ruby. Since
the API is only 14 simple function calls big and there are already generic
SWIG bindings it is very easy to port STFL to additional scripting languages.
A special language (the Structured Terminal Forms Language) is used to
describe STFL GUIs. The language is designed to be easy and fast to write so
an application programmer does not need to spend ages fiddling around with the
GUI and can concentrate on the more interesting programming tasks.
%prep
%setup -q -n "stfl-%{version}"
%patch1
%patch2
%build
make %{?_smp_mflags} \
CC="gcc" \
OPTFLAGS="%{optflags}"\
FOUND_SPL=0 \
FOUND_SWIG=0 \
FOUND_RUBY=0 \
FOUND_PERL=0 \
FOUND_PYTHON=0
%install
%make_install \
libdir="%{_lib}" \
prefix="%{_prefix}"
[ -e "%{buildroot}%{_libdir}/libstfl.so.%{soname}" ] || {
pushd "%{buildroot}%{_libdir}/"
ln -s libstfl.so.*.* libstfl.so.%{soname}
popd
}
%post -n libstfl%{soname} -p /sbin/ldconfig
%postun -n libstfl%{soname} -p /sbin/ldconfig
%files -n libstfl%{soname}
%doc COPYING README
%{_libdir}/libstfl.so.%{soname}
%{_libdir}/libstfl.so.%{soname}.*
%files -n libstfl-devel
%{_includedir}/stfl.h
%{_libdir}/libstfl.so
%{_libdir}/libstfl.a
%{_libdir}/pkgconfig/stfl.pc
%changelog