2011-01-25 10:10:47 +01:00
|
|
|
#
|
|
|
|
# spec file for package libstfl
|
|
|
|
#
|
2019-09-15 09:05:23 +02:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-01-25 10:10:47 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-09-15 09:05:23 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-01-25 10:10:47 +01:00
|
|
|
#
|
|
|
|
|
2008-08-21 08:07:02 +02:00
|
|
|
|
2018-02-21 07:31:21 +01:00
|
|
|
%define sover 0
|
2011-01-05 01:24:46 +01:00
|
|
|
Name: libstfl
|
2018-02-20 11:50:24 +01:00
|
|
|
Version: 0.24
|
2011-09-16 15:47:10 +02:00
|
|
|
Release: 0
|
2011-01-05 01:24:46 +01:00
|
|
|
Summary: Structured Terminal Forms Library
|
2019-09-15 09:05:23 +02:00
|
|
|
License: LGPL-3.0-or-later
|
2018-02-21 07:31:21 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2019-09-15 09:05:23 +02:00
|
|
|
URL: http://www.clifford.at/stfl/
|
2011-01-05 01:24:46 +01:00
|
|
|
Source: http://www.clifford.at/stfl/stfl-%{version}.tar.gz
|
|
|
|
Source99: libstfl-rpmlintrc
|
|
|
|
Patch1: stfl-optflags.patch
|
2012-01-31 11:34:51 +01:00
|
|
|
BuildRequires: ncurses-devel
|
2018-02-20 11:50:24 +01:00
|
|
|
BuildRequires: pkgconfig
|
2008-08-21 08:07:02 +02:00
|
|
|
|
|
|
|
%description
|
2018-02-21 07:31:21 +01:00
|
|
|
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.
|
2010-06-25 01:03:41 +02:00
|
|
|
|
2018-02-21 07:31:21 +01:00
|
|
|
%package -n libstfl%{sover}
|
2011-01-05 01:24:46 +01:00
|
|
|
Summary: Structured Terminal Forms Library
|
|
|
|
Group: System/Libraries
|
2010-06-25 01:03:41 +02:00
|
|
|
|
2018-02-21 07:31:21 +01:00
|
|
|
%description -n libstfl%{sover}
|
2008-08-21 08:07:02 +02:00
|
|
|
STFL is a library which implements a curses-based widget set for text
|
2018-02-21 07:31:21 +01:00
|
|
|
terminals. The STFL API can be used from C, SPL, Python, Perl and Ruby.
|
2008-08-21 08:07:02 +02:00
|
|
|
|
|
|
|
A special language (the Structured Terminal Forms Language) is used to
|
2018-02-21 07:31:21 +01:00
|
|
|
describe STFL GUIs.
|
2008-08-21 08:07:02 +02:00
|
|
|
|
|
|
|
%package -n libstfl-devel
|
2011-01-05 01:24:46 +01:00
|
|
|
Summary: Structured Terminal Forms Library
|
|
|
|
Group: Development/Libraries/C and C++
|
2018-02-21 07:31:21 +01:00
|
|
|
Requires: libstfl%{sover} = %{version}
|
2015-05-13 18:37:29 +02:00
|
|
|
Requires: ncurses-devel
|
2008-08-21 08:07:02 +02:00
|
|
|
|
|
|
|
%description -n libstfl-devel
|
|
|
|
STFL is a library which implements a curses-based widget set for text
|
2018-02-21 07:31:21 +01:00
|
|
|
terminals. The STFL API can be used from C, SPL, Python, Perl and Ruby.
|
|
|
|
The API has only 14 function calls and generic SWIG bindings exist
|
|
|
|
already for porting STFL to other scripting languages.
|
2008-08-21 08:07:02 +02:00
|
|
|
|
|
|
|
A special language (the Structured Terminal Forms Language) is used to
|
2018-02-21 07:31:21 +01:00
|
|
|
describe STFL GUIs.
|
2008-08-21 08:07:02 +02:00
|
|
|
|
|
|
|
%prep
|
2024-03-01 14:22:17 +01:00
|
|
|
%autosetup -p0 -n "stfl-%{version}"
|
2008-08-21 08:07:02 +02:00
|
|
|
|
|
|
|
%build
|
2019-09-15 09:05:23 +02:00
|
|
|
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
2012-01-31 11:34:51 +01:00
|
|
|
make %{?_smp_mflags} \
|
2015-05-13 18:37:29 +02:00
|
|
|
CC="gcc" \
|
2018-02-20 11:50:24 +01:00
|
|
|
OPTFLAGS="%{optflags}"\
|
2011-01-05 01:24:46 +01:00
|
|
|
FOUND_SPL=0 \
|
|
|
|
FOUND_SWIG=0 \
|
|
|
|
FOUND_RUBY=0 \
|
|
|
|
FOUND_PERL=0 \
|
|
|
|
FOUND_PYTHON=0
|
2011-01-25 10:10:47 +01:00
|
|
|
|
2008-08-21 08:07:02 +02:00
|
|
|
%install
|
2018-02-20 11:50:24 +01:00
|
|
|
%make_install \
|
2011-01-05 01:24:46 +01:00
|
|
|
libdir="%{_lib}" \
|
2018-02-20 11:50:24 +01:00
|
|
|
prefix="%{_prefix}"
|
2008-08-21 08:07:02 +02:00
|
|
|
|
2018-02-21 07:31:21 +01:00
|
|
|
[ -e "%{buildroot}%{_libdir}/libstfl.so.%{sover}" ] || {
|
2010-06-25 01:03:41 +02:00
|
|
|
pushd "%{buildroot}%{_libdir}/"
|
2018-02-21 07:31:21 +01:00
|
|
|
ln -s libstfl.so.*.* libstfl.so.%{sover}
|
2010-06-25 01:03:41 +02:00
|
|
|
popd
|
|
|
|
}
|
|
|
|
|
2018-02-21 07:31:21 +01:00
|
|
|
%post -n libstfl%{sover} -p /sbin/ldconfig
|
|
|
|
%postun -n libstfl%{sover} -p /sbin/ldconfig
|
2010-06-25 01:03:41 +02:00
|
|
|
|
2018-02-21 07:31:21 +01:00
|
|
|
%files -n libstfl%{sover}
|
2019-09-15 09:05:23 +02:00
|
|
|
%license COPYING
|
|
|
|
%doc README
|
2018-02-21 07:31:21 +01:00
|
|
|
%{_libdir}/libstfl.so.%{sover}
|
|
|
|
%{_libdir}/libstfl.so.%{sover}.*
|
2010-06-25 01:03:41 +02:00
|
|
|
|
|
|
|
%files -n libstfl-devel
|
2008-08-21 08:07:02 +02:00
|
|
|
%{_includedir}/stfl.h
|
2010-06-25 01:03:41 +02:00
|
|
|
%{_libdir}/libstfl.so
|
2008-08-21 08:07:02 +02:00
|
|
|
%{_libdir}/libstfl.a
|
2009-12-10 01:42:49 +01:00
|
|
|
%{_libdir}/pkgconfig/stfl.pc
|
2008-08-21 08:07:02 +02:00
|
|
|
|
|
|
|
%changelog
|