- ac version
[packages/genius.git] / genius.spec
CommitLineData
3def2caa 1# TODO: where is "euclidian geometry tool"? Maybe drgeo-obsoletes is false
d4e81a96 2Summary: General tool for mathematics
975e6971 3Summary(pl.UTF-8): Rozbudowane narzędzie matematyczne
d4e81a96 4Name: genius
689fa32b
MB
5Version: 1.0.22
6Release: 1
7c42f626 7License: GPL v3+
7b0314da 8Group: Applications/Math
689fa32b
MB
9Source0: ftp://ftp.gnome.org/pub/gnome/sources/genius/1.0/%{name}-%{version}.tar.xz
10# Source0-md5: 9fc1dae4cb9a54d36df4981dd75248ae
945b9982 11URL: http://www.jirka.org/genius.html
cc9177e9 12BuildRequires: autoconf >= 2.50
d4e81a96 13BuildRequires: automake
d4e81a96 14BuildRequires: bison
15BuildRequires: flex
b758708b 16BuildRequires: gettext-tools
3def2caa
JB
17BuildRequires: glib2-devel >= 1:2.16.0
18BuildRequires: gmp-devel >= 2.3.0
245f6109 19BuildRequires: gnome-common >= 2.8.0-2
872a00ea 20BuildRequires: gtk+2-devel >= 2:2.18.0
a4a08fbd 21BuildRequires: gtksourceview2-devel >= 2.0.2
675ee19c 22BuildRequires: intltool >= 0.21
62d2fabc 23BuildRequires: libtool
3d713d97 24BuildRequires: mpfr-devel >= 2.3.0
d4e81a96 25BuildRequires: ncurses-devel
88a2b19f 26BuildRequires: pkgconfig
88a2b19f 27BuildRequires: readline-devel
357b464c 28BuildRequires: rpmbuild(find_lang) >= 1.23
859cb5a6 29BuildRequires: rpmbuild(macros) >= 1.311
245f6109 30BuildRequires: scrollkeeper
8af1d0df 31BuildRequires: sed >= 4.0
1a51019d 32BuildRequires: tar >= 1:1.22
689fa32b 33BuildRequires: vte0-devel >= 0.26.0
1a51019d 34BuildRequires: xz >= 1:4.999.7
04f4c346 35Requires(post,postun): desktop-file-utils
7f69a61f 36Requires(post,postun): gtk-update-icon-cache
859cb5a6 37Requires(post,postun): hicolor-icon-theme
245f6109 38Requires(post,postun): scrollkeeper
2035ea19 39Requires(post,postun): shared-mime-info
3def2caa
JB
40Requires: glib2 >= 1:2.16.0
41Requires: gmp >= 2.3.0
42Requires: gtk+2 >= 2:2.18.0
43Requires: gtksourceview2 >= 2.0.2
3d713d97 44Requires: mpfr >= 2.3.0
689fa32b 45Requires: vte0 >= 0.26.0
eb5affb4 46Obsoletes: drgenius
47Obsoletes: drgeo
5dcbbb81 48# sr@Latn vs. sr@latin
49Conflicts: glibc-misc < 6:2.7
d4e81a96 50BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
51
52%description
53Genius is a general tool for mathematics, including a mathematical
54programming language and evaluator, an euclidian geometry tool, a
552D/3D function grapher and a console calculator. The console
56calculator handles multiple precision floating point numbers, infinite
57precision integers, complex numbers and matrixes.
58
7be01d16 59%description -l pl.UTF-8
7b0314da 60Genius to narzędzie do rozwiązywania problemów matematycznych. Zawiera
61ono matematyczny język programowania, narzędzie do geometrii
7be01d16
JR
62euklidesowej, narzędzie do generowania wykresów 2D/3D oraz konsolowy
63kalkulator. Kalkulator obsługuje liczby zmiennoprzecinkowe wysokiej
64precyzji, liczby całkowite, zespolone oraz macierze.
d4e81a96 65
b360bb42 66%package devel
67Summary: genius header files
975e6971 68Summary(pl.UTF-8): Pliki nagłówkowe genius
b360bb42 69Group: X11/Development/Libraries
675ee19c 70Requires: %{name} = %{version}-%{release}
3def2caa
JB
71Requires: glib2-devel >= 1:2.16.0
72Requires: gmp-devel >= 2.3.0
3d713d97 73Requires: mpfr-devel >= 2.3.0
b360bb42 74
75%description devel
76Genius header files.
77
7be01d16
JR
78%description devel -l pl.UTF-8
79Pliki nagłówkowe genius.
b360bb42 80
d4e81a96 81%prep
82%setup -q
68886999 83
689fa32b 84%{__sed} -i 's@AM_BINRELOC@#AM_BINRELOC@' configure.ac
675ee19c 85
d4e81a96 86%build
3def2caa
JB
87%{__rm} acinclude.m4
88#%{__gnome_doc_common}
89#cp xmldocs.make help
d4e81a96 90%{__libtoolize}
859cb5a6
MB
91%{__glib_gettextize}
92%{__intltoolize}
d4e81a96 93%{__aclocal}
94%{__autoconf}
19c2070a 95%{__autoheader}
d4e81a96 96%{__automake}
b360bb42 97%configure \
675ee19c 98 --disable-static \
99 --enable-gtksourceview \
04f4c346 100 --enable-gnome \
3def2caa 101 --disable-scrollkeeper \
04f4c346 102 --disable-update-mimedb
675ee19c 103
4b7a2cae 104%{__make} -j1
d4e81a96 105
106%install
107rm -rf $RPM_BUILD_ROOT
108
109%{__make} install \
110 DESTDIR=$RPM_BUILD_ROOT
56664f6f 111
859cb5a6 112# Obsoleted GNOME mime-info stuff
5548f969 113%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{application-registry,mime-info}
114%{__rm} $RPM_BUILD_ROOT%{_libdir}/genius/libtestplugin.{so,la}
04f4c346 115
68886999 116%find_lang %{name} --with-gnome --with-omf --all-name
d4e81a96 117
53477fba
JB
118%clean
119rm -rf $RPM_BUILD_ROOT
120
2035ea19 121%post
53477fba 122%scrollkeeper_update_post
04f4c346 123%update_desktop_database_post
859cb5a6
MB
124%update_mime_database
125%update_icon_cache hicolor
2035ea19 126
127%postun
859cb5a6 128%update_icon_cache hicolor
53477fba 129%scrollkeeper_update_postun
04f4c346 130%update_desktop_database_postun
859cb5a6 131%update_mime_database
b360bb42 132
d4e81a96 133%files -f %{name}.lang
134%defattr(644,root,root,755)
19c2070a 135%doc AUTHORS ChangeLog NEWS README TODO
859cb5a6
MB
136%attr(755,root,root) %{_bindir}/genius
137%attr(755,root,root) %{_bindir}/gnome-genius
138%dir %{_libdir}/genius
b360bb42 139%attr(755,root,root) %{_libdir}/genius-readline-helper-fifo
d4e81a96 140%{_datadir}/genius
859cb5a6
MB
141%{_datadir}/mime/packages/genius.xml
142%{_desktopdir}/gnome-genius.desktop
3def2caa
JB
143%{_iconsdir}/hicolor/*x*/apps/genius-stock-plot.png
144%{_iconsdir}/hicolor/*x*/apps/gnome-genius.png
145%{_iconsdir}/hicolor/scalable/apps/gnome-genius.svg
b360bb42 146
147%files devel
148%defattr(644,root,root,755)
b360bb42 149%{_includedir}/genius
This page took 0.061422 seconds and 4 git commands to generate.