]>
Commit | Line | Data |
---|---|---|
85371828 | 1 | # TODO: |
2 | # - find homepage | |
3 | # - update to 1.5 (i can't find source, only binaries!) | |
dea5d06e | 4 | Summary: A powerful scientific DAL calculator |
30776fe8 | 5 | Summary(pl.UTF-8): Zaawansowany kalkulator naukowy |
dea5d06e RW |
6 | Name: dalc |
7 | Version: 0.1 | |
85371828 | 8 | Release: 6 |
dea5d06e RW |
9 | License: GPL |
10 | Group: Applications/Math | |
c39a7772 | 11 | Source0: http://linuxberg.iol.it/files/console/scientific/%{name}-%{version}.tgz |
b47f40d1 | 12 | # Source0-md5: 7720fdddbab2b72932fa58b139bc5be5 |
297c90cf | 13 | Source1: %{name}.desktop |
06ffdb6d | 14 | Patch0: %{name}-ac_am.patch |
15 | BuildRequires: autoconf | |
16 | BuildRequires: automake | |
19afa6f6 | 17 | BuildRequires: libstdc++-devel |
06ffdb6d | 18 | BuildRequires: libtool |
85371828 | 19 | BuildRequires: ncurses-ext-devel |
dea5d06e RW |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
f3517a60 | 22 | %define _gcc_ver %(%{__cc} -dumpversion | cut -b 1) |
23 | %if %{_gcc_ver} == 2 | |
24 | %define __cxx "%{__cc}" | |
25 | %endif | |
fd0e6281 | 26 | |
dea5d06e RW |
27 | %description |
28 | Dalc is designed to be both powerful and easy to use at the same time. | |
29 | ||
30776fe8 JR |
30 | %description -l pl.UTF-8 |
31 | Dalc ma duże możliwości, jednocześnie będąc łatwym w użyciu. | |
dea5d06e RW |
32 | |
33 | %prep | |
34 | %setup -q | |
35 | %patch0 -p1 | |
36 | ||
37 | %build | |
06a8fa70 | 38 | rm -f missing |
d1cbc8c9 | 39 | %{__libtoolize} |
935ae064 | 40 | %{__aclocal} |
a60697e5 | 41 | %{__autoconf} |
935ae064 | 42 | %{__autoheader} |
a60697e5 | 43 | %{__automake} |
06ffdb6d | 44 | %configure |
45 | %{__make} | |
dea5d06e RW |
46 | |
47 | %install | |
48 | rm -rf $RPM_BUILD_ROOT | |
98c9dab3 | 49 | install -d $RPM_BUILD_ROOT%{_desktopdir} |
ad2fda37 | 50 | |
109bb7ff RW |
51 | %{__make} install \ |
52 | DESTDIR=$RPM_BUILD_ROOT | |
297c90cf | 53 | |
98c9dab3 | 54 | install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
dea5d06e RW |
55 | |
56 | %clean | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %files | |
60 | %defattr(644,root,root,755) | |
dea5d06e RW |
61 | %attr(755,root,root) %{_bindir}/* |
62 | %{_mandir}/man1/* | |
98c9dab3 | 63 | %{_desktopdir}/*.desktop |