- tabs in preamble
[packages/genius.git] / genius.spec
CommitLineData
d4e81a96 1Summary: General tool for mathematics
975e6971 2Summary(pl.UTF-8): Rozbudowane narzędzie matematyczne
d4e81a96 3Name: genius
6bf9bc5d 4Version: 0.7.7
859cb5a6 5Release: 2
19c2070a 6License: GPL v2+
d4e81a96 7Group: X11/Applications
53477fba 8Source0: http://ftp.gnome.org/pub/gnome/sources/genius/0.7/%{name}-%{version}.tar.bz2
6bf9bc5d 9# Source0-md5: 8c8bfdfb17e6e54eba283e813cfddeca
19c2070a 10Patch0: %{name}-termcap.patch
11Patch1: %{name}-desktop.patch
859cb5a6 12Patch2: %{name}-link.patch
945b9982 13URL: http://www.jirka.org/genius.html
d4e81a96 14BuildRequires: autoconf
15BuildRequires: automake
d4e81a96 16BuildRequires: bison
17BuildRequires: flex
91845d92 18BuildRequires: gmp-devel
245f6109 19BuildRequires: gnome-common >= 2.8.0-2
91845d92 20BuildRequires: gtksourceview-devel >= 0.3.0
675ee19c 21BuildRequires: intltool >= 0.21
91845d92 22BuildRequires: libglade2-devel >= 2.0.1
23BuildRequires: libgnomeui-devel >= 2.4.0
859cb5a6 24BuildRequires: mpfr-devel >= 2.2.0
62d2fabc 25BuildRequires: libtool
d4e81a96 26BuildRequires: ncurses-devel
88a2b19f 27BuildRequires: pkgconfig
88a2b19f 28BuildRequires: readline-devel
859cb5a6 29BuildRequires: rpmbuild(macros) >= 1.311
245f6109 30BuildRequires: scrollkeeper
91845d92 31BuildRequires: vte-devel >= 0.8.19
859cb5a6
MB
32Requires(post,postun): gtk+2
33Requires(post,postun): hicolor-icon-theme
245f6109 34Requires(post,postun): scrollkeeper
2035ea19 35Requires(post,postun): shared-mime-info
eb5affb4 36Obsoletes: drgenius
37Obsoletes: drgeo
d4e81a96 38BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
39
40%description
41Genius is a general tool for mathematics, including a mathematical
42programming language and evaluator, an euclidian geometry tool, a
432D/3D function grapher and a console calculator. The console
44calculator handles multiple precision floating point numbers, infinite
45precision integers, complex numbers and matrixes.
46
7be01d16
JR
47%description -l pl.UTF-8
48Genius to narzędzie do rozwiązywania problemów matematycznych.
49Zawiera ono matematyczny język programowania, narzędzie do geometrii
50euklidesowej, narzędzie do generowania wykresów 2D/3D oraz konsolowy
51kalkulator. Kalkulator obsługuje liczby zmiennoprzecinkowe wysokiej
52precyzji, liczby całkowite, zespolone oraz macierze.
d4e81a96 53
b360bb42 54%package devel
55Summary: genius header files
975e6971 56Summary(pl.UTF-8): Pliki nagłówkowe genius
b360bb42 57Group: X11/Development/Libraries
675ee19c 58Requires: %{name} = %{version}-%{release}
b360bb42 59
60%description devel
61Genius header files.
62
7be01d16
JR
63%description devel -l pl.UTF-8
64Pliki nagłówkowe genius.
b360bb42 65
d4e81a96 66%prep
67%setup -q
68%patch0 -p1
69%patch1 -p1
859cb5a6 70%patch2 -p1
675ee19c 71
d4e81a96 72%build
73rm -f missing acinclude.m4
245f6109 74gnome-doc-common
75cp xmldocs.make help
d4e81a96 76%{__libtoolize}
859cb5a6
MB
77%{__glib_gettextize}
78%{__intltoolize}
d4e81a96 79%{__aclocal}
80%{__autoconf}
19c2070a 81%{__autoheader}
d4e81a96 82%{__automake}
b360bb42 83%configure \
675ee19c 84 --disable-static \
85 --enable-gtksourceview \
86 --enable-gnome
87
d4e81a96 88%{__make}
89
90%install
91rm -rf $RPM_BUILD_ROOT
92
93%{__make} install \
94 DESTDIR=$RPM_BUILD_ROOT
56664f6f 95
53477fba 96# Thess files are autogenerated
859cb5a6
MB
97rm -f $RPM_BUILD_ROOT%{_datadir}/mime/{XMLnamespaces,aliases,globs,magic,mime.cache,subclasses}
98rm -rf $RPM_BUILD_ROOT%{_datadir}/mime/text
99
100# Obsoleted GNOME mime-info stuff
101rm -rf $RPM_BUILD_ROOT%{_datadir}/{application-registry,mime-info}
2035ea19 102
d4e81a96 103%find_lang %{name} --with-gnome --all-name
104
53477fba
JB
105%clean
106rm -rf $RPM_BUILD_ROOT
107
2035ea19 108%post
53477fba 109%scrollkeeper_update_post
859cb5a6
MB
110%update_mime_database
111%update_icon_cache hicolor
2035ea19 112
113%postun
859cb5a6 114%update_icon_cache hicolor
53477fba 115%scrollkeeper_update_postun
859cb5a6 116%update_mime_database
b360bb42 117
d4e81a96 118%files -f %{name}.lang
119%defattr(644,root,root,755)
19c2070a 120%doc AUTHORS ChangeLog NEWS README TODO
859cb5a6
MB
121%attr(755,root,root) %{_bindir}/genius
122%attr(755,root,root) %{_bindir}/gnome-genius
123%dir %{_libdir}/genius
b360bb42 124%attr(755,root,root) %{_libdir}/genius-readline-helper-fifo
d4e81a96 125%{_datadir}/genius
859cb5a6
MB
126%{_datadir}/mime/packages/genius.xml
127%{_desktopdir}/gnome-genius.desktop
128%{_iconsdir}/hicolor/*/apps/gnome-genius.png
245f6109 129%{_omf_dest_dir}/%{name}
b360bb42 130
131%files devel
132%defattr(644,root,root,755)
133# Do we really need this la and so files?
53477fba 134%attr(755,root,root) %{_libdir}/genius/libtestplugin.so
b360bb42 135%{_libdir}/genius/libtestplugin.la
136%{_includedir}/genius
This page took 0.090951 seconds and 4 git commands to generate.