kst/kst.spec

117 lines
3.3 KiB
RPMSpec

Name: kst
Version: 2.1.0
Release: 1mamba
Summary: An application used to display scientific data
Group: Graphical Desktop/Applications/Scientific
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://kst-plot.kde.org/
Source: https://invent.kde.org/graphics/kst-plot.git/master/kst-plot-%{version}.tar.bz2
Patch0: kst-2.0.8.20200427git-libhdf5-1.10.5.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libQt5Core
BuildRequires: libQt5Gui
BuildRequires: libQt5Network
BuildRequires: libQt5PrintSupport
BuildRequires: libQt5Svg-devel
BuildRequires: libQt5Widgets
BuildRequires: libQt5Xml
BuildRequires: libcfitsio-devel
BuildRequires: libgcc
BuildRequires: libgsl-devel
BuildRequires: libmatio-devel
BuildRequires: libstdc++6-devel
BuildRequires: libtiff-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
BuildRequires: libmatio-devel >= 1.5.27
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description
An application used to display scientific data.
%package -n lib%{name}
Group: System/Libraries
Summary: Shared libraries for %{name}
%description -n lib%{name}
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}.
%debug_package
%prep
%setup -q -n kst-plot-%{version}
#-D -T
#:<< _EOF
%patch 0 -p1
%build
%cmake -d build \
-DCMAKE_CXX_FLAGS="%{optflags} -std=c++17" \
-DGSL_INCLUDEDIR=/usr/include \
-Dkst_qt4=OFF \
-Dkst_qt5=ON \
-Dkst_install_prefix=%{_prefix}
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/kst2
%{_datadir}/applications/kst2.desktop
%{_datadir}/icons/hicolor/*/apps/kst.png
%{_datadir}/icons/hicolor/*/mimetypes/application-x-kst.png
%{_datadir}/icons/hicolor/scalable/apps/kst.svg
%{_datadir}/icons/hicolor/scalable/mimetypes/application-x-kst.svg
%{_datadir}/mime/packages/x-kst.xml
%{_mandir}/man1/kst2.1*
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libkst2core.so.*
%{_libdir}/libkst2math.so.*
%{_libdir}/libkst2widgets.so.*
%dir %{_libdir}/kst2
%dir %{_libdir}/kst2/plugins
%{_libdir}/kst2/plugins/libkst2_*.so
%doc AUTHORS COPYING
%files -n lib%{name}-devel
%defattr(-,root,root)
%{_libdir}/libkst2app.a
%{_libdir}/libkst2core.so
%{_libdir}/libkst2math.so
%{_libdir}/libkst2widgets.so
%doc ChangeLog NEWS README README.kstScript README.md
%changelog
* Tue Nov 05 2024 Automatic Build System <autodist@openmamba.org> 2.1.0-1mamba
- automatic version update by autodist
* Sun May 16 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.8.20210516git-1mamba
- update to 2.0.8.20210516git
* Mon Apr 27 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.8.20200427git-1mamba
- update to 2.0.8.20200427git
* Thu Dec 07 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.8.20171207git-1mamba
- package created using the webbuild interface