KDE Applications 18.12.0 Beta (last try; fix any other issue post acceptance)

OBS-URL: https://build.opensuse.org/package/show/KDE:Applications/rocs?expand=0&rev=92
This commit is contained in:
Wolfgang Bauer
2018-11-24 23:45:36 +00:00
committed by Git OBS Bridge
parent 72162e4681
commit 521635bc8b
4 changed files with 48 additions and 26 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package rocs
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -12,29 +12,23 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%bcond_without lang
Name: rocs
Version: 18.08.3
Release: 0
%define kf5_version 5.26.0
# Latest stable Applications (e.g. 17.08 in KA, but 17.11.80 in KUA)
%{!?_kapp_version: %define _kapp_version %(echo %{version}| awk -F. '{print $1"."$2}')}
%bcond_without lang
Name: rocs
Version: 18.11.80
Release: 0
Summary: Graph Theory IDE
License: GPL-3.0+
License: GPL-3.0-or-later
Group: Amusements/Teaching/Mathematics
Url: http://edu.kde.org
URL: http://edu.kde.org
Source0: %{name}-%{version}.tar.xz
Patch1: fix_build_leap.diff
%if 0%{?suse_version} > 1325
BuildRequires: libboost_headers-devel
%else
BuildRequires: boost-devel
%endif
BuildRequires: extra-cmake-modules >= 1.7.0
BuildRequires: fdupes
BuildRequires: grantlee5-devel
@@ -66,10 +60,14 @@ BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5XmlPatterns)
Obsoletes: %{name}5 < %{version}
Provides: %{name}5 = %{version}
%if 0%{?suse_version} > 1325
BuildRequires: libboost_headers-devel
%else
BuildRequires: boost-devel
%endif
%if %{with lang}
Recommends: %{name}-lang
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Rocs is a Graph Theory IDE for helping professors to show the results
@@ -121,7 +119,7 @@ export RPM_OPT_FLAGS="%{optflags} -mminimal-toc"
%kf5_makeinstall -C build
%if %{with lang}
%find_lang %{name} --with-man --all-name
%kf5_find_htmldocs
%{kf5_find_htmldocs}
%endif
%suse_update_desktop_file org.kde.%{name} Math
%fdupes -s %{buildroot}
@@ -130,8 +128,8 @@ export RPM_OPT_FLAGS="%{optflags} -mminimal-toc"
%postun -n librocsgraphtheory0 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc ChangeLog README COPYING*
%license COPYING*
%doc ChangeLog README
%doc %lang(en) %{_kf5_htmldir}/en/rocs/
%dir %{_kf5_appstreamdir}
%{_kf5_applicationsdir}/org.kde.rocs.desktop
@@ -144,19 +142,18 @@ export RPM_OPT_FLAGS="%{optflags} -mminimal-toc"
%{_kf5_sharedir}/rocs/
%files devel
%defattr(-,root,root)
%doc COPYING* TESTING
%license COPYING*
%doc TESTING
%{_kf5_prefix}/include/rocs/
%{_kf5_libdir}/librocsgraphtheory.so
%files -n librocsgraphtheory0
%defattr(-,root,root)
%doc COPYING*
%license COPYING*
%{_kf5_libdir}/librocsgraphtheory.so.*
%if %{with lang}
%files lang -f %{name}.lang
%doc COPYING*
%license COPYING*
%endif
%changelog