2011-07-25 12:42:03 +02:00
|
|
|
#
|
2011-07-25 12:42:16 +02:00
|
|
|
# spec file for package rocs
|
2011-07-25 12:42:03 +02:00
|
|
|
#
|
2013-01-07 11:07:32 +01:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-07-25 12:42:03 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2012-03-13 09:39:24 +01:00
|
|
|
|
2011-07-25 12:42:03 +02:00
|
|
|
Name: rocs
|
2013-07-08 07:32:20 +02:00
|
|
|
Version: 4.10.90
|
2011-12-08 12:13:45 +01:00
|
|
|
Release: 0
|
2011-09-19 18:03:17 +02:00
|
|
|
Summary: Graph Theory IDE
|
2012-02-03 10:26:29 +01:00
|
|
|
License: GPL-3.0+
|
2011-07-27 18:03:08 +02:00
|
|
|
Group: Amusements/Teaching/Mathematics
|
2011-12-08 12:13:45 +01:00
|
|
|
Url: http://edu.kde.org
|
2012-04-12 09:49:24 +02:00
|
|
|
Source0: %{name}-%{version}.tar.xz
|
2011-07-25 12:42:03 +02:00
|
|
|
Patch1: desktop-files.diff
|
2012-02-03 10:26:29 +01:00
|
|
|
BuildRequires: boost-devel
|
2011-07-27 18:03:08 +02:00
|
|
|
BuildRequires: fdupes
|
2013-07-08 07:32:20 +02:00
|
|
|
BuildRequires: grantlee-devel
|
2013-01-07 11:07:32 +01:00
|
|
|
BuildRequires: libkde4-devel
|
2012-04-12 09:49:24 +02:00
|
|
|
BuildRequires: xz
|
2011-07-25 12:42:03 +02:00
|
|
|
Provides: kde4-rocs = 4.3.0
|
|
|
|
Obsoletes: kde4-rocs < 4.3.0
|
2011-07-27 18:03:08 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%kde4_runtime_requires
|
2011-07-25 12:42:03 +02:00
|
|
|
|
|
|
|
%description
|
2013-01-07 11:07:32 +01:00
|
|
|
A Graph Theory IDE for professors and students.
|
2011-07-25 12:42:03 +02:00
|
|
|
|
2012-02-03 10:26:29 +01:00
|
|
|
%package -n librocslib4
|
|
|
|
Summary: Development files for rocs
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n librocslib4
|
2013-01-07 11:07:32 +01:00
|
|
|
A Graph Theory IDE for professors and students.
|
2012-02-03 10:26:29 +01:00
|
|
|
|
2011-09-19 18:03:17 +02:00
|
|
|
%package devel
|
|
|
|
Summary: Development files for rocs
|
|
|
|
Group: Development/Libraries/KDE
|
2012-02-03 10:26:29 +01:00
|
|
|
Requires: librocslib4 = %{version}
|
2011-09-19 18:03:17 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package provides development files and headers needed
|
2013-01-07 11:07:32 +01:00
|
|
|
to build software using rocs.
|
2011-09-19 18:03:17 +02:00
|
|
|
|
2011-07-25 12:42:03 +02:00
|
|
|
%prep
|
2011-09-19 18:03:17 +02:00
|
|
|
%setup -q
|
2012-12-07 14:50:20 +01:00
|
|
|
%patch1
|
2011-07-25 12:42:03 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
%ifarch ppc ppc64
|
2011-07-27 18:03:08 +02:00
|
|
|
export RPM_OPT_FLAGS="%{optflags} -mminimal-toc"
|
2011-07-25 12:42:03 +02:00
|
|
|
%endif
|
2012-02-03 10:26:29 +01:00
|
|
|
%cmake_kde4 -d build
|
|
|
|
%make_jobs
|
2011-07-25 12:42:03 +02:00
|
|
|
|
|
|
|
%install
|
2013-01-07 11:07:32 +01:00
|
|
|
%kde4_makeinstall -C build
|
2013-01-24 10:39:30 +01:00
|
|
|
%suse_update_desktop_file %{name} Math
|
2012-02-03 10:26:29 +01:00
|
|
|
%kde_post_install
|
|
|
|
%fdupes -s %{buildroot}
|
2011-10-06 16:45:38 +02:00
|
|
|
|
2013-01-07 11:07:32 +01:00
|
|
|
%post -n librocslib4 -p /sbin/ldconfig
|
2011-07-25 12:42:03 +02:00
|
|
|
|
2013-01-07 11:07:32 +01:00
|
|
|
%postun -n librocslib4 -p /sbin/ldconfig
|
2011-07-25 12:42:03 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2013-01-07 11:07:32 +01:00
|
|
|
%doc ChangeLog NEWS README
|
2012-12-07 14:50:20 +01:00
|
|
|
%config %{_kde4_configdir}/rocs.knsrc
|
|
|
|
%config %{_kde4_configkcfgdir}/rocs.kcfg
|
|
|
|
%doc %lang(en) %{_kde4_htmldir}/en/rocs/
|
2011-09-19 18:03:17 +02:00
|
|
|
%{_kde4_applicationsdir}/rocs.desktop
|
|
|
|
%{_kde4_appsdir}/rocs/
|
2012-09-11 07:59:33 +02:00
|
|
|
%{_kde4_appsdir}/rocs_rootedtree/
|
2011-09-19 18:03:17 +02:00
|
|
|
%{_kde4_bindir}/rocs
|
|
|
|
%{_kde4_modulesdir}/rocs_*
|
2013-05-16 18:14:55 +02:00
|
|
|
%{_kde4_iconsdir}/hicolor/*/apps/%{name}.png
|
2011-09-19 18:03:17 +02:00
|
|
|
%{_kde4_servicesdir}/rocs_*
|
|
|
|
%{_kde4_servicetypesdir}/*.desktop
|
2011-07-25 12:42:03 +02:00
|
|
|
|
2013-01-07 11:07:32 +01:00
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc TESTING
|
|
|
|
%{_includedir}/rocs/
|
|
|
|
%{_kde4_libdir}/librocscore.so
|
|
|
|
%{_kde4_libdir}/librocsvisualeditor.so
|
|
|
|
|
|
|
|
%files -n librocslib4
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING*
|
|
|
|
%{_kde4_libdir}/librocscore.so.*
|
|
|
|
%{_kde4_libdir}/librocsvisualeditor.so.*
|
|
|
|
|
2011-07-25 12:42:03 +02:00
|
|
|
%changelog
|