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