114 lines
3.8 KiB
RPMSpec
114 lines
3.8 KiB
RPMSpec
|
Name: yacas
|
||
|
Version: 1.3.4
|
||
|
Release: 1mamba
|
||
|
Summary: A general purpose easy to use Computer Algebra System
|
||
|
Group: Graphical Desktop/Applications/Educational
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: Tiziana Ferro <tiziana.ferro@email.it>
|
||
|
URL: http://yacas.sourceforge.net
|
||
|
Source: http://yacas.sourceforge.net/backups/%{name}-%{version}.tar.gz
|
||
|
Source1: yacaslogo.xpm
|
||
|
License: GPL
|
||
|
Requires(post):%{__install_info}
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||
|
BuildRequires: gawk
|
||
|
|
||
|
%description
|
||
|
Yacas (Yet Another Computer Algebra System) is a small and highly flexible computer algebra language. The syntax uses a infix-operator
|
||
|
grammar parser. The distribution contains a small library of mathematical functions, but its real strength is in the language in
|
||
|
which you can easily write your own symbolic manipulation algorithms.
|
||
|
It supports arbitrary precision arithmetic.
|
||
|
|
||
|
%package devel
|
||
|
Summary: Devel package for %{name}
|
||
|
Group: Development/Libraries
|
||
|
Requires: %{name} = %{version}
|
||
|
|
||
|
%description devel
|
||
|
This package contains static libraries and header files need for development.
|
||
|
|
||
|
%prep
|
||
|
%setup -q
|
||
|
|
||
|
%build
|
||
|
%configure
|
||
|
%make
|
||
|
|
||
|
%install
|
||
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
||
|
%makeinstall DESTDIR="%{buildroot}"
|
||
|
|
||
|
mkdir -p %{buildroot}%{_datadir}/pixmaps
|
||
|
install -D -m 644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/yacaslogo.xpm
|
||
|
|
||
|
# Create the system menu entry
|
||
|
mkdir -p %{buildroot}%{_datadir}/applications
|
||
|
cat > %{buildroot}%{_datadir}/applications/yacas.desktop << EOF
|
||
|
[Desktop Entry]
|
||
|
Encoding=UTF-8
|
||
|
Name=Yacas
|
||
|
GenericName=Computer Algebra System
|
||
|
Comment=Yacas is a general purpose easy to use Computer Algebra System]=
|
||
|
Comment[it]=Yacas è un Computer Algebra System (CAS) in grado di eseguire calcoli numerici, simbolici, grafici e altre operazioni correlate.
|
||
|
Exec=yacas
|
||
|
Icon=yacaslogo.xpm
|
||
|
StartupNotify=true
|
||
|
Terminal=true
|
||
|
Type=Application
|
||
|
Categories=Education;Math;
|
||
|
EOF
|
||
|
|
||
|
# install documentation
|
||
|
%{__install} -d -m755 %buildroot/%{_defaultdocdir}/%{name}/{documentation,ps,pdf}
|
||
|
%{__install} -m644 AUTHORS COPYING ChangeLog INSTALL README* TODO %buildroot/%{_defaultdocdir}/%{name}
|
||
|
test -f %buildroot/%{_defaultdocdir}/%{name}/README.Win32 && %{__rm} %buildroot/%{_defaultdocdir}/%{name}/README.Win32
|
||
|
#%{__install} -m644 manmake/*.pdf %buildroot/%{_defaultdocdir}/%{name}/pdf
|
||
|
test -d %{_builddir}/%name-%version/YacasNotebook && cp -a %{_builddir}/%name-%version/YacasNotebook %buildroot/%{_defaultdocdir}/%{name}/
|
||
|
#
|
||
|
# put all documentation to %{_defaultdocdir} and create a symlink for the tools
|
||
|
#
|
||
|
#%{__rm} %buildroot/%{_datadir}/%{name}/documentation/yacaslogo.gif
|
||
|
#%{__mv} %buildroot/%{_datadir}/%{name}/documentation/hints \
|
||
|
# %{buildroot}/%{_defaultdocdir}/%{name}/documentation/
|
||
|
#%{__ln_s} %{_defaultdocdir}/%{name}/documentation \
|
||
|
# %buildroot/%{_datadir}/%{name}/documentation
|
||
|
|
||
|
%clean
|
||
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
||
|
|
||
|
%post -p /sbin/ldconfig
|
||
|
%postun -p /sbin/ldconfig
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%{_bindir}/%{name}*
|
||
|
%{_bindir}/ytxt2tex
|
||
|
%{_datadir}/%{name}
|
||
|
%exclude %{_datadir}/%{name}/include
|
||
|
%{_datadir}/applications/%{name}.desktop
|
||
|
%{_datadir}/pixmaps/yacaslogo.xpm
|
||
|
%doc AUTHORS COPYING
|
||
|
|
||
|
%files devel
|
||
|
%defattr(-,root,root)
|
||
|
%dir %{_datadir}/%{name}/include/
|
||
|
%{_datadir}/%{name}/include/*
|
||
|
%dir %{_datadir}/doc/yacas
|
||
|
%{_datadir}/doc/yacas/*
|
||
|
%doc NEWS
|
||
|
|
||
|
%changelog
|
||
|
* Wed Feb 12 2014 Automatic Build System <autodist@mambasoft.it> 1.3.4-1mamba
|
||
|
- automatic update by autodist
|
||
|
|
||
|
* Sun Jan 20 2013 Automatic Build System <autodist@mambasoft.it> 1.3.3-1mamba
|
||
|
- automatic version update by autodist
|
||
|
|
||
|
* Mon Jul 13 2009 Tiziana Ferro <tiziana.ferro@email.it> 1.2.2-1mamba
|
||
|
- update to 1.2.2
|
||
|
- update system menu entry
|
||
|
|
||
|
* Mon Oct 17 2005 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 1.0.59-1qilnx
|
||
|
- package created by autospec
|