113 lines
3.6 KiB
RPMSpec
113 lines
3.6 KiB
RPMSpec
%define gitcommit %(echo %version | cut -d+ -f2 | cut -d. -f2)
|
|
Name: jkqtplotter
|
|
Version: 5.0.0+20251003git.d243218
|
|
Release: 1mamba
|
|
Summary: An extensive Qt Plotter framework
|
|
Group: Applications/Graphics
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: http://jkriege2.github.io/JKQtPlotter/index.html
|
|
Source: https://github.com/jkriege2/JKQtPlotter.git/master@%{gitcommit}/JKQtPlotter-%{version}.tar.bz2
|
|
License: LGPL
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: libQt6Core
|
|
BuildRequires: libQt6Gui
|
|
BuildRequires: libQt6OpenGL
|
|
BuildRequires: libQt6PrintSupport
|
|
BuildRequires: libQt6Test
|
|
BuildRequires: libQt6Widgets
|
|
BuildRequires: libQt6Xml
|
|
BuildRequires: libgcc
|
|
BuildRequires: libglvnd-devel
|
|
BuildRequires: libstdc++6-devel
|
|
BuildRequires: qt6-qtsvg-devel
|
|
## AUTOBUILDREQ-END
|
|
BuildRequires: cmake
|
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
%description
|
|
JKQTPlotter is an extensive Qt Plotter framework (including a feature-richt plotter widget, a speed-optimized, but limited variant and a LaTeX equation renderer!), written fully in C/C++ and without external dependencies.
|
|
|
|
%package -n lib%{name}
|
|
Group: System/Libraries
|
|
Summary: An extensive Qt Plotter framework
|
|
|
|
%description -n lib%{name}
|
|
JKQTPlotter is an extensive Qt Plotter framework (including a feature-richt plotter widget, a speed-optimized, but limited variant and a LaTeX equation renderer!), written fully in C/C++ and without external dependencies.
|
|
This package contains shared libraries for %{name}.
|
|
|
|
%package -n lib%{name}-devel
|
|
Group: Development/Libraries
|
|
Summary: Development files for %{name}
|
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
%description -n lib%{name}-devel
|
|
This package contains libraries and header files for developing applications that use %{name}.
|
|
|
|
%prep
|
|
%setup -q -n JKQtPlotter-%{version}
|
|
sed -i "s|DESTINATION lib/cmake|DESTINATION %{_lib}/cmake|" lib/*/CMakeLists.txt
|
|
|
|
%build
|
|
%cmake \
|
|
-DCMAKE_INSTALL_LIBDIR=%{_libdir} \
|
|
-DJKQtPlotter_BUILD_EXAMPLES=OFF
|
|
|
|
%cmake_build
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%cmake_install
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_bindir}/JKQTPCSSParser_test
|
|
%{_bindir}/JKQTPDataCache_benchmark
|
|
%{_bindir}/JKQTPDataCache_test
|
|
%{_bindir}/JKQTPStringTools_test
|
|
%{_bindir}/jkqtmathtext_render
|
|
%{_bindir}/jkqtplotter_doc_imagegenerator
|
|
%{_bindir}/jkqtpstatisticstools_test
|
|
%{_bindir}/test_jkqtpdatastore
|
|
|
|
%files -n lib%{name}
|
|
%defattr(-,root,root)
|
|
%{_libdir}/libJKQTCommon6_Debug.so.*
|
|
%{_libdir}/libJKQTFastPlotter6_Debug.so.*
|
|
%{_libdir}/libJKQTMath6_Debug.so.*
|
|
%{_libdir}/libJKQTMathText6_Debug.so.*
|
|
%{_libdir}/libJKQTPlotter6_Debug.so.*
|
|
%doc LICENSE
|
|
|
|
%files -n lib%{name}-devel
|
|
%defattr(-,root,root)
|
|
%dir %{_includedir}/jkqtcommon
|
|
%{_includedir}/jkqtcommon/*
|
|
%dir %{_includedir}/jkqtfastplotter
|
|
%{_includedir}/jkqtfastplotter/*
|
|
%dir %{_includedir}/jkqtmath
|
|
%{_includedir}/jkqtmath/*
|
|
%dir %{_includedir}/jkqtmathtext
|
|
%{_includedir}/jkqtmathtext/*
|
|
%dir %{_includedir}/jkqtplotter
|
|
%{_includedir}/jkqtplotter/*
|
|
%{_libdir}/libJKQTCommon6_Debug.so
|
|
%{_libdir}/libJKQTFastPlotter6_Debug.so
|
|
%{_libdir}/libJKQTMath6_Debug.so
|
|
%{_libdir}/libJKQTMathText6_Debug.so
|
|
%{_libdir}/libJKQTPlotter6_Debug.so
|
|
%dir %{_libdir}/cmake/JKQTPlotter6
|
|
%{_libdir}/cmake/JKQTPlotter6/JKQT*.cmake
|
|
%dir %{_docdir}/JKQTPlotter
|
|
%{_docdir}/JKQTPlotter/*
|
|
%doc README.md
|
|
|
|
%changelog
|
|
* Fri Nov 14 2025 Silvan Calarco <silvan.calarco@mambasoft.it> 5.0.0+20251003git.d243218-1mamba
|
|
- package created using the webbuild interface
|