- up to 1.0.0
[packages/genius.git] / genius.spec
... / ...
CommitLineData
1Summary: General tool for mathematics
2Summary(pl.UTF-8): Rozbudowane narzędzie matematyczne
3Name: genius
4Version: 1.0.0
5Release: 1
6License: GPL v3+
7Group: X11/Applications
8Source0: http://ftp.5z.com/pub/genius/%{name}-%{version}.tar.gz
9# Source0-md5: 8c17ac90dab4f586e07627b6148c39b6
10Patch0: %{name}-termcap.patch
11Patch1: %{name}-desktop.patch
12Patch2: %{name}-link.patch
13URL: http://www.jirka.org/genius.html
14BuildRequires: autoconf
15BuildRequires: automake
16BuildRequires: bison
17BuildRequires: flex
18BuildRequires: gmp-devel
19BuildRequires: gnome-common >= 2.8.0-2
20BuildRequires: gtksourceview-devel >= 0.3.0
21BuildRequires: intltool >= 0.21
22BuildRequires: libglade2-devel >= 2.0.1
23BuildRequires: libgnomeui-devel >= 2.4.0
24BuildRequires: mpfr-devel >= 2.2.0
25BuildRequires: libtool
26BuildRequires: ncurses-devel
27BuildRequires: pkgconfig
28BuildRequires: readline-devel
29BuildRequires: rpmbuild(macros) >= 1.311
30BuildRequires: scrollkeeper
31BuildRequires: vte-devel >= 0.8.19
32Requires(post,postun): gtk+2
33Requires(post,postun): hicolor-icon-theme
34Requires(post,postun): scrollkeeper
35Requires(post,postun): shared-mime-info
36Obsoletes: drgenius
37Obsoletes: drgeo
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
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.
53
54%package devel
55Summary: genius header files
56Summary(pl.UTF-8): Pliki nagłówkowe genius
57Group: X11/Development/Libraries
58Requires: %{name} = %{version}-%{release}
59
60%description devel
61Genius header files.
62
63%description devel -l pl.UTF-8
64Pliki nagłówkowe genius.
65
66%prep
67%setup -q
68%patch0 -p1
69%patch1 -p1
70%patch2 -p1
71
72%build
73rm -f missing acinclude.m4
74gnome-doc-common
75cp xmldocs.make help
76%{__libtoolize}
77%{__glib_gettextize}
78%{__intltoolize}
79%{__aclocal}
80%{__autoconf}
81%{__autoheader}
82%{__automake}
83%configure \
84 --disable-static \
85 --enable-gtksourceview \
86 --enable-gnome
87
88%{__make}
89
90%install
91rm -rf $RPM_BUILD_ROOT
92
93%{__make} install \
94 DESTDIR=$RPM_BUILD_ROOT
95
96# Thess files are autogenerated
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}
102
103%find_lang %{name} --with-gnome --all-name
104
105%clean
106rm -rf $RPM_BUILD_ROOT
107
108%post
109%scrollkeeper_update_post
110%update_mime_database
111%update_icon_cache hicolor
112
113%postun
114%update_icon_cache hicolor
115%scrollkeeper_update_postun
116%update_mime_database
117
118%files -f %{name}.lang
119%defattr(644,root,root,755)
120%doc AUTHORS ChangeLog NEWS README TODO
121%attr(755,root,root) %{_bindir}/genius
122%attr(755,root,root) %{_bindir}/gnome-genius
123%dir %{_libdir}/genius
124%attr(755,root,root) %{_libdir}/genius-readline-helper-fifo
125%{_datadir}/genius
126%{_datadir}/mime/packages/genius.xml
127%{_desktopdir}/gnome-genius.desktop
128%{_iconsdir}/hicolor/*/apps/gnome-genius.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%attr(755,root,root) %{_libdir}/genius/libtestplugin.so
135%{_libdir}/genius/libtestplugin.la
136%{_includedir}/genius
This page took 0.062559 seconds and 4 git commands to generate.