glaxnimate/glaxnimate.spec

113 lines
3.2 KiB
RPMSpec

Name: glaxnimate
Version: 0.5.1
Release: 2mamba
Summary: A simple vector graphics animation program
Group: Graphical Desktop/Applications/Graphics
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://glaxnimate.mattbas.org/
Source: https://gitlab.com/mattbas/glaxnimate.git/%{version}/glaxnimate-%{version}.tar.bz2
Patch0: glaxnimate-0.5.1-qt6.patch
Patch1: glaxnimate-0.5.1-cmake-install-libdir.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libarchive-devel
BuildRequires: libavcodec-ffmpeg-devel
BuildRequires: libavformat-ffmpeg-devel
BuildRequires: libavutil-ffmpeg-devel
BuildRequires: libgcc
BuildRequires: libglvnd-devel
BuildRequires: libpotrace-devel
BuildRequires: libpython310-devel
BuildRequires: libstdc++6-devel
BuildRequires: libswscale-ffmpeg-devel
BuildRequires: libz-devel
BuildRequires: qt6-qtbase-devel
BuildRequires: qt6-qtsvg-devel
BuildRequires: qt6-qttools-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
%description
A simple vector graphics animation program.
%package -n libQtColorWidgets-Qt6
Group: System/Libraries
Summary: Shared libraries for %{name}
%description -n libQtColorWidgets-Qt6
A user-friendly color dialog and several color-related widgets for Qt6.
This package contains shared libraries for %{name}.
%package -n libQtColorWidgets-Qt6-devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: libQtColorWidgets-Qt6 = %{?epoch:%epoch:}%{version}-%{release}
%description -n libQtColorWidgets-Qt6-devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q
#-D -T
#:<< _EOF
%patch0 -p1
%ifarch x86_64 aarch64
%patch1 -p1
%endif
%build
#:<< _EOF
%cmake -d build
%make
#make translations VERBOSE=1
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
%makeinstall -C build/external/Qt-Color-Widgets
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n libQtColorWidgets-Qt6 -p /sbin/ldconfig
%postun -n libQtColorWidgets-Qt6 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%{_bindir}/glaxnimate
%{_datadir}/applications/glaxnimate.desktop
%dir %{_datadir}/glaxnimate
%dir %{_datadir}/glaxnimate/glaxnimate
%{_datadir}/glaxnimate/glaxnimate/*
%{_datadir}/icons/hicolor/*/apps/glaxnimate.png
%{_datadir}/icons/hicolor/scalable/apps/glaxnimate.svg
%doc COPYING
%files -n libQtColorWidgets-Qt6
%defattr(-,root,root)
%{_libdir}/libQtColorWidgets.so.*
%doc external/Qt-Color-Widgets/COPYING
%files -n libQtColorWidgets-Qt6-devel
%defattr(-,root,root)
%dir %{_includedir}/QtColorWidgets
%{_includedir}/QtColorWidgets/*
%dir %{_libdir}/cmake/QtColorWidgets
%{_libdir}/cmake/QtColorWidgets/QtColorWidgets*.cmake
%{_libdir}/cmake/QtColorWidgets/qtcolorwidgets-*.cmake
%{_libdir}/libQtColorWidgets.so
%{_libdir}/pkgconfig/QtColorWidgets.pc
#%doc README.md
%changelog
* Mon Sep 12 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 0.5.1-2mamba
- provide external libQtColorWidgets.so.2
* Mon Sep 12 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 0.5.1-1mamba
- package created using the webbuild interface