packaging update
This commit is contained in:
parent
c3847b6b05
commit
65781d6095
|
@ -1,4 +1,4 @@
|
||||||
examples/.libs/* usr/lib/finalcut/examples
|
examples/.libs/* usr/share/doc/libfinal-examples/examples
|
||||||
examples/*.cpp usr/lib/finalcut/examples
|
examples/*.cpp usr/share/doc/libfinal-examples/examples
|
||||||
examples/Makefile.clang usr/lib/finalcut/examples
|
examples/Makefile.clang usr/share/doc/libfinal-examples/examples
|
||||||
examples/Makefile.gcc usr/lib/finalcut/examples
|
examples/Makefile.gcc usr/share/doc/libfinal-examples/examples
|
||||||
|
|
|
@ -1,2 +1 @@
|
||||||
usr/lib/finalcut/examples/Makefile.gcc usr/lib/finalcut/examples/Makefile
|
usr/share/doc/libfinal-examples/examples/Makefile.gcc usr/share/doc/libfinal-examples/examples/Makefile
|
||||||
usr/lib/finalcut/examples usr/share/doc/libfinal-examples/examples
|
|
||||||
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Nov 25 00:03:36 UTC 2018 - Markus Gans <guru.mail@muenster.de>
|
||||||
|
- Release (version 0.5.0)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Nov 04 07:53:19 UTC 2017 - Markus Gans <guru.mail@muenster.de>
|
||||||
|
- Release (version 0.4.0)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Nov 27 14:00:41 UTC 2016 - Markus Gans <guru.mail@muenster.de>
|
||||||
|
- Release (version 0.3.0)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Dec 19 21:01:48 UTC 2015 - Markus Gans <guru.mail@muenster.de>
|
||||||
|
- Release (version 0.2.0)
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Sep 18 22:35:57 UTC 2015 - Markus Gans <guru.mail@muenster.de>
|
||||||
|
- Initial Release (version 0.1.1)
|
166
finalcut.spec.in
166
finalcut.spec.in
|
@ -4,39 +4,21 @@
|
||||||
# Copyright (c) 2018 by Markus Gans
|
# Copyright (c) 2018 by Markus Gans
|
||||||
#
|
#
|
||||||
|
|
||||||
%define libname libfinal
|
%define sover 0
|
||||||
%define libsoname %{libname}0
|
|
||||||
Name: @PACKAGE@
|
Name: @PACKAGE@
|
||||||
Version: @VERSION@
|
Version: @VERSION@
|
||||||
Release: %{buildno}
|
Release: %{buildno}
|
||||||
Summary: The Final Cut
|
Summary: Console widget library
|
||||||
License: LGPL-3.0-only
|
License: LGPL-3.0-or-later
|
||||||
Group: System/Libraries
|
Group: Development/Libraries/C and C++
|
||||||
Url: https://github.com/gansm/finalcut/
|
URL: https://github.com/gansm/finalcut/
|
||||||
Source: finalcut-%{version}.tar.gz
|
Source: https://github.com/gansm/finalcut/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: glib2-devel
|
BuildRequires: glib2-devel
|
||||||
|
BuildRequires: gpm-devel
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
BuildRequires: ncurses-devel
|
BuildRequires: ncurses-devel
|
||||||
Requires: autoconf-archive
|
|
||||||
Requires: bdftopcf
|
|
||||||
Requires: gcc-c++
|
|
||||||
Requires: grep
|
|
||||||
Requires: gzip
|
|
||||||
Requires: sed
|
|
||||||
Requires: tr
|
|
||||||
# Additionally required for tool operations
|
|
||||||
Requires: xxd
|
|
||||||
%if 0%{?suse_version}
|
|
||||||
%if 0%{?suse_version} > 1130
|
|
||||||
BuildRequires: gpm-devel
|
|
||||||
%else
|
|
||||||
BuildRequires: gpm
|
|
||||||
%endif
|
|
||||||
%else
|
|
||||||
BuildRequires: gpm-devel
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The Final Cut is a class library and widget toolkit with full mouse
|
The Final Cut is a class library and widget toolkit with full mouse
|
||||||
|
@ -47,13 +29,21 @@ The C++ class design was inspired by the Qt framework. It provides
|
||||||
common controls like dialog windows, push buttons, check boxes,
|
common controls like dialog windows, push buttons, check boxes,
|
||||||
radio buttons, input lines, list boxes, status bars and so on.
|
radio buttons, input lines, list boxes, status bars and so on.
|
||||||
|
|
||||||
%package devel
|
%package -n libfinal-devel
|
||||||
Summary: Development files for the final cut library
|
Summary: Development files for The Final Cut text widget library
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: %{libname} = %{version}
|
Requires: libfinal%{sover} = %{version}
|
||||||
Requires: %{name} = %{version}
|
Requires: bdftopcf
|
||||||
|
Requires: coreutils
|
||||||
|
Requires: gcc-c++
|
||||||
|
Requires: grep
|
||||||
|
Requires: gzip
|
||||||
|
Requires: sed
|
||||||
|
Requires: vim
|
||||||
|
Provides: libfinal-devel = %{version}
|
||||||
|
Recommends: libfinal-examples = %{version}
|
||||||
|
|
||||||
%description devel
|
%description -n libfinal-devel
|
||||||
The Final Cut is a class library and widget toolkit with full mouse
|
The Final Cut is a class library and widget toolkit with full mouse
|
||||||
support for creating a text-based user interface. The library supports
|
support for creating a text-based user interface. The library supports
|
||||||
the programmer to develop an application for the text console. It allows
|
the programmer to develop an application for the text console. It allows
|
||||||
|
@ -62,13 +52,12 @@ The C++ class design was inspired by the Qt framework. It provides
|
||||||
common controls like dialog windows, push buttons, check boxes,
|
common controls like dialog windows, push buttons, check boxes,
|
||||||
radio buttons, input lines, list boxes, status bars and so on.
|
radio buttons, input lines, list boxes, status bars and so on.
|
||||||
|
|
||||||
%package -n %{libsoname}
|
%package -n libfinal-examples
|
||||||
Summary: Console widget toolkit
|
Summary: Example files for The Final Cut library
|
||||||
Group: System/Libraries
|
Group: Development/Languages/C and C++
|
||||||
Provides: %{libname} = %{version}
|
BuildArch: noarch
|
||||||
Provides: %{name} = %{version}
|
|
||||||
|
|
||||||
%description -n %{libsoname}
|
%description -n libfinal-examples
|
||||||
The Final Cut is a class library and widget toolkit with full mouse
|
The Final Cut is a class library and widget toolkit with full mouse
|
||||||
support for creating a text-based user interface. The library supports
|
support for creating a text-based user interface. The library supports
|
||||||
the programmer to develop an application for the text console. It allows
|
the programmer to develop an application for the text console. It allows
|
||||||
|
@ -77,11 +66,24 @@ The C++ class design was inspired by the Qt framework. It provides
|
||||||
common controls like dialog windows, push buttons, check boxes,
|
common controls like dialog windows, push buttons, check boxes,
|
||||||
radio buttons, input lines, list boxes, status bars and so on.
|
radio buttons, input lines, list boxes, status bars and so on.
|
||||||
|
|
||||||
%package static
|
%package -n libfinal%{sover}
|
||||||
Summary: Console widget toolkit
|
Summary: Console widget toolkit
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
|
||||||
%description static
|
%description -n libfinal%{sover}
|
||||||
|
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-static
|
||||||
|
Summary: Console widget toolkit
|
||||||
|
Group: System/Libraries
|
||||||
|
|
||||||
|
%description -n libfinal-static
|
||||||
The Final Cut is a class library and widget toolkit with full mouse
|
The Final Cut is a class library and widget toolkit with full mouse
|
||||||
support for creating a text-based user interface. The library supports
|
support for creating a text-based user interface. The library supports
|
||||||
the programmer to develop an application for the text console. It allows
|
the programmer to develop an application for the text console. It allows
|
||||||
|
@ -91,66 +93,56 @@ common controls like dialog windows, push buttons, check boxes,
|
||||||
radio buttons, input lines, list boxes, status bars and so on.
|
radio buttons, input lines, list boxes, status bars and so on.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
autoreconf -v --install --force
|
autoreconf -vif
|
||||||
%define warn_flags -Wall -Wextra -Wpedantic
|
export CPPFLAGS="%{optflags} -Wall -Wextra -Wpedantic"
|
||||||
export CPPFLAGS="$RPM_OPT_FLAGS %{warn_flags}"
|
%ifnarch %ix86 x86_64
|
||||||
|
export CPPFLAGS="$CPPFLAGS -Wno-error=unused-parameter"
|
||||||
|
%endif
|
||||||
%configure
|
%configure
|
||||||
make %{?_smp_mflags} V=1
|
make %{?_smp_mflags} V=1
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install libdir=${RPM_BUILD_ROOT}%{_libdir}/ \
|
make install libdir=%{buildroot}%{_libdir}/ \
|
||||||
includedir=${RPM_BUILD_ROOT}%{_includedir} \
|
includedir=%{buildroot}%{_includedir} \
|
||||||
bindir=${RPM_BUILD_ROOT}%{_bindir} \
|
bindir=%{buildroot}%{_bindir} \
|
||||||
docdir=${RPM_BUILD_ROOT}%{_docdir}/finalcut/
|
docdir=%{buildroot}%{_docdir}/%{name}/
|
||||||
mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/finalcut/examples
|
mkdir -p %{buildroot}%{_docdir}/%{name}/examples
|
||||||
cp -p examples/.libs/* ${RPM_BUILD_ROOT}%{_libdir}/finalcut/examples
|
cp -p examples/*.cpp %{buildroot}%{_docdir}/%{name}/examples
|
||||||
cp -p examples/*.cpp ${RPM_BUILD_ROOT}%{_libdir}/finalcut/examples
|
cp -p examples/Makefile.clang %{buildroot}%{_docdir}/%{name}/examples
|
||||||
cp -p examples/Makefile.clang ${RPM_BUILD_ROOT}%{_libdir}/finalcut/examples
|
cp -p examples/Makefile.gcc %{buildroot}%{_docdir}/%{name}/examples
|
||||||
cp -p examples/Makefile.gcc ${RPM_BUILD_ROOT}%{_libdir}/finalcut/examples
|
rm -f %{buildroot}%{_libdir}/libfinal.la %{buildroot}%{_libdir}/%{name}/examples
|
||||||
rm -f ${RPM_BUILD_ROOT}%{_libdir}/libfinal.la
|
rm %{buildroot}%{_docdir}/%{name}/ChangeLog %{buildroot}%{_docdir}/%{name}/COPYING.LESSER
|
||||||
|
|
||||||
%post -n %{libsoname} -p /sbin/ldconfig
|
|
||||||
|
|
||||||
%postun -n %{libsoname} -p /sbin/ldconfig
|
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
%{__rm} -rf %{buildroot}
|
||||||
|
|
||||||
%files devel
|
%post -n libfinal%{sover} -p /sbin/ldconfig
|
||||||
%defattr(-,root,root)
|
%postun -n libfinal%{sover} -p /sbin/ldconfig
|
||||||
%dir %{_docdir}/finalcut
|
|
||||||
%dir %{_libdir}/finalcut
|
|
||||||
%dir %{_libdir}/finalcut/examples
|
|
||||||
%{_docdir}/finalcut/*
|
|
||||||
%{_libdir}/pkgconfig/*
|
|
||||||
%{_libdir}/%{libname}.so
|
|
||||||
%{_libdir}/finalcut/*
|
|
||||||
%{_includedir}/*
|
|
||||||
|
|
||||||
%files -n %{libsoname}
|
%files -n libfinal-devel
|
||||||
%defattr(-,root,root)
|
%if 0%{?sle_version} > 120200 || 0%{?suse_version} > 1500
|
||||||
%_libdir/%{libname}.so.*
|
%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 static
|
%files -n libfinal-examples
|
||||||
|
%{_docdir}/%{name}/examples
|
||||||
|
|
||||||
|
%files -n libfinal%{sover}
|
||||||
|
%{_libdir}/libfinal.so.*
|
||||||
|
|
||||||
|
%files -n libfinal-static
|
||||||
%defattr (-,root,root)
|
%defattr (-,root,root)
|
||||||
%{_libdir}/%{libname}.a
|
%{_libdir}/libfinal.a
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Sun Nov 25 2018 Markus Gans <guru.mail@muenster.de> - 0.5.0-1
|
|
||||||
- Release (version 0.5.0)
|
|
||||||
|
|
||||||
* Sat Nov 04 2017 Markus Gans <guru.mail@muenster.de> - 0.4.0-1
|
|
||||||
- Release (version 0.4.0)
|
|
||||||
|
|
||||||
* Sun Nov 27 2016 Markus Gans <guru.mail@muenster.de> - 0.3.0-1
|
|
||||||
- Release (version 0.3.0)
|
|
||||||
|
|
||||||
* Sat Dec 19 2015 Markus Gans <guru.mail@muenster.de> - 0.2.0-1
|
|
||||||
- Release (version 0.2.0)
|
|
||||||
|
|
||||||
* Fri Sep 18 2015 Markus Gans <guru.mail@muenster.de> - 0.1.1-1
|
|
||||||
- Initial Release (version 0.1.1)
|
|
||||||
|
|
Loading…
Reference in New Issue