- BR: libmpfr-devel, pkgconfig, readline-devel
[packages/genius.git] / genius.spec
1 Summary:        General tool for mathematics
2 Summary(pl):    Rozbudowane narzêdzie matematyczne
3 Name:           genius
4 Version:        0.7.2
5 Release:        3
6 License:        GPL
7 Group:          X11/Applications
8 Source0:        http://ftp.gnome.org/pub/gnome/sources/%{name}/0.7/%{name}-%{version}.tar.bz2
9 # Source0-md5:  69944ec93ad62cc4c3dc4ba35d4c2944
10 Patch0:         %{name}-am.patch
11 Patch1:         %{name}-termcap.patch
12 Patch2:         %{name}-locale-names.patch
13 Patch3:         %{name}-desktop.patch
14 Patch4:         %{name}-term_mpfr_fix.patch
15 BuildRequires:  autoconf
16 BuildRequires:  automake
17 BuildRequires:  bison
18 BuildRequires:  flex
19 BuildRequires:  gmp-devel
20 BuildRequires:  gnome-common >= 2.8.0-2
21 BuildRequires:  gtksourceview-devel >= 0.3.0
22 BuildRequires:  intltool >= 0.21
23 BuildRequires:  libglade2-devel >= 2.0.1
24 BuildRequires:  libgnomeui-devel >= 2.4.0
25 BuildRequires:  libmpfr-devel
26 BuildRequires:  libtool
27 BuildRequires:  ncurses-devel
28 BuildRequires:  pkgconfig
29 BuildRequires:  popt-devel
30 BuildRequires:  readline-devel
31 BuildRequires:  scrollkeeper
32 BuildRequires:  vte-devel >= 0.8.19
33 Requires(post,postun):  /sbin/ldconfig
34 Requires(post,postun):  scrollkeeper
35 Requires(post,postun):  shared-mime-info
36 Obsoletes:      drgenius
37 Obsoletes:      drgeo
38 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39
40 %description
41 Genius is a general tool for mathematics, including a mathematical
42 programming language and evaluator, an euclidian geometry tool, a
43 2D/3D function grapher and a console calculator. The console
44 calculator handles multiple precision floating point numbers, infinite
45 precision integers, complex numbers and matrixes.
46
47 %description -l pl
48 Genius to narzêdzie do rozwi±zywania problemów matematycznych.
49 Zawiera ono matematyczny jêzyk programowania, narzêdzie do geometrii
50 euklidesowej, narzêdzie do generowania wykresów 2D/3D oraz konsolowy
51 kalkulator. Kalkulator obs³uguje liczby zmiennoprzecinkowe wysokiej
52 precyzji, liczby ca³kowite, zespolone oraz macierze.
53
54 %package devel
55 Summary:        genius header files
56 Summary(pl):    Pliki nag³ówkowe genius
57 Group:          X11/Development/Libraries
58 Requires:       %{name} = %{version}-%{release}
59
60 %description devel
61 Genius header files.
62
63 %description devel -l pl
64 Pliki nag³ówkowe genius.
65
66 %prep
67 %setup -q
68 %patch0 -p1
69 %patch1 -p1
70 %patch2 -p1
71 %patch3 -p1
72 %patch4 -p1
73
74 mv po/{no,nb}.po
75
76 %build
77 rm -f missing acinclude.m4
78 gnome-doc-common
79 cp xmldocs.make help
80 %{__libtoolize}
81 glib-gettextize --copy --force
82 intltoolize --copy --force
83 %{__aclocal}
84 %{__autoconf}
85 %{__automake}
86 %configure \
87         --disable-static \
88         --enable-gtksourceview \
89         --enable-gnome
90
91 %{__make}
92
93 %install
94 rm -rf $RPM_BUILD_ROOT
95
96 %{__make} install \
97         DESTDIR=$RPM_BUILD_ROOT
98
99
100 # This files are autogenerated
101 rm -f $RPM_BUILD_ROOT%{_datadir}/mime/{XMLnamespaces,globs,magic}
102
103 %find_lang %{name} --with-gnome --all-name
104
105 %post
106 /sbin/ldconfig
107 /usr/bin/scrollkeeper-update
108 update-mime-database %{_datadir}/mime ||:
109
110 %postun
111 /sbin/ldconfig
112 /usr/bin/scrollkeeper-update
113 update-mime-database %{_datadir}/mime
114
115 %clean
116 rm -rf $RPM_BUILD_ROOT
117
118 %files -f %{name}.lang
119 %defattr(644,root,root,755)
120 %doc AUTHORS NEWS README TODO
121 %attr(755,root,root) %{_bindir}/*
122 %attr(755,root,root) %dir %{_libdir}/genius
123 %attr(755,root,root) %{_libdir}/genius/libtestplugin.so.*.*.*
124 %attr(755,root,root) %{_libdir}/genius-readline-helper-fifo
125 %{_datadir}/genius
126 %{_datadir}/application-registry/*
127 %{_datadir}/mime-info/*
128 %{_datadir}/mime/packages/*
129 %{_datadir}/mime/text/*
130 %{_desktopdir}/*.desktop
131 %{_iconsdir}/*/*/apps/*.png
132 %{_omf_dest_dir}/%{name}
133
134 %files devel
135 %defattr(644,root,root,755)
136 # Do we really need this la and so files?
137 %{_libdir}/genius/libtestplugin.so
138 %{_libdir}/genius/libtestplugin.la
139 %{_includedir}/genius
This page took 0.127406 seconds and 3 git commands to generate.