Accepting request 656114 from home:TheBlackCat:branches:science

- Fix building on Leap 42.3
- Update to version 1.5.0.21
- Split xcas gui into own subpackage

OBS-URL: https://build.opensuse.org/request/show/656114
OBS-URL: https://build.opensuse.org/package/show/science/giac?expand=0&rev=4
This commit is contained in:
Alexei Podvalsky 2018-12-09 14:06:23 +00:00 committed by Git OBS Bridge
parent 22c870014a
commit 2c18ab8d06
4 changed files with 106 additions and 47 deletions

View File

@ -1,3 +1,14 @@
-------------------------------------------------------------------
Fri Dec 7 17:47:12 UTC 2018 - Todd R <toddrme2178@gmail.com>
- Fix building on Leap 42.3
-------------------------------------------------------------------
Wed Dec 5 18:40:16 UTC 2018 - Todd R <toddrme2178@gmail.com>
- Update to version 1.5.0.21
- Split xcas gui into own subpackage
-------------------------------------------------------------------
Fri Oct 20 00:07:00 UTC 2017 - avvissu@yandex.by

136
giac.spec
View File

@ -1,7 +1,7 @@
#
# spec file for package giac
#
# Copyright (c) 2015 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,20 +12,22 @@
# 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/
#
%define soname 0
%bcond_with cocoa
Name: giac
Version: 1.4.9
%define tarver 1.5.0-21
Version: %( echo %{tarver} | sed 's/-/./' )
%define mainver %( echo %{tarver} | sed 's/-.*//' )
%define soname 0
Release: 0
Summary: Computer algebra system
License: GPL-3.0+
License: GPL-3.0-or-later
Group: Productivity/Scientific/Math
Url: http://www-fourier.ujf-grenoble.fr/~parisse/giac.html
Source: http://www-fourier.ujf-grenoble.fr/~parisse/giac/giac_stable.tgz
URL: http://www-fourier.ujf-grenoble.fr/~parisse/giac.html
Source: http://www-fourier.ujf-grenoble.fr/~parisse/debian/dists/stable/main/source/giac_%{tarver}.tar.gz
BuildRequires: blas-devel
BuildRequires: fdupes
BuildRequires: fltk-devel
@ -44,15 +46,14 @@ BuildRequires: readline-devel
BuildRequires: shared-mime-info
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(fontconfig)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(gsl)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(libpng12)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xft)
BuildRequires: pkgconfig(xinerama)
Recommends: giac-doc
Requires(post): %install_info_prereq
Requires(preun): %install_info_prereq
%if !%{with cocoa}
@ -64,7 +65,18 @@ Free computer algebra system, compatible with existing CAS, as a C++
library with various user interfaces (GUI with formal spreadsheet and exact
dynamic geometry, on-line, readline, emacs, texmacs...).
%package -n lib%{name}%{soname}
%package -n xcas
Summary: Computer algebra interface
Group: System/Libraries
Requires: %{name} = %{version}
%description -n xcas
Xcas is an interface to perform computer algebra, function graphs,
interactive geometry (2-d and 3-d), spreadsheet and statistics
programmation. It may be used as a replacement for graphic calculators
for example on netbooks.
%package -n lib%{name}%{soname}
Summary: The core library for %{name}
Group: System/Libraries
@ -76,8 +88,8 @@ dynamic geometry, on-line, readline, emacs, texmacs...).
%package devel
Summary: Development files for %{name}
Group: Development/Libraries/C and C++
Requires: lib%{name}%{soname} = %{version}
Requires: fltk-devel
Requires: lib%{name}%{soname} = %{version}
Requires: mpfi-devel
Requires: mpfr-devel
Requires: ntl-devel
@ -90,6 +102,17 @@ Computer algebra system.
This package contains header files and libraries needed to develop
application that use %{name}.
%package devel-static
Summary: Static development files for %{name}
Group: Development/Libraries/C and C++
Requires: %{name}-devel = %{version}
%description devel-static
Computer algebra system.
This package contains static libraries needed to develop
application that use %{name}.
%package doc
Summary: Documentation for %{name}
Group: Documentation/HTML
@ -104,7 +127,7 @@ usage of %{name}.
%lang_package
%prep
%setup -q -n %{name}-%{version}
%setup -q -n %{name}-%{mainver}
# remove all hidden files
find . -type f -iname '.*' -exec rm -f {} \;
@ -130,6 +153,22 @@ install -Dm 0644 debian/%{name}.sharedmimeinfo %{buildroot}%{_datadir}/mime/pack
find %{buildroot}%{_datadir}/%{name}/doc -type f -name \*akefile* -exec rm -f {} \;
# remove zero-length
find %{buildroot}%{_datadir}/%{name}/doc -type f -empty -exec rm -f {} \;
# fix non-executable-script
chmod a+x %{buildroot}%{_datadir}/%{name}/doc/pari/gphtml
# fix script-without-shebang
chmod a-x %{buildroot}%{_datadir}/%{name}/examples/Exemples/*/*.xws
chmod a-x %{buildroot}%{_datadir}/%{name}/examples/geo/*.cas
chmod a-x %{buildroot}%{_datadir}/%{name}/examples/lewisw/fermat_gcd_1var
chmod a-x %{buildroot}%{_datadir}/%{name}/examples/lewisw/fermat_gcd_mod_1var
# fix spurious-executable-perm
chmod a-x %{buildroot}%{_datadir}/%{name}/examples/tortue/*.cxx
# put docs in correct directory
if [ "%{_docdir}" != "%{_datadir}/doc" ]; then
mkdir -p %{buildroot}%{_docdir}
mv %{buildroot}%{_datadir}/doc/%{name} %{buildroot}%{_docdir}
fi
rm %{buildroot}%{_docdir}/giac/Makefile.am
%find_lang %{name}
@ -157,55 +196,64 @@ fi
%postun -n lib%{name}%{soname} -p /sbin/ldconfig
%files
%defattr(0644,root,root,0755)
%doc AUTHORS COPYING
%attr(0755,root,root) %{_bindir}/icas
%attr(0755,root,root) %{_bindir}/pgiac
%attr(0755,root,root) %{_bindir}/xcas
%attr(0755,root,root) %{_bindir}/cas_help
###it's a symbolic link###
%license COPYING
%doc AUTHORS
%{_docdir}/giac/README
%{_bindir}/giac
%{_bindir}/xcasnew
%{_bindir}/hevea2mml
%{_bindir}/icas
%{_bindir}/pgiac
%{_bindir}/cas_help
%{_bindir}/en_cas_help
%{_bindir}/es_cas_help
%{_bindir}/fr_cas_help
##########################
%{_datadir}/%{name}
%{_datadir}/icons/hicolor/*/apps/*xcas.png
%{_datadir}/icons/hicolor/*/mimetypes/*xcas.png
%{_datadir}/pixmaps/xcas.xpm
%{_datadir}/applications/xcas.desktop
%{_datadir}/mime/packages/%{name}.xml
%{_infodir}/%{name}_es.info%{ext_info}
%{_infodir}/%{name}_us.info%{ext_info}
%{_datadir}/giac/
%{_datadir}/mime/packages/giac.xml
%{_infodir}/giac_es.info%{?ext_info}
%{_infodir}/giac_us.info%{?ext_info}
%{_mandir}/man1/cas_help.1%{ext_info}
%{_mandir}/man1/fr_cas_help.1%{ext_info}
%{_mandir}/man1/giac.1%{ext_info}
%{_mandir}/man1/icas.1%{ext_info}
%{_mandir}/man1/pgiac.1%{ext_info}
%exclude %{_datadir}/giac/doc/
%exclude %{_datadir}/giac/aide_cas
%exclude %{_datadir}/giac/examples/
%exclude %{_docdir}/giac/index.html
%exclude %{_docdir}/giac/*/
%files -n xcas
%license COPYING
%{_bindir}/xcas
%{_bindir}/xcasnew
%{_mandir}/man1/xcas.1%{ext_info}
%exclude %{_datadir}/%{name}/doc
%exclude %{_datadir}/%{name}/aide_cas
%exclude %{_datadir}/%{name}/examples
%{_datadir}/icons/hicolor/*/apps/*xcas.png
%{_datadir}/icons/hicolor/*/mimetypes/*xcas.png
%{_datadir}/pixmaps/xcas.xpm
%{_datadir}/applications/xcas.desktop
%files -n lib%{name}%{soname}
%defattr(0644,root,root,0755)
%{_libdir}/lib%{name}.so.*
%license COPYING
%{_libdir}/libgiac.so.*
%files devel
%defattr(0644,root,root,0755)
%{_includedir}/%{name}
%{_libdir}/lib%{name}.so
%{_datadir}/%{name}/examples
%exclude %{_libdir}/lib%{name}.la
%license COPYING
%{_includedir}/giac/
%{_libdir}/libgiac.so
%files devel-static
%license COPYING
%{_libdir}/libgiac.la
%files doc
%defattr(0644,root,root,0755)
%{_datadir}/%{name}/doc
%{_datadir}/%{name}/aide_cas
%exclude %{_datadir}/doc
%license COPYING
%{_datadir}/giac/doc/
%{_datadir}/giac/aide_cas
%{_datadir}/giac/examples/
%{_docdir}/giac/index.html
%{_docdir}/giac/*/
%files lang -f %{name}.lang
%defattr(0644,root,root,0755)
%license COPYING
%changelog

3
giac_1.5.0-21.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:82aeffa1382d8875bb2ec1e33393331e398d8d97a2d29503ff5dcc0a768433ad
size 73892235

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f5ebf3ea36d42b1a352a1127848bcf0e65855140c9f8cb8387568992292d629f
size 52889219