diff --git a/README.md b/README.md index 95850a7..c3b493d 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # kst +An application used to display scientific data. + diff --git a/kst.spec b/kst.spec new file mode 100644 index 0000000..3efc40a --- /dev/null +++ b/kst.spec @@ -0,0 +1,100 @@ +Name: kst +Version: 2.0.8.20171207git +Release: 1mamba +Summary: An application used to display scientific data +Group: Graphical Desktop/Applications/Scientific +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +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 +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libcfitsio-devel +BuildRequires: libgcc +BuildRequires: libgsl-devel +BuildRequires: libhdf5-devel +BuildRequires: libmatio-devel +BuildRequires: libqt4-devel +BuildRequires: libstdc++6-devel +BuildRequires: libtiff-devel +BuildRequires: libz-devel +## AUTOBUILDREQ-END +BuildRequires: cmake +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 + +%build +%cmake -d build \ + -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 +* Thu Dec 07 2017 Silvan Calarco 2.0.8.20171207git-1mamba +- package created using the webbuild interface