yacas/yacas.spec

131 lines
4.3 KiB
RPMSpec

Name: yacas
Version: 1.3.6
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}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
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 -n lib%{name}
Group: System/Libraries
Summary: Shared libraries for %{name}
%description -n lib%{name}
This package contains shared libraries for %{name}.
%package -n lib%{name}-devel
Summary: Devel package for %{name}
Group: Development/Libraries
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib%{name}-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}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/yacaslogo.xpm
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/libyacas.so.*
%doc AUTHORS COPYING
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*
%{_libdir}/libyacas.a
%{_libdir}/libyacas.la
%{_libdir}/libyacas.so
%dir %{_datadir}/doc/yacas
%{_datadir}/doc/yacas/*
%doc NEWS
%changelog
* Fri Jan 02 2015 Automatic Build System <autodist@mambasoft.it> 1.3.6-1mamba
- automatic update by autodist
* 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