Summary: C++ class library for symbolic calculations
+Summary(pl.UTF-8): Biblioteka klas C++ do obliczeń symbolicznych
Name: GiNaC
-Version: 1.1.0
+Version: 1.4.1
Release: 1
-License: GPL
-Group: Sciences/Mathematics
-# Source0-md5: 30c86d96a9d9d689ff0981409b038906
-Source0: ftp://ftpthep.physik.uni-mainz.de/pub/GiNaC/%{name}-%{version}.tar.bz2
-Source1: ginac.png
+License: GPL v2+
+Group: Libraries
+Source0: ftp://ftpthep.physik.uni-mainz.de/pub/GiNaC/ginac-%{version}.tar.bz2
+# Source0-md5: 37356db3fe520498f2857e3ed6daec82
+Patch0: %{name}-info.patch
URL: http://www.ginac.de/
-BuildRequires: cln-devel >= 1.1
+BuildRequires: automake
+BuildRequires: cln-devel >= 1.1.6
+BuildRequires: libstdc++-devel
+BuildRequires: pkgconfig
BuildRequires: readline-devel
+BuildRequires: texinfo
+Requires: cln >= 1.1.6
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
System)") is an open framework for symbolic computation within the C++
programming language.
+%description -l pl.UTF-8
+GiNaC (co oznacza "GiNaC is Not a CAS (Computer Algebra System)") to
+otwarty szkielet do obliczeń symbolicznych w języku programowania C++.
+
%package devel
-Summary: Libraries, includes and more to develop GiNaC applications
-Group: Development/C++
+Summary: Header files and more to develop GiNaC applications
+Summary(pl.UTF-8): Pliki nagłówkowe i inne do tworzenia aplikacji GiNaC
+Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
+Requires: cln-devel >= 1.1.6
+Requires: libstdc++-devel
%description devel
-GiNaC (which stands for "GiNaC is Not a CAS (Computer Algebra
-System)") is an open framework for symbolic computation within the C++
-programming language.
+This package contains include files and other resources you can use to
+develop GiNaC applications.
+
+%description devel -l pl.UTF-8
+Ten pakiet zawiera pliki nagłówkowe i inne zasoby, których można
+używać do rozwiajania aplikacji opartych na GiNaC.
+
+%package static
+Summary: Static GiNaC library
+Summary(pl.UTF-8): Statyczna biblioteka GiNaC
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static GiNaC library.
-This is the libraries, include files and other resources you can use
-to develop GiNaC applications.
+%description static -l pl.UTF-8
+Statyczna biblioteka GiNaC.
%package utils
Summary: GiNaC-related utilities
-Group: Sciences/Mathematics
+Summary(pl.UTF-8): Narzędzia związane z GiNaC
+Group: Applications/Science
Requires: %{name} = %{version}-%{release}
%description utils
-GiNaC (which stands for "GiNaC is Not a CAS (Computer Algebra
-System)") is an open framework for symbolic computation within the C++
-programming language.
-
This package includes the ginsh ("GiNaC interactive shell") which
provides a simple and easy-to-use CAS-like interface to GiNaC for
non-programmers, and the tool "viewgar" which displays the contents of
GiNaC archives.
+%description utils -l pl.UTF-8
+Ten pakiet zawiera ginsh (interaktywną powłokę GiNaC, ktora udostępnia
+prosty i łatwy w użyciu, podobny do CAS interfejs do GiNaC dla osób
+nie będących programistami) oraz narzędzie viewgar, wyświetlające
+zawartość archiwów GiNaC.
+
%prep
-%setup -q
+%setup -q -n ginac-%{version}
+%patch0 -p1
%build
+cp -f /usr/share/automake/config.* .
%configure
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-%{__make} install
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
%clean
-rm -rf ${RPM_BUILD_ROOT}
+rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
-%post devel
-%_install_info ginac.info
+%post devel -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
-%preun devel
-%_remove_install_info ginac.info
+%postun devel -p /sbin/postshell
+-/usr/sbin/fix-info-dir -c %{_infodir}
%files
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog NEWS README
-%{_libdir}/lib*.so.*.*
+%attr(755,root,root) %{_libdir}/libginac-*.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libginac-*.so.0
%files devel
%defattr(644,root,root,755)
-%{_libdir}/*.a
-%{_libdir}/*.la
-%{_libdir}/*.so
-%{_includedir}/ginac/*.h
-%{_infodir}/*.info*
-%{_mandir}/man1/ginac-config.1*
-%attr(755,root,root) %{_bindir}/ginac-config
-%{_aclocaldir}/*
+%attr(755,root,root) %{_libdir}/libginac.so
+%{_libdir}/libginac.la
+%{_includedir}/ginac
+%{_infodir}/ginac.info*
+%{_infodir}/ginac-examples.info*
+%{_pkgconfigdir}/ginac.pc
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libginac.a
%files utils
%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/ginac-excompiler
%attr(755,root,root) %{_bindir}/ginsh
%attr(755,root,root) %{_bindir}/viewgar
%{_mandir}/man1/ginsh.1*
%{_mandir}/man1/viewgar.1*
-%_menudir/%name-utils
-%_iconsdir/ginac.png