finalcut/finalcut.spec.in

149 lines
5.2 KiB
RPMSpec
Raw Normal View History

2015-09-20 05:47:10 +02:00
#
# spec file for package finalcut
#
2018-09-20 04:59:04 +02:00
# Copyright (c) 2018 by Markus Gans
2015-09-20 05:47:10 +02:00
#
2018-11-29 23:31:01 +01:00
%define sover 0
Name: @PACKAGE@
Version: @VERSION@
Release: %{buildno}
2018-11-29 23:31:01 +01:00
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: automake
BuildRequires: gcc-c++
2015-09-20 05:47:10 +02:00
BuildRequires: glib2-devel
2018-11-29 23:31:01 +01:00
BuildRequires: gpm-devel
BuildRequires: libtool
2015-09-20 05:47:10 +02:00
BuildRequires: ncurses-devel
2018-11-29 23:31:01 +01:00
%description
The 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
2018-11-29 23:31:01 +01:00
Requires: coreutils
Requires: gcc-c++
Requires: grep
Requires: gzip
Requires: sed
2018-11-29 23:31:01 +01:00
Requires: vim
Provides: libfinal-devel = %{version}
Recommends: libfinal-examples = %{version}
2015-09-20 05:47:10 +02:00
2018-11-29 23:31:01 +01:00
%description -n libfinal-devel
2015-09-20 05:47:10 +02:00
The 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.
2018-11-29 23:31:01 +01:00
%package -n libfinal-examples
Summary: Example files for The Final Cut library
Group: Development/Languages/C and C++
BuildArch: noarch
2015-09-20 05:47:10 +02:00
2018-11-29 23:31:01 +01:00
%description -n libfinal-examples
2015-09-20 05:47:10 +02:00
The 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.
2018-11-29 23:31:01 +01:00
%package -n libfinal%{sover}
Summary: Console widget toolkit
Group: System/Libraries
2015-09-20 05:47:10 +02:00
2018-11-29 23:31:01 +01:00
%description -n libfinal%{sover}
2015-09-20 05:47:10 +02:00
The 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.
2018-11-29 23:31:01 +01:00
%package -n libfinal-static
Summary: Console widget toolkit
Group: System/Libraries
2015-09-20 05:47:10 +02:00
2018-11-29 23:31:01 +01:00
%description -n libfinal-static
2015-09-20 05:47:10 +02:00
The 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
2018-11-29 23:31:01 +01:00
%setup -q
2015-09-20 05:47:10 +02:00
%build
2018-11-29 23:31:01 +01:00
autoreconf -vif
export CPPFLAGS="%{optflags} -Wall -Wextra -Wpedantic"
%ifnarch %ix86 x86_64
export CPPFLAGS="$CPPFLAGS -Wno-error=unused-parameter"
%endif
2015-09-20 05:47:10 +02:00
%configure
make %{?_smp_mflags} V=1
%install
2018-11-29 23:31:01 +01:00
make install libdir=%{buildroot}%{_libdir}/ \
includedir=%{buildroot}%{_includedir} \
bindir=%{buildroot}%{_bindir} \
docdir=%{buildroot}%{_docdir}/%{name}/
mkdir -p %{buildroot}%{_docdir}/%{name}/examples
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
2015-09-20 05:47:10 +02:00
%clean
2018-11-29 23:31:01 +01:00
%{__rm} -rf %{buildroot}
2015-09-20 05:47:10 +02:00
2018-11-29 23:31:01 +01:00
%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
2018-11-25 04:48:57 +01:00
2018-11-29 23:31:01 +01:00
%files -n libfinal-examples
%{_docdir}/%{name}/examples
2017-11-04 07:03:53 +01:00
2018-11-29 23:31:01 +01:00
%files -n libfinal%{sover}
%{_libdir}/libfinal.so.*
2016-11-27 19:16:52 +01:00
2018-11-29 23:31:01 +01:00
%files -n libfinal-static
%defattr (-,root,root)
%{_libdir}/libfinal.a
2015-12-19 20:51:04 +01:00
2018-11-29 23:31:01 +01:00
%changelog