- adapted for 1.0.1 version
[packages/genius.git] / genius.spec
CommitLineData
d4e81a96 1Summary: General tool for mathematics
975e6971 2Summary(pl.UTF-8): Rozbudowane narzędzie matematyczne
d4e81a96 3Name: genius
8af1d0df 4Version: 1.0.1
5Release: 1
7c42f626 6License: GPL v3+
d4e81a96 7Group: X11/Applications
7c42f626 8Source0: http://ftp.5z.com/pub/genius/%{name}-%{version}.tar.gz
8af1d0df 9# Source0-md5: a043f2cb20975034100ce5964fe5c9de
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
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
859cb5a6 73%patch2 -p1
8af1d0df 74%{__sed} -i 's@AM_BINRELOC@#AM_BINRELOC@' configure.in
675ee19c 75
d4e81a96 76%build
77rm -f missing acinclude.m4
245f6109 78gnome-doc-common
79cp xmldocs.make help
d4e81a96 80%{__libtoolize}
859cb5a6
MB
81%{__glib_gettextize}
82%{__intltoolize}
d4e81a96 83%{__aclocal}
84%{__autoconf}
19c2070a 85%{__autoheader}
d4e81a96 86%{__automake}
b360bb42 87%configure \
675ee19c 88 --disable-static \
89 --enable-gtksourceview \
90 --enable-gnome
91
d4e81a96 92%{__make}
93
94%install
95rm -rf $RPM_BUILD_ROOT
96
97%{__make} install \
98 DESTDIR=$RPM_BUILD_ROOT
56664f6f 99
53477fba 100# Thess files are autogenerated
859cb5a6
MB
101rm -f $RPM_BUILD_ROOT%{_datadir}/mime/{XMLnamespaces,aliases,globs,magic,mime.cache,subclasses}
102rm -rf $RPM_BUILD_ROOT%{_datadir}/mime/text
103
104# Obsoleted GNOME mime-info stuff
105rm -rf $RPM_BUILD_ROOT%{_datadir}/{application-registry,mime-info}
2035ea19 106
5dcbbb81 107[ -d $RPM_BUILD_ROOT%{_datadir}/locale/sr@latin ] || \
108 mv -f $RPM_BUILD_ROOT%{_datadir}/locale/sr@{Latn,latin}
d4e81a96 109%find_lang %{name} --with-gnome --all-name
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
245f6109 135%{_omf_dest_dir}/%{name}
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.140878 seconds and 4 git commands to generate.