- %post shouldn't fail if no rw permission to /usr
[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:  libtool
26 BuildRequires:  ncurses-devel
27 BuildRequires:  popt-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 %patch2 -p1
68 %patch3 -p1
69 %patch4 -p1
70
71 mv po/{no,nb}.po
72
73 %build
74 rm -f missing acinclude.m4
75 gnome-doc-common
76 cp xmldocs.make help
77 %{__libtoolize}
78 glib-gettextize --copy --force
79 intltoolize --copy --force
80 %{__aclocal}
81 %{__autoconf}
82 %{__automake}
83 %configure \
84         --disable-static \
85         --enable-gtksourceview \
86         --enable-gnome
87
88 %{__make}
89
90 %install
91 rm -rf $RPM_BUILD_ROOT
92
93 %{__make} install \
94         DESTDIR=$RPM_BUILD_ROOT
95
96
97 # This files are autogenerated
98 rm -f $RPM_BUILD_ROOT%{_datadir}/mime/{XMLnamespaces,globs,magic}
99
100 %find_lang %{name} --with-gnome --all-name
101
102 %post
103 /sbin/ldconfig
104 /usr/bin/scrollkeeper-update
105 update-mime-database %{_datadir}/mime ||:
106
107 %postun
108 /sbin/ldconfig
109 /usr/bin/scrollkeeper-update
110 update-mime-database %{_datadir}/mime
111
112 %clean
113 rm -rf $RPM_BUILD_ROOT
114
115 %files -f %{name}.lang
116 %defattr(644,root,root,755)
117 %doc AUTHORS NEWS README TODO
118 %attr(755,root,root) %{_bindir}/*
119 %attr(755,root,root) %dir %{_libdir}/genius
120 %attr(755,root,root) %{_libdir}/genius/libtestplugin.so.*.*.*
121 %attr(755,root,root) %{_libdir}/genius-readline-helper-fifo
122 %{_datadir}/genius
123 %{_datadir}/application-registry/*
124 %{_datadir}/mime-info/*
125 %{_datadir}/mime/packages/*
126 %{_datadir}/mime/text/*
127 %{_desktopdir}/*.desktop
128 %{_iconsdir}/*/*/apps/*.png
129 %{_omf_dest_dir}/%{name}
130
131 %files devel
132 %defattr(644,root,root,755)
133 # Do we really need this la and so files?
134 %{_libdir}/genius/libtestplugin.so
135 %{_libdir}/genius/libtestplugin.la
136 %{_includedir}/genius
This page took 0.060434 seconds and 3 git commands to generate.