- updated gettext BR
[packages/genius.git] / genius.spec
CommitLineData
35d8d7ca 1# TODO: where is "euclidian geometry tool"? Maybe drgeo-obsolotes is false
d4e81a96 2Summary: General tool for mathematics
975e6971 3Summary(pl.UTF-8): Rozbudowane narzędzie matematyczne
d4e81a96 4Name: genius
872a00ea 5Version: 1.0.16
e8040642 6Release: 1
7c42f626 7License: GPL v3+
7b0314da 8Group: Applications/Math
1a51019d 9Source0: http://ftp.5z.com/pub/genius/%{name}-%{version}.tar.xz
872a00ea 10# Source0-md5: 2bd84b1c1ec3232c67e901b7d69f5698
b1f807e6 11Patch0: %{name}-desktop.patch
945b9982 12URL: http://www.jirka.org/genius.html
d4e81a96 13BuildRequires: autoconf
14BuildRequires: automake
d4e81a96 15BuildRequires: bison
16BuildRequires: flex
b758708b 17BuildRequires: gettext-tools
91845d92 18BuildRequires: gmp-devel
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
7b0314da 24BuildRequires: mpfr-devel >= 2.2.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
872a00ea 33BuildRequires: vte0-devel >= 0.17.1
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
eb5affb4 40Obsoletes: drgenius
41Obsoletes: drgeo
5dcbbb81 42# sr@Latn vs. sr@latin
43Conflicts: glibc-misc < 6:2.7
d4e81a96 44BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45
46%description
47Genius is a general tool for mathematics, including a mathematical
48programming language and evaluator, an euclidian geometry tool, a
492D/3D function grapher and a console calculator. The console
50calculator handles multiple precision floating point numbers, infinite
51precision integers, complex numbers and matrixes.
52
7be01d16 53%description -l pl.UTF-8
7b0314da 54Genius to narzędzie do rozwiązywania problemów matematycznych. Zawiera
55ono matematyczny język programowania, narzędzie do geometrii
7be01d16
JR
56euklidesowej, narzędzie do generowania wykresów 2D/3D oraz konsolowy
57kalkulator. Kalkulator obsługuje liczby zmiennoprzecinkowe wysokiej
58precyzji, liczby całkowite, zespolone oraz macierze.
d4e81a96 59
b360bb42 60%package devel
61Summary: genius header files
975e6971 62Summary(pl.UTF-8): Pliki nagłówkowe genius
b360bb42 63Group: X11/Development/Libraries
675ee19c 64Requires: %{name} = %{version}-%{release}
b360bb42 65
66%description devel
67Genius header files.
68
7be01d16
JR
69%description devel -l pl.UTF-8
70Pliki nagłówkowe genius.
b360bb42 71
d4e81a96 72%prep
73%setup -q
74%patch0 -p1
68886999 75
357b464c 76%{__sed} -i -e 's#sr\@Latn#sr\@latin#' configure.in
8af1d0df 77%{__sed} -i 's@AM_BINRELOC@#AM_BINRELOC@' configure.in
68886999 78mv po/sr\@{Latn,latin}.po
675ee19c 79
d4e81a96 80%build
357b464c 81rm -f acinclude.m4
68886999 82%{__gnome_doc_common}
245f6109 83cp xmldocs.make help
d4e81a96 84%{__libtoolize}
859cb5a6
MB
85%{__glib_gettextize}
86%{__intltoolize}
d4e81a96 87%{__aclocal}
88%{__autoconf}
19c2070a 89%{__autoheader}
d4e81a96 90%{__automake}
b360bb42 91%configure \
675ee19c 92 --disable-static \
93 --enable-gtksourceview \
04f4c346
MB
94 --enable-gnome \
95 --disable-update-mimedb
675ee19c 96
4b7a2cae 97%{__make} -j1
d4e81a96 98
99%install
100rm -rf $RPM_BUILD_ROOT
101
102%{__make} install \
103 DESTDIR=$RPM_BUILD_ROOT
56664f6f 104
859cb5a6 105# Obsoleted GNOME mime-info stuff
5548f969 106%{__rm} -r $RPM_BUILD_ROOT%{_datadir}/{application-registry,mime-info}
107%{__rm} $RPM_BUILD_ROOT%{_libdir}/genius/libtestplugin.{so,la}
04f4c346 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
04f4c346 116%update_desktop_database_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
04f4c346 123%update_desktop_database_postun
859cb5a6 124%update_mime_database
b360bb42 125
d4e81a96 126%files -f %{name}.lang
127%defattr(644,root,root,755)
19c2070a 128%doc AUTHORS ChangeLog NEWS README TODO
859cb5a6
MB
129%attr(755,root,root) %{_bindir}/genius
130%attr(755,root,root) %{_bindir}/gnome-genius
131%dir %{_libdir}/genius
b360bb42 132%attr(755,root,root) %{_libdir}/genius-readline-helper-fifo
d4e81a96 133%{_datadir}/genius
859cb5a6
MB
134%{_datadir}/mime/packages/genius.xml
135%{_desktopdir}/gnome-genius.desktop
4b7a2cae 136%{_iconsdir}/hicolor/*/apps/*.png
b360bb42 137
138%files devel
139%defattr(644,root,root,755)
b360bb42 140%{_includedir}/genius
This page took 0.061121 seconds and 4 git commands to generate.