finalcut/finalcut.spec.in

192 lines
6.8 KiB
RPMSpec
Raw Normal View History

2015-09-20 05:47:10 +02:00
#
# spec file for package finalcut
#
2020-02-23 20:57:51 +01:00
# Copyright (c) 2020 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: autoconf
BuildRequires: autoconf-archive
BuildRequires: automake
2020-02-23 20:57:51 +01:00
BuildRequires: fontpackages-devel
BuildRequires: gcc-c++ >= 5.1
2020-02-23 20:57:51 +01:00
BuildRequires: gdb
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
2018-12-22 15:33:23 +01:00
FINAL CUT is a class library and widget toolkit with full mouse
2018-11-29 23:31:01 +01:00
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
2018-12-22 15:33:23 +01:00
Summary: Development files for the FINAL CUT text widget library
2018-11-29 23:31:01 +01:00
Group: Development/Libraries/C and C++
Requires: bdftopcf
2018-11-29 23:31:01 +01:00
Requires: coreutils
Requires: gcc-c++ >= 5.1
2020-02-23 20:57:51 +01:00
Requires: gpm-devel
Requires: grep
Requires: gzip
2020-02-23 20:57:51 +01:00
Requires: libfinal%{sover} = %{version}
Requires: ncurses-devel
Requires: sed
2018-11-29 23:31:01 +01:00
Requires: vim
Provides: libfinal-devel = %{version}
Obsoletes: libfinal-devel < %{version}
2018-11-29 23:31:01 +01:00
Recommends: libfinal-examples = %{version}
2015-09-20 05:47:10 +02:00
2018-11-29 23:31:01 +01:00
%description -n libfinal-devel
2018-12-22 15:33:23 +01:00
FINAL CUT is a class library and widget toolkit with full mouse
2015-09-20 05:47:10 +02:00
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
2018-12-22 15:33:23 +01:00
Summary: Example files for the FINAL CUT library
2018-11-29 23:31:01 +01:00
Group: Development/Languages/C and C++
Provides: libfinal-examples = %{version}
Obsoletes: libfinal-examples < %{version}
2015-09-20 05:47:10 +02:00
2018-11-29 23:31:01 +01:00
%description -n libfinal-examples
2018-12-22 15:33:23 +01:00
FINAL CUT is a class library and widget toolkit with full mouse
2015-09-20 05:47:10 +02:00
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}
2018-12-22 15:33:23 +01:00
FINAL CUT is a class library and widget toolkit with full mouse
2015-09-20 05:47:10 +02:00
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.
2020-02-23 20:57:51 +01:00
%package bitmap-fonts
Summary: X11 bitmap font for FINAL CUT
Group: System/X11/Fonts
Requires(pre): fontconfig
# install the fonts only if we have X11 fonts anyways
Supplements: packageand(libfinal%{sover}:xorg-x11-fonts-core)
BuildArch: noarch
%description bitmap-fonts
Special X11 bitmap font used by FINAL CUT to display graphic objects.
2015-09-20 05:47:10 +02:00
%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
%configure --disable-static
2015-09-20 05:47:10 +02:00
make %{?_smp_mflags} V=1
%install
2020-02-23 20:57:51 +01:00
%if 0%{?fedora} || 0%{?rhel} || 0%{?rhl} || 0%{?fc#} || 0%{?el#}
%global _miscfontsdir %{_datadir}/fonts
%endif
2018-11-29 23:31:01 +01:00
make install libdir=%{buildroot}%{_libdir}/ \
includedir=%{buildroot}%{_includedir} \
bindir=%{buildroot}%{_bindir} \
docdir=%{buildroot}%{_docdir}/%{name}/ \
fontdir=%{buildroot}%{_miscfontsdir}/%{name}/
mkdir -p %{buildroot}%{_miscfontsdir}/%{name}/
2020-02-23 20:57:51 +01:00
mkdir -p %{buildroot}%{_docdir}/%{name}
mkdir -p %{buildroot}%{_libdir}/%{name}/examples
mkdir -p %{buildroot}/etc/fonts/conf.d
mkdir -p %{buildroot}/usr/share/fontconfig/conf.avail
cp -p examples/.libs/* %{buildroot}%{_libdir}/%{name}/examples
cp -p examples/*.cpp %{buildroot}%{_libdir}/%{name}/examples
cp -p examples/Makefile.clang %{buildroot}%{_libdir}/%{name}/examples
cp -p examples/Makefile.gcc %{buildroot}%{_libdir}/%{name}/examples
cp -p fonts/40-finalcut-newfont.conf %{buildroot}/usr/share/fontconfig/conf.avail
ln -s /usr/share/fontconfig/conf.avail/40-finalcut-newfont.conf %{buildroot}/etc/fonts/conf.d/40-finalcut-newfont.conf
rm -f %{buildroot}%{_libdir}/libfinal.la
2018-11-29 23:31:01 +01:00
rm %{buildroot}%{_docdir}/%{name}/ChangeLog %{buildroot}%{_docdir}/%{name}/COPYING.LESSER
2020-02-23 20:57:51 +01:00
# Add config for X font path
mkdir -p %{buildroot}%{_datadir}/X11/xorg.conf.d
cat <<EOF > %{buildroot}%{_datadir}/X11/xorg.conf.d/80-finalcut-bitmap-fonts.conf
Section "Files"
FontPath "%{_miscfontsdir}/finalcut:unscaled"
EndSection
EOF
# make sure we own all generated files
for i in .fonts-config-timestamp encodings.dir fonts.dir fonts.scale; do
> %{buildroot}%{_miscfontsdir}/finalcut/$i
done
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
2020-02-23 20:57:51 +01:00
%reconfigure_fonts_scriptlets -n %{name}-bitmap-fonts
2018-11-29 23:31:01 +01:00
%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
2020-02-23 20:57:51 +01:00
%{_libdir}/%{name}
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
2020-02-23 20:57:51 +01:00
%files bitmap-fonts
%dir %{_miscfontsdir}
%dir %{_miscfontsdir}/finalcut
%{_miscfontsdir}/finalcut/*.gz
%{_miscfontsdir}/finalcut/fonts.alias
%ghost %{_miscfontsdir}/finalcut/fonts.dir
%ghost %{_miscfontsdir}/finalcut/fonts.scale
%ghost %{_miscfontsdir}/finalcut/encodings.dir
%ghost %{_miscfontsdir}/finalcut/.fonts-config-timestamp
%dir /etc/fonts/conf.d/
%dir /usr/share/fontconfig/conf.avail
%dir %{_datadir}/X11
%dir %{_datadir}/X11/xorg.conf.d
%{_datadir}/X11/xorg.conf.d/80-finalcut-bitmap-fonts.conf
/etc/fonts/conf.d/40-finalcut-newfont.conf
/usr/share/fontconfig/conf.avail/40-finalcut-newfont.conf
2018-11-29 23:31:01 +01:00
%changelog