kst/kst.spec

110 lines
3.0 KiB
RPMSpec

Name: kst
Version: 2.0.8.20200427git
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/
## GITSOURCE https://github.com/Kst-plot/kst.git master
Source: https://github.com/Kst-plot/kst.git/master/kst-%{version}.tar.bz2
Patch0: kst-2.0.8.20200427git-libhdf5-1.10.5.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: ldconfig
BuildRequires: libcfitsio-devel
BuildRequires: libgcc
BuildRequires: libgsl-devel
BuildRequires: libhdf5-devel
BuildRequires: libmatio-devel
BuildRequires: libqt5-devel
BuildRequires: libstdc++6-devel
BuildRequires: libtiff-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
BuildRequires: libmatio-devel >= 1.5.16
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%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
%patch0 -p1
%build
%cmake -d build \
-Dkst_qt4=OFF \
-Dkst_qt5=ON \
-Dkst_install_prefix=%{_prefix}
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall -C build
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%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
* 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