Mageia Bugzilla – Attachment 1266 Details for
Bug 3374
axiom, computer algebra system (Symbolic Computation Program)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
new spec file
axiom.spec (text/x-rpm-spec), 3.78 KB, created by
JeanClaude Colette
on 2011-12-18 11:22:39 CET
(
hide
)
Description:
new spec file
Filename:
MIME Type:
Creator:
JeanClaude Colette
Created:
2011-12-18 11:22:39 CET
Size:
3.78 KB
patch
obsolete
>%define name axiom >%define date nov2011 >%define axvers 20050901 >%define release %mkrel 0.%axvers >%define x11shlibdir %{_prefix}/%{_lib} > > >Summary: Symbolic Computation Program >Summary(fr.UTF-8): Logiciel de calcul formel >Name: %{name} >Version: 3.4 >Release: %{release} >License: BSD/GPL >Group: Applications/Engineering >Url: http://axiom.axiom-developer.org >Source: http://axiom.axiom-developer.org/axiom-website/downloads/%{name}-%{date}-src.tgz >BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot >BuildRequires: libgmp-devel >BuildRequires: libncurses-devel >BuildRequires: libreadline-devel >BuildRequires: binutils-devel >BuildRequires: libx11_6-devel >BuildRequires: libxpm-devel >BuildRequires: libxt-devel >BuildRequires: tetex >BuildRequires: gawk >BuildRequires: ghostscript >Requires: xterm > >%description >Axiom is a general purpose Computer Algebra system. >It is useful for research and development of mathematical algorithms. >It defines a strongly typed, mathematically correct type hierarchy. >It has a programming language and a built-in compiler. > >%description -l fr.UTF-8 >Axiom est un système de calcul formel à usage général. >Il est utile pour la recherche et le développement d'algorithmes mathématiques. >Il définit une hiérarchie de types, mathématiquement corrects, fortement typés. >Il possède un langage de programmation et un compilateur intégré. > >%prep >%setup -q -n %{name} > >%build >export AXIOM=`pwd`/mnt/linux >export PATH=$AXIOM/bin:$PATH > >make \ > MAKE=make \ > XLIB=%{_libdir} > >%install >mkdir -p %{buildroot}%{_libdir}/%{name}-%{version} >cp -far mnt/linux/* %{buildroot}%{_libdir}/%{name}-%{version} > >mkdir -p %{buildroot}%{_bindir} >cat > %{buildroot}%{_bindir}/axiom <<EOF >#!/bin/sh >AXIOM=%{_libdir}/%{name}-%{version} >export AXIOM >PATH=\$AXIOM/bin:\$PATH >export PATH >exec \$AXIOM/bin/sman "\$@" >EOF >chmod +x %{buildroot}%{_bindir}/axiom > ># replace some {buildroot} references >perl -pi -e 's|%{buildroot}/axiom/mnt/linux|%{_libdir}/%{name}-%{version}|;' \ > %{buildroot}%{_libdir}/%{name}-%{version}/bin/man/man1/*.1 \ > %{buildroot}%{_libdir}/%{name}-%{version}/bin/lib/pipedocs > ># remove executable bit of some text files >chmod -x %{buildroot}%{_libdir}/%{name}-%{version}/lib/{command.list,copyright} \ > `find %{buildroot}%{_libdir}/%{name}-%{version} -name axiom.sty` > > >#install icons >mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/ >convert axiomicon.png -resize 48x48 $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/axiom.png >mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/36x36/apps/ >convert axiomicon.png -resize 36x36 $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/36x36/apps/axiom.png > > ># Install desktop file >mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications >cat > $RPM_BUILD_ROOT%{_datadir}/applications/axiom.desktop << EOF >[Desktop Entry] >Encoding=UTF-8 >Name=axiom >GenericName=axiom >GenericName[fr]=axiom >Comment=Computer Algebra system >Comment[fr]=Système de calcul formel >Exec=axiom >TryExec=axiom >Icon=axiom >Terminal=true >Type=Application >Categories=Education;Science;Math; >EOF > > >%post > >#update icon cache >touch --no-create %{_datadir}/icons/hicolor >if [ -x %{_bindir}/gtk-update-icon-cache ]; then > %{_bindir}/gtk-update-icon-cache -q %{_datadir}/icons/hicolor; >fi >update-desktop-database &> /dev/null || : > >%postun ># update icon cache >touch --no-create %{_datadir}/icons/hicolor >if [ -x %{_bindir}/gtk-update-icon-cache ]; then > %{_bindir}/gtk-update-icon-cache -q %{_datadir}/icons/hicolor; >fi >update-desktop-database &> /dev/null || : > > >%clean >rm -rf $RPM_BUILD_ROOT > >%files >%defattr(-,root,root) >%doc license/license.* >%dir %{_libdir}/%{name}-%{version} >%{_libdir}/%{name}-%{version}/* >%{_bindir}/axiom >%{_datadir}/applications/%{name}.desktop >%{_datadir}/icons/hicolor/36x36/apps/%{name}.png >%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
%define name axiom %define date nov2011 %define axvers 20050901 %define release %mkrel 0.%axvers %define x11shlibdir %{_prefix}/%{_lib} Summary: Symbolic Computation Program Summary(fr.UTF-8): Logiciel de calcul formel Name: %{name} Version: 3.4 Release: %{release} License: BSD/GPL Group: Applications/Engineering Url: http://axiom.axiom-developer.org Source: http://axiom.axiom-developer.org/axiom-website/downloads/%{name}-%{date}-src.tgz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot BuildRequires: libgmp-devel BuildRequires: libncurses-devel BuildRequires: libreadline-devel BuildRequires: binutils-devel BuildRequires: libx11_6-devel BuildRequires: libxpm-devel BuildRequires: libxt-devel BuildRequires: tetex BuildRequires: gawk BuildRequires: ghostscript Requires: xterm %description Axiom is a general purpose Computer Algebra system. It is useful for research and development of mathematical algorithms. It defines a strongly typed, mathematically correct type hierarchy. It has a programming language and a built-in compiler. %description -l fr.UTF-8 Axiom est un système de calcul formel à usage général. Il est utile pour la recherche et le développement d'algorithmes mathématiques. Il définit une hiérarchie de types, mathématiquement corrects, fortement typés. Il possède un langage de programmation et un compilateur intégré. %prep %setup -q -n %{name} %build export AXIOM=`pwd`/mnt/linux export PATH=$AXIOM/bin:$PATH make \ MAKE=make \ XLIB=%{_libdir} %install mkdir -p %{buildroot}%{_libdir}/%{name}-%{version} cp -far mnt/linux/* %{buildroot}%{_libdir}/%{name}-%{version} mkdir -p %{buildroot}%{_bindir} cat > %{buildroot}%{_bindir}/axiom <<EOF #!/bin/sh AXIOM=%{_libdir}/%{name}-%{version} export AXIOM PATH=\$AXIOM/bin:\$PATH export PATH exec \$AXIOM/bin/sman "\$@" EOF chmod +x %{buildroot}%{_bindir}/axiom # replace some {buildroot} references perl -pi -e 's|%{buildroot}/axiom/mnt/linux|%{_libdir}/%{name}-%{version}|;' \ %{buildroot}%{_libdir}/%{name}-%{version}/bin/man/man1/*.1 \ %{buildroot}%{_libdir}/%{name}-%{version}/bin/lib/pipedocs # remove executable bit of some text files chmod -x %{buildroot}%{_libdir}/%{name}-%{version}/lib/{command.list,copyright} \ `find %{buildroot}%{_libdir}/%{name}-%{version} -name axiom.sty` #install icons mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/ convert axiomicon.png -resize 48x48 $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/axiom.png mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/36x36/apps/ convert axiomicon.png -resize 36x36 $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/36x36/apps/axiom.png # Install desktop file mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications cat > $RPM_BUILD_ROOT%{_datadir}/applications/axiom.desktop << EOF [Desktop Entry] Encoding=UTF-8 Name=axiom GenericName=axiom GenericName[fr]=axiom Comment=Computer Algebra system Comment[fr]=Système de calcul formel Exec=axiom TryExec=axiom Icon=axiom Terminal=true Type=Application Categories=Education;Science;Math; EOF %post #update icon cache touch --no-create %{_datadir}/icons/hicolor if [ -x %{_bindir}/gtk-update-icon-cache ]; then %{_bindir}/gtk-update-icon-cache -q %{_datadir}/icons/hicolor; fi update-desktop-database &> /dev/null || : %postun # update icon cache touch --no-create %{_datadir}/icons/hicolor if [ -x %{_bindir}/gtk-update-icon-cache ]; then %{_bindir}/gtk-update-icon-cache -q %{_datadir}/icons/hicolor; fi update-desktop-database &> /dev/null || : %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc license/license.* %dir %{_libdir}/%{name}-%{version} %{_libdir}/%{name}-%{version}/* %{_bindir}/axiom %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/36x36/apps/%{name}.png %{_datadir}/icons/hicolor/48x48/apps/%{name}.png
View Attachment As Raw
Actions:
View
Attachments on
bug 3374
:
1264
| 1266 |
1500
|
1501