]>
Commit | Line | Data |
---|---|---|
89645b1f | 1 | Summary: C++ class library for symbolic calculations |
78364349 | 2 | Summary(pl.UTF-8): Biblioteka klas C++ do obliczeń symbolicznych |
89645b1f | 3 | Name: GiNaC |
fe5d1d2b | 4 | Version: 1.6.5 |
9b86a52b | 5 | Release: 2 |
5e076016 | 6 | License: GPL v2+ |
ad720634 | 7 | Group: Libraries |
fe5d1d2b AM |
8 | Source0: http://www.ginac.de/ginac-%{version}.tar.bz2 |
9 | # Source0-md5: 5379a3ce17c30277513ef8ca9e0f53c2 | |
43fda624 | 10 | Patch0: %{name}-info.patch |
89645b1f | 11 | URL: http://www.ginac.de/ |
96c862c9 | 12 | BuildRequires: autoconf >= 2.59 |
d2f49bfb | 13 | BuildRequires: automake >= 1:1.8 |
5ab8084f | 14 | BuildRequires: bison >= 2.3 |
d2f49bfb | 15 | BuildRequires: cln-devel >= 1.2.2 |
59c739a3 | 16 | BuildRequires: gettext-tools |
5e076016 | 17 | BuildRequires: libstdc++-devel |
96c862c9 | 18 | BuildRequires: libtool >= 2:1.5 |
5e076016 | 19 | BuildRequires: pkgconfig |
89645b1f | 20 | BuildRequires: readline-devel |
43fda624 | 21 | BuildRequires: texinfo |
d2f49bfb | 22 | Requires: cln >= 1.2.2 |
89645b1f JB |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
24 | ||
25 | %description | |
26 | GiNaC (which stands for "GiNaC is Not a CAS (Computer Algebra | |
27 | System)") is an open framework for symbolic computation within the C++ | |
28 | programming language. | |
29 | ||
38ca6d9e | 30 | %description -l pl.UTF-8 |
ad720634 | 31 | GiNaC (co oznacza "GiNaC is Not a CAS (Computer Algebra System)") to |
38ca6d9e | 32 | otwarty szkielet do obliczeń symbolicznych w języku programowania C++. |
ad720634 | 33 | |
89645b1f | 34 | %package devel |
ad720634 | 35 | Summary: Header files and more to develop GiNaC applications |
78364349 | 36 | Summary(pl.UTF-8): Pliki nagłówkowe i inne do tworzenia aplikacji GiNaC |
ad720634 | 37 | Group: Development/Libraries |
3380bca7 | 38 | Requires: %{name} = %{version}-%{release} |
d2f49bfb | 39 | Requires: cln-devel >= 1.2.2 |
5e076016 | 40 | Requires: libstdc++-devel |
89645b1f JB |
41 | |
42 | %description devel | |
edc44af5 ER |
43 | This package contains include files and other resources you can use to |
44 | develop GiNaC applications. | |
89645b1f | 45 | |
38ca6d9e JR |
46 | %description devel -l pl.UTF-8 |
47 | Ten pakiet zawiera pliki nagłówkowe i inne zasoby, których można | |
48 | używać do rozwiajania aplikacji opartych na GiNaC. | |
ad720634 | 49 | |
a3fe6057 JB |
50 | %package static |
51 | Summary: Static GiNaC library | |
78364349 | 52 | Summary(pl.UTF-8): Statyczna biblioteka GiNaC |
a3fe6057 JB |
53 | Group: Development/Libraries |
54 | Requires: %{name}-devel = %{version}-%{release} | |
55 | ||
56 | %description static | |
57 | Static GiNaC library. | |
58 | ||
38ca6d9e | 59 | %description static -l pl.UTF-8 |
a3fe6057 JB |
60 | Statyczna biblioteka GiNaC. |
61 | ||
89645b1f JB |
62 | %package utils |
63 | Summary: GiNaC-related utilities | |
78364349 | 64 | Summary(pl.UTF-8): Narzędzia związane z GiNaC |
ad720634 | 65 | Group: Applications/Science |
89645b1f JB |
66 | Requires: %{name} = %{version}-%{release} |
67 | ||
68 | %description utils | |
89645b1f JB |
69 | This package includes the ginsh ("GiNaC interactive shell") which |
70 | provides a simple and easy-to-use CAS-like interface to GiNaC for | |
71 | non-programmers, and the tool "viewgar" which displays the contents of | |
72 | GiNaC archives. | |
73 | ||
38ca6d9e JR |
74 | %description utils -l pl.UTF-8 |
75 | Ten pakiet zawiera ginsh (interaktywną powłokę GiNaC, ktora udostępnia | |
76 | prosty i łatwy w użyciu, podobny do CAS interfejs do GiNaC dla osób | |
77 | nie będących programistami) oraz narzędzie viewgar, wyświetlające | |
78 | zawartość archiwów GiNaC. | |
ad720634 | 79 | |
89645b1f | 80 | %prep |
d910f1cd | 81 | %setup -q -n ginac-%{version} |
43fda624 | 82 | %patch0 -p1 |
30934710 | 83 | %{__sed} -i -e 's/#include <iostream>/#include <cstdio>\n#include <iostream>/g' ginac/parser/lexer.cpp |
5ab8084f | 84 | # generated with wrong bison version, miscompiled by gcc 4.1+ |
30934710 | 85 | #%{__rm} ginac/input_parser.{cc,h} |
5ab8084f | 86 | |
89645b1f | 87 | %build |
306e33e2 AM |
88 | %{__libtoolize} |
89 | %{__aclocal} | |
90 | %{__autoconf} | |
91 | %{__automake} | |
3380bca7 JB |
92 | %configure |
93 | %{__make} | |
94 | ||
95 | %{__make} check | |
89645b1f JB |
96 | |
97 | %install | |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | ||
8856a616 JB |
100 | %{__make} install \ |
101 | DESTDIR=$RPM_BUILD_ROOT | |
89645b1f JB |
102 | |
103 | %clean | |
ad720634 | 104 | rm -rf $RPM_BUILD_ROOT |
89645b1f JB |
105 | |
106 | %post -p /sbin/ldconfig | |
107 | %postun -p /sbin/ldconfig | |
108 | ||
5ab8084f | 109 | %post devel -p /sbin/postshell |
7c16c255 | 110 | -/usr/sbin/fix-info-dir -c %{_infodir} |
89645b1f | 111 | |
5ab8084f | 112 | %postun devel -p /sbin/postshell |
f97fe2e2 | 113 | -/usr/sbin/fix-info-dir -c %{_infodir} |
89645b1f JB |
114 | |
115 | %files | |
116 | %defattr(644,root,root,755) | |
117 | %doc AUTHORS ChangeLog NEWS README | |
d2f49bfb | 118 | %attr(755,root,root) %{_libdir}/libginac.so.*.*.* |
fe5d1d2b | 119 | %attr(755,root,root) %ghost %{_libdir}/libginac.so.5 |
89645b1f JB |
120 | |
121 | %files devel | |
122 | %defattr(644,root,root,755) | |
d910f1cd JB |
123 | %attr(755,root,root) %{_libdir}/libginac.so |
124 | %{_libdir}/libginac.la | |
ad720634 | 125 | %{_includedir}/ginac |
5e076016 JB |
126 | %{_infodir}/ginac.info* |
127 | %{_infodir}/ginac-examples.info* | |
d910f1cd | 128 | %{_pkgconfigdir}/ginac.pc |
89645b1f | 129 | |
ad720634 JB |
130 | %files static |
131 | %defattr(644,root,root,755) | |
d910f1cd | 132 | %{_libdir}/libginac.a |
ad720634 | 133 | |
89645b1f JB |
134 | %files utils |
135 | %defattr(644,root,root,755) | |
25e42cc1 | 136 | %attr(755,root,root) %{_bindir}/ginac-excompiler |
89645b1f JB |
137 | %attr(755,root,root) %{_bindir}/ginsh |
138 | %attr(755,root,root) %{_bindir}/viewgar | |
139 | %{_mandir}/man1/ginsh.1* | |
140 | %{_mandir}/man1/viewgar.1* |