157 lines
5.5 KiB
RPMSpec
157 lines
5.5 KiB
RPMSpec
#
|
|
# spec file for package finalcut
|
|
#
|
|
# Copyright (c) 2019 by Markus Gans
|
|
#
|
|
|
|
%define sover 0
|
|
Name: @PACKAGE@
|
|
Version: @VERSION@
|
|
Release: %{buildno}
|
|
Summary: Console widget library
|
|
License: LGPL-3.0-or-later
|
|
Group: Development/Libraries/C and C++
|
|
URL: https://github.com/gansm/finalcut/
|
|
Source: https://github.com/gansm/finalcut/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
BuildRequires: autoconf
|
|
BuildRequires: autoconf-archive
|
|
BuildRequires: automake
|
|
BuildRequires: gcc-c++ >= 5.1
|
|
BuildRequires: glib2-devel
|
|
BuildRequires: gpm-devel
|
|
BuildRequires: gdb
|
|
BuildRequires: libtool
|
|
BuildRequires: ncurses-devel
|
|
|
|
%description
|
|
FINAL CUT is a class library and widget toolkit with full mouse
|
|
support for creating a text-based user interface. The library supports
|
|
the programmer to develop an application for the text console. It allows
|
|
the simultaneous handling of multiple windows on the screen.
|
|
The C++ class design was inspired by the Qt framework. It provides
|
|
common controls like dialog windows, push buttons, check boxes,
|
|
radio buttons, input lines, list boxes, status bars and so on.
|
|
|
|
%package -n libfinal-devel
|
|
Summary: Development files for the FINAL CUT text widget library
|
|
Group: Development/Libraries/C and C++
|
|
Requires: libfinal%{sover} = %{version}
|
|
Requires: bdftopcf
|
|
Requires: coreutils
|
|
Requires: gcc-c++ >= 5.1
|
|
Requires: grep
|
|
Requires: gzip
|
|
Requires: sed
|
|
Requires: vim
|
|
Provides: libfinal-devel = %{version}
|
|
Obsoletes: libfinal-devel < %{version}
|
|
Recommends: libfinal-examples = %{version}
|
|
|
|
%description -n libfinal-devel
|
|
FINAL CUT is a class library and widget toolkit with full mouse
|
|
support for creating a text-based user interface. The library supports
|
|
the programmer to develop an application for the text console. It allows
|
|
the simultaneous handling of multiple windows on the screen.
|
|
The C++ class design was inspired by the Qt framework. It provides
|
|
common controls like dialog windows, push buttons, check boxes,
|
|
radio buttons, input lines, list boxes, status bars and so on.
|
|
|
|
%package -n libfinal-examples
|
|
Summary: Example files for the FINAL CUT library
|
|
Group: Development/Languages/C and C++
|
|
BuildArch: noarch
|
|
Provides: libfinal-examples = %{version}
|
|
Obsoletes: libfinal-examples < %{version}
|
|
|
|
%description -n libfinal-examples
|
|
FINAL CUT is a class library and widget toolkit with full mouse
|
|
support for creating a text-based user interface. The library supports
|
|
the programmer to develop an application for the text console. It allows
|
|
the simultaneous handling of multiple windows on the screen.
|
|
The C++ class design was inspired by the Qt framework. It provides
|
|
common controls like dialog windows, push buttons, check boxes,
|
|
radio buttons, input lines, list boxes, status bars and so on.
|
|
|
|
%package -n libfinal%{sover}
|
|
Summary: Console widget toolkit
|
|
Group: System/Libraries
|
|
|
|
%description -n libfinal%{sover}
|
|
FINAL CUT is a class library and widget toolkit with full mouse
|
|
support for creating a text-based user interface. The library supports
|
|
the programmer to develop an application for the text console. It allows
|
|
the simultaneous handling of multiple windows on the screen.
|
|
The C++ class design was inspired by the Qt framework. It provides
|
|
common controls like dialog windows, push buttons, check boxes,
|
|
radio buttons, input lines, list boxes, status bars and so on.
|
|
|
|
%package -n libfinal-static
|
|
Summary: Console widget toolkit
|
|
Group: System/Libraries
|
|
|
|
%description -n libfinal-static
|
|
FINAL CUT is a class library and widget toolkit with full mouse
|
|
support for creating a text-based user interface. The library supports
|
|
the programmer to develop an application for the text console. It allows
|
|
the simultaneous handling of multiple windows on the screen.
|
|
The C++ class design was inspired by the Qt framework. It provides
|
|
common controls like dialog windows, push buttons, check boxes,
|
|
radio buttons, input lines, list boxes, status bars and so on.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
autoreconf -vif
|
|
export CPPFLAGS="%{optflags} -Wall -Wextra -Wpedantic"
|
|
%ifnarch %ix86 x86_64
|
|
export CPPFLAGS="$CPPFLAGS -Wno-error=unused-parameter"
|
|
%endif
|
|
%configure
|
|
make %{?_smp_mflags} V=1
|
|
|
|
%install
|
|
make install libdir=%{buildroot}%{_libdir}/ \
|
|
includedir=%{buildroot}%{_includedir} \
|
|
bindir=%{buildroot}%{_bindir} \
|
|
docdir=%{buildroot}%{_docdir}/%{name}/ \
|
|
fontdir=%{buildroot}%{_miscfontsdir}/%{name}/
|
|
mkdir -p %{buildroot}%{_docdir}/%{name}/examples
|
|
mkdir -p %{buildroot}%{_miscfontsdir}/%{name}/
|
|
cp -p examples/*.cpp %{buildroot}%{_docdir}/%{name}/examples
|
|
cp -p examples/Makefile.clang %{buildroot}%{_docdir}/%{name}/examples
|
|
cp -p examples/Makefile.gcc %{buildroot}%{_docdir}/%{name}/examples
|
|
rm -f %{buildroot}%{_libdir}/libfinal.la %{buildroot}%{_libdir}/%{name}/examples
|
|
rm %{buildroot}%{_docdir}/%{name}/ChangeLog %{buildroot}%{_docdir}/%{name}/COPYING.LESSER
|
|
|
|
%clean
|
|
%{__rm} -rf %{buildroot}
|
|
|
|
%post -n libfinal%{sover} -p /sbin/ldconfig
|
|
%postun -n libfinal%{sover} -p /sbin/ldconfig
|
|
|
|
%files -n libfinal-devel
|
|
%if 0%{?sle_version} > 120200 || 0%{?suse_version} > 1500
|
|
%license COPYING.LESSER
|
|
%else
|
|
%doc COPYING.LESSER
|
|
%endif
|
|
%doc ChangeLog README.md
|
|
%exclude %{_docdir}/%{name}/examples
|
|
%{_docdir}/%{name}
|
|
%{_libdir}/libfinal.so
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
%{_includedir}/final
|
|
|
|
%files -n libfinal-examples
|
|
%{_docdir}/%{name}/examples
|
|
|
|
%files -n libfinal%{sover}
|
|
%{_libdir}/libfinal.so.*
|
|
|
|
%files -n libfinal-static
|
|
%defattr (-,root,root)
|
|
%{_libdir}/libfinal.a
|
|
|
|
%changelog
|