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