]>
Commit | Line | Data |
---|---|---|
89645b1f JB |
1 | Summary: C++ class library for symbolic calculations |
2 | Name: GiNaC | |
3 | Version: 1.1.0 | |
4 | Release: 1 | |
5 | License: GPL | |
6 | Group: Sciences/Mathematics | |
7 | Source0: ftp://ftpthep.physik.uni-mainz.de/pub/GiNaC/%{name}-%{version}.tar.bz2 | |
8 | Source1: ginac.png | |
9 | URL: http://www.ginac.de/ | |
10 | BuildRequires: cln-devel >= 1.1 | |
11 | BuildRequires: readline-devel | |
12 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
13 | ||
14 | %description | |
15 | GiNaC (which stands for "GiNaC is Not a CAS (Computer Algebra | |
16 | System)") is an open framework for symbolic computation within the C++ | |
17 | programming language. | |
18 | ||
19 | %package devel | |
20 | Summary: Libraries, includes and more to develop GiNaC applications | |
21 | Group: Development/C++ | |
22 | Requires: %{lib_name} = %{version}-%{release} | |
23 | Provides: %{name}-devel = %{version}-%{release} | |
24 | Provides: %{lib_name_orig}-devel = %{version}-%{release} | |
25 | ||
26 | %description devel | |
27 | GiNaC (which stands for "GiNaC is Not a CAS (Computer Algebra | |
28 | System)") is an open framework for symbolic computation within the C++ | |
29 | programming language. | |
30 | ||
31 | This is the libraries, include files and other resources you can use | |
32 | to develop GiNaC applications. | |
33 | ||
34 | %package utils | |
35 | Summary: GiNaC-related utilities | |
36 | Group: Sciences/Mathematics | |
37 | Requires: %{name} = %{version}-%{release} | |
38 | ||
39 | %description utils | |
40 | GiNaC (which stands for "GiNaC is Not a CAS (Computer Algebra | |
41 | System)") is an open framework for symbolic computation within the C++ | |
42 | programming language. | |
43 | ||
44 | This package includes the ginsh ("GiNaC interactive shell") which | |
45 | provides a simple and easy-to-use CAS-like interface to GiNaC for | |
46 | non-programmers, and the tool "viewgar" which displays the contents of | |
47 | GiNaC archives. | |
48 | ||
49 | %prep | |
50 | %setup -q | |
51 | ||
52 | %build | |
53 | %define __libtoolize /bin/true | |
54 | %configure CFLAGS=" -O2 " CXXFLAGS=" -O2 " | |
55 | %make | |
56 | make check | |
57 | ||
58 | %install | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %{__make} install | |
62 | ||
63 | %clean | |
64 | rm -rf ${RPM_BUILD_ROOT} | |
65 | ||
66 | %post -p /sbin/ldconfig | |
67 | %postun -p /sbin/ldconfig | |
68 | ||
69 | %post devel | |
70 | %_install_info ginac.info | |
71 | ||
72 | %preun devel | |
73 | %_remove_install_info ginac.info | |
74 | ||
75 | %files | |
76 | %defattr(644,root,root,755) | |
77 | %doc AUTHORS ChangeLog NEWS README | |
78 | %{_libdir}/lib*.so.*.* | |
79 | ||
80 | %files devel | |
81 | %defattr(644,root,root,755) | |
82 | %{_libdir}/*.a | |
83 | %{_libdir}/*.la | |
84 | %{_libdir}/*.so | |
85 | %{_includedir}/ginac/*.h | |
86 | %{_infodir}/*.info* | |
87 | %{_mandir}/man1/ginac-config.1* | |
88 | %attr(755,root,root) %{_bindir}/ginac-config | |
89 | %{_aclocaldir}/* | |
90 | ||
91 | %files utils | |
92 | %defattr(644,root,root,755) | |
93 | %attr(755,root,root) %{_bindir}/ginsh | |
94 | %attr(755,root,root) %{_bindir}/viewgar | |
95 | %{_mandir}/man1/ginsh.1* | |
96 | %{_mandir}/man1/viewgar.1* | |
97 | %_menudir/%name-utils | |
98 | %_iconsdir/ginac.png |