]> git.pld-linux.org Git - packages/GiNaC.git/blob - GiNaC.spec
- up to 1.6.5
[packages/GiNaC.git] / GiNaC.spec
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.6.5
5 Release:        1
6 License:        GPL v2+
7 Group:          Libraries
8 Source0:        http://www.ginac.de/ginac-%{version}.tar.bz2
9 # Source0-md5:  5379a3ce17c30277513ef8ca9e0f53c2
10 Patch0:         %{name}-info.patch
11 URL:            http://www.ginac.de/
12 BuildRequires:  autoconf >= 2.59
13 BuildRequires:  automake >= 1:1.8
14 BuildRequires:  bison >= 2.3
15 BuildRequires:  cln-devel >= 1.2.2
16 BuildRequires:  gettext-devel
17 BuildRequires:  libstdc++-devel
18 BuildRequires:  libtool >= 2:1.5
19 BuildRequires:  pkgconfig
20 BuildRequires:  readline-devel
21 BuildRequires:  texinfo
22 Requires:       cln >= 1.2.2
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
30 %description -l pl.UTF-8
31 GiNaC (co oznacza "GiNaC is Not a CAS (Computer Algebra System)") to
32 otwarty szkielet do obliczeń symbolicznych w języku programowania C++.
33
34 %package devel
35 Summary:        Header files and more to develop GiNaC applications
36 Summary(pl.UTF-8):      Pliki nagłówkowe i inne do tworzenia aplikacji GiNaC
37 Group:          Development/Libraries
38 Requires:       %{name} = %{version}-%{release}
39 Requires:       cln-devel >= 1.2.2
40 Requires:       libstdc++-devel
41
42 %description devel
43 This package contains include files and other resources you can use to
44 develop GiNaC applications.
45
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.
49
50 %package static
51 Summary:        Static GiNaC library
52 Summary(pl.UTF-8):      Statyczna biblioteka GiNaC
53 Group:          Development/Libraries
54 Requires:       %{name}-devel = %{version}-%{release}
55
56 %description static
57 Static GiNaC library.
58
59 %description static -l pl.UTF-8
60 Statyczna biblioteka GiNaC.
61
62 %package utils
63 Summary:        GiNaC-related utilities
64 Summary(pl.UTF-8):      Narzędzia związane z GiNaC
65 Group:          Applications/Science
66 Requires:       %{name} = %{version}-%{release}
67
68 %description utils
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
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.
79
80 %prep
81 %setup -q -n ginac-%{version}
82 %patch0 -p1
83 %{__sed} -i -e 's/#include <iostream>/#include <cstdio>\n#include <iostream>/g' ginac/parser/lexer.cpp
84 # generated with wrong bison version, miscompiled by gcc 4.1+
85 #%{__rm} ginac/input_parser.{cc,h}
86
87 %build
88 %{__libtoolize}
89 %{__aclocal}
90 %{__autoconf}
91 %{__automake}
92 %configure
93 %{__make}
94
95 %{__make} check
96
97 %install
98 rm -rf $RPM_BUILD_ROOT
99
100 %{__make} install \
101         DESTDIR=$RPM_BUILD_ROOT
102
103 %clean
104 rm -rf $RPM_BUILD_ROOT
105
106 %post   -p /sbin/ldconfig
107 %postun -p /sbin/ldconfig
108
109 %post   devel -p /sbin/postshell
110 -/usr/sbin/fix-info-dir -c %{_infodir}
111
112 %postun devel -p /sbin/postshell
113 -/usr/sbin/fix-info-dir -c %{_infodir}
114
115 %files
116 %defattr(644,root,root,755)
117 %doc AUTHORS ChangeLog NEWS README
118 %attr(755,root,root) %{_libdir}/libginac.so.*.*.*
119 %attr(755,root,root) %ghost %{_libdir}/libginac.so.5
120
121 %files devel
122 %defattr(644,root,root,755)
123 %attr(755,root,root) %{_libdir}/libginac.so
124 %{_libdir}/libginac.la
125 %{_includedir}/ginac
126 %{_infodir}/ginac.info*
127 %{_infodir}/ginac-examples.info*
128 %{_pkgconfigdir}/ginac.pc
129
130 %files static
131 %defattr(644,root,root,755)
132 %{_libdir}/libginac.a
133
134 %files utils
135 %defattr(644,root,root,755)
136 %attr(755,root,root) %{_bindir}/ginac-excompiler
137 %attr(755,root,root) %{_bindir}/ginsh
138 %attr(755,root,root) %{_bindir}/viewgar
139 %{_mandir}/man1/ginsh.1*
140 %{_mandir}/man1/viewgar.1*
This page took 0.033155 seconds and 3 git commands to generate.