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