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