Summary: Classic Basic interpreter
Summary(pl): Interpreter klasycznego Basica
Name: blassic
-Version: 0.4.1
+Version: 0.5.7
Release: 1
-License: GPL
+License: GPL v2
Group: Development/Languages
-Source0: http://www.xente.mundo-r.com/notfound/blassic/%{name}-%{version}.tgz
-URL: http://www.xente.mundo-r.com/notfound/blassic/
+Source0: http://www.arrakis.es/~ninsesabe/%{name}/%{name}-%{version}.tgz
+# Source0-md5: e99839c048d5ac81a17eeb76f9abd823
+Patch0: %{name}-ac_fix.patch
+URL: http://www.arrakis.es/~ninsesabe/blassic/
BuildRequires: ncurses-devel
+BuildRequires: XFree86-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%prep
%setup -q
+%patch0 -p1
+mv -f aclocal.m4 acinclude.m4
%build
+rm -f missing
+%{__aclocal}
+%{__autoconf}
+%{__automake}
%configure
-# Yes, they don't know how to use ac properly
-%{__make} CPPFLAGS='-I%{_includedir}/ncurses' CXXFLAGS='%{rpmcflags}'
+%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-%{__make} install DESTDIR=$RPM_BUILD_ROOT examplesdir=%{_examplesdir}/%{name}-%{version}
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT \
+ examplesdir=%{_examplesdir}/%{name}-%{version}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc README NEWS AUTHORS THANKS
+%doc AUTHORS NEWS README THANKS TODO
%doc %{_examplesdir}/%{name}-%{version}
%attr(755,root,root) %{_bindir}/*