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