Summary: Rael's Binary Grabber
+Summary(pl): ¦ci±gacz binariów Raela
Name: bgrab
Version: 1.3.6
-Release: 1
-Copyright: Free
+Release: 2
+License: Free
Group: Networking/News
-Group(de): Netzwerkwesen/News
-Group(pl): Sieciowe/News
-URL: http://www.student.dtu.dk/~c960941/bgrab/
-Source0: %{name}-%{version}.tgz
+Source0: http://www.student.dtu.dk/~c960941/bgrab/%{name}-%{version}.tgz
Patch0: %{name}-noreplace.patch
Patch1: %{name}-regex.h.patch
+URL: http://www.student.dtu.dk/~c960941/bgrab/
+BuildRequires: libstdc++-devel
+BuildRequires: ncurses-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
keyboard interaction and could be fairly easily scheduled to run from
crond.
+%description -l pl
+Celem tego programu jest automatyczne ¶ci±ganie binarnych za³±czników
+z grup usenetowych. Po podaniu nazwy grupy program ³±czy siê z
+serwerem news, czyta wszystkie wiadomo¶ci z grupy i wyci±ga z nich
+wszelkie binarne za³±czniki (tak¿e wieloczê¶ciowe). Program ten nie
+wymaga interakcji i mo¿e byæ w prosty sposób u¿ywany z crona.
+
%prep
%setup -q
%patch0 -p1
chmod 755 configure
%build
-CPPFLAGS="%{!?debug:$RPM_OPT_FLAGS}%{?debug:-O0 -g} \
- -fno-rtti -fno-exceptions -I%{_includedir}/ncurses"
-CXXFLAGS="%{!?debug:$RPM_OPT_FLAGS}%{?debug:-O0 -g} \
- -fno-rtti -fno-exceptions -I%{_includedir}/ncurses"
-CFLAGS="%{!?debug:$RPM_OPT_FLAGS}%{?debug:-O0 -g} \
- -I%{_includedir}/ncurses"
+CPPFLAGS="%{rpmcflags} -fno-rtti -fno-exceptions -I%{_includedir}/ncurses"
+CXXFLAGS="%{rpmcflags} -fno-rtti -fno-exceptions -I%{_includedir}/ncurses"
+CFLAGS="%{rpmcflags} -I%{_includedir}/ncurses"
%configure
-%{__make}
+%{__make} CXXFLAGS="%{rpmcflags} -fno-rtti -fno-exceptions -I%{_includedir}/ncurses"
+
%install
rm -rf $RPM_BUILD_ROOT
install bgrab $RPM_BUILD_ROOT%{_bindir}
-gzip -9nf COPYING README*
-
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc *.gz
+%doc COPYING README*
%attr(755,root,root) %{_bindir}/*