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