diff --git a/cadabra2-gtk.appdata.xml b/cadabra2-gtk.appdata.xml new file mode 100644 index 0000000..fbfaede --- /dev/null +++ b/cadabra2-gtk.appdata.xml @@ -0,0 +1,27 @@ + + + cadabra2-gtk.desktop + CC0-1.0 + Cadabra 2 + GPL-3.0+ + A computer algebra system for problems in field theory + http://cadabra.science/ + +

Cadabra2 is a computer algebra system (CAS) designed specifically for +the solution of problems encountered in field theory.

+

It has been designed specifically for the solution of problems encountered +in quantum and classical field theory. It has extensive functionality +for tensor computer algebra, tensor polynomial simplification +including multi-term symmetries, fermions and anti-commuting +variables, Clifford algebras and Fierz transformations, implicit +coordinate dependence, multiple index types and many more. The input +format is a subset of TeX.

+
+ + + https://cadabra.science/static/images/screenshot.png + Gamma matrix algebra in a Cadabra2 notebook + + + info@cadabra.science +
diff --git a/cadabra2.changes b/cadabra2.changes index 49846a8..32ccad5 100644 --- a/cadabra2.changes +++ b/cadabra2.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jul 20 22:52:55 UTC 2017 - badshah400@gmail.com + +- Add an appdata file and install it to /usr/share/metainfo; + BuildRequires on appstream-glib added. + ------------------------------------------------------------------- Sun Jun 25 11:26:09 UTC 2017 - badshah400@gmail.com diff --git a/cadabra2.spec b/cadabra2.spec index 83303cf..6194d7d 100644 --- a/cadabra2.spec +++ b/cadabra2.spec @@ -25,10 +25,12 @@ Group: Productivity/Scientific/Math Url: http://cadabra.science/ Source0: https://github.com/kpeeters/cadabra2/archive/%{version}.tar.gz Source1: %{name}-rpmlintrc +Source2: %{name}-gtk.appdata.xml # PATCH-FIX-UPSTREAM cadabra2-cmake-error.patch badshah400@gmail.com -- Cmake needs to call "execute_process" instead of "execute"; fixes build failures Patch0: cadabra2-cmake-error.patch # PATCH-FIX-UPSTREAM cadabra2-include-functional-header.patch badshah400@gmail.com -- Explicitly include the header in core/Functional.hh to fix building on openSUSE > 1320; apply without conditionals as it doesn't hurt to have this generally Patch1: cadabra2-include-functional-header.patch +BuildRequires: appstream-glib BuildRequires: cmake BuildRequires: doxygen BuildRequires: gcc-c++ @@ -192,6 +194,9 @@ popd %suse_update_desktop_file cadabra2-gtk +# INSTALL APPDATA TO /usr/share/metainfo +install -D -m0644 %{S:2} %{buildroot}%{_datadir}/metainfo/%{name}-gtk.appdata.xml + %post %{_bindir}/texhash /sbin/ldconfig @@ -233,6 +238,8 @@ popd %{_bindir}/%{name}-gtk %{_datadir}/icons/hicolor/*/apps/cadabra2-gtk.* %{_datadir}/applications/cadabra2-gtk.desktop +%dir %{_datadir}/metainfo +%{_datadir}/metainfo/*.appdata.xml %files examples %defattr(-,root,root)