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