finalcut/finalcut.spec.in

163 lines
4.9 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-09-20 04:59:04 +02:00
Name: @PACKAGE@
2015-09-20 05:47:10 +02:00
%define libname libfinal
%define libsoname %{libname}0
2018-09-20 04:59:04 +02:00
Version: @VERSION@
2015-09-20 05:47:10 +02:00
Release: %{buildno}
2017-11-04 07:03:53 +01:00
License: LGPL-3.0
Summary: The Final Cut
2015-09-20 05:47:10 +02:00
Url: https://github.com/gansm/finalcut/
Group: System/Libraries
Source: finalcut-%{version}.tar.gz
BuildRequires: automake
BuildRequires: libtool
BuildRequires: gcc-c++
BuildRequires: glib2-devel
BuildRequires: ncurses-devel
%if 0%{?suse_version}
%if 0%{?suse_version} > 1130
BuildRequires: gpm-devel
%else
BuildRequires: gpm
%endif
2015-09-22 04:18:20 +02:00
%else
2015-09-20 05:47:10 +02:00
BuildRequires: gpm-devel
%endif
# Additionally required for tool operations
Requires: xxd
Requires: sed
Requires: tr
Requires: grep
Requires: gzip
Requires: bdftopcf
2015-09-22 04:18:20 +02:00
Requires: autoconf-archive
2015-09-20 05:47:10 +02:00
Requires: gcc-c++
Prefix: %_prefix
BuildRoot: %{_tmppath}/finalcut-%{version}-build
%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 devel
Group: Development/Libraries/C and C++
Summary: Development files for the final cut library
Requires: %{libname} = %{version}
Requires: %{name} = %{version}
%description devel
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 %{libsoname}
Group: System/Libraries
Summary: Console widget toolkit
Provides: %{libname} = %{version}
Provides: %{name} = %{version}
%description -n %{libsoname}
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 static
Group: System/Libraries
Summary: Console widget toolkit
%description static
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
%setup -q -n %{name}-%{version}
%build
autoreconf -v --install --force
%define warn_flags -Wall -Wextra -Wpedantic
export CPPFLAGS="$RPM_OPT_FLAGS %{warn_flags}"
%configure
make %{?_smp_mflags} V=1
2015-09-22 04:18:20 +02:00
2015-09-20 05:47:10 +02:00
%install
make install libdir=${RPM_BUILD_ROOT}%{_libdir}/ \
includedir=${RPM_BUILD_ROOT}%{_includedir} \
bindir=${RPM_BUILD_ROOT}%{_bindir} \
2018-11-25 04:48:57 +01:00
docdir=${RPM_BUILD_ROOT}%{_docdir}/finalcut/
mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/finalcut/examples
cp -p examples/.libs/* ${RPM_BUILD_ROOT}%{_libdir}/finalcut/examples
cp -p examples/*.cpp ${RPM_BUILD_ROOT}%{_libdir}/finalcut/examples
cp -p examples/Makefile.clang ${RPM_BUILD_ROOT}%{_libdir}/finalcut/examples
cp -p examples/Makefile.gcc ${RPM_BUILD_ROOT}%{_libdir}/finalcut/examples
2015-09-20 05:47:10 +02:00
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libfinal.la
%post -n %{libsoname} -p /sbin/ldconfig
%postun -n %{libsoname} -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files devel
%defattr(-,root,root)
%dir %{_docdir}/finalcut
2018-11-25 04:48:57 +01:00
%dir %{_libdir}/finalcut
%dir %{_libdir}/finalcut/examples
2015-09-20 05:47:10 +02:00
%{_docdir}/finalcut/*
2018-11-25 04:48:57 +01:00
%{_libdir}/pkgconfig/*
2015-09-20 05:47:10 +02:00
%{_libdir}/%{libname}.so
2018-11-25 04:48:57 +01:00
%{_libdir}/finalcut/*
2015-09-20 05:47:10 +02:00
%{_includedir}/*
%files -n %{libsoname}
%defattr(-,root,root)
%_libdir/%{libname}.so.*
%files static
%defattr (-,root,root)
%{_libdir}/%{libname}.a
%changelog
2018-11-25 04:48:57 +01:00
* Sun Nov 25 2018 Markus Gans <guru.mail@muenster.de> - 0.5.0-1
- Release (version 0.5.0)
2017-11-04 07:03:53 +01:00
* Sat Nov 04 2017 Markus Gans <guru.mail@muenster.de> - 0.4.0-1
- Release (version 0.4.0)
2018-11-25 04:48:57 +01:00
* Sun Nov 27 2016 Markus Gans <guru.mail@muenster.de> - 0.3.0-1
2016-11-27 19:16:52 +01:00
- Release (version 0.3.0)
2015-12-19 20:51:04 +01:00
* Sat Dec 19 2015 Markus Gans <guru.mail@muenster.de> - 0.2.0-1
- Release (version 0.2.0)
2015-09-24 00:41:43 +02:00
* Fri Sep 18 2015 Markus Gans <guru.mail@muenster.de> - 0.1.1-1
2015-09-20 05:47:10 +02:00
- Initial Release (version 0.1.1)