]> git.pld-linux.org Git - packages/bgrab.git/commitdiff
- spec adapterized and make %%{debug} ready.
authorkloczek <kloczek@pld-linux.org>
Fri, 9 Feb 2001 20:31:52 +0000 (20:31 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    bgrab.spec -> 1.4

bgrab.spec

index ecd0b6dc55471478bdc0cc2d3df7227649240b62..f6e913e1586f747934907e74402b93364e741282 100644 (file)
@@ -4,19 +4,20 @@ Version:      1.3.6
 Release:       1
 Copyright:     Free
 Group:         Networking/News
+Group(de):     Netzwerkwesen/News
 Group(pl):     Sieciowe/News
 URL:           http://www.student.dtu.dk/~c960941/bgrab/
 Source0:       %{name}-%{version}.tgz
-Patch0:                bgrab-noreplace.patch
-Patch1:                bgrab-regex.h.patch
+Patch0:                %{name}-noreplace.patch
+Patch1:                %{name}-regex.h.patch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 The purpose of this program is to automate the downloading of binary
-attachments from UseNet Newsgroups.  Given a group name, this program
-will connect to a news server, read all messages in that group and 
+attachments from UseNet Newsgroups. Given a group name, this program
+will connect to a news server, read all messages in that group and
 extract any binary attachments included in any of those messages
-(including multipart attachments).  This program does not require any
+(including multipart attachments). This program does not require any
 keyboard interaction and could be fairly easily scheduled to run from
 crond.
 
@@ -27,11 +28,12 @@ crond.
 chmod 755 configure
 
 %build
-CPPFLAGS="$RPM_OPT_FLAGS -fno-rtti -fno-exceptions -I/usr/include/ncurses"
-CXXFLAGS="$RPM_OPT_FLAGS -fno-rtti -fno-exceptions -I/usr/include/ncurses"
-CFLAGS="$RPM_OPT_FLAGS -I/usr/include/ncurses"
-LDFLAGS="-s"
-export CFLAGS CXXFLAGS CPPFLAGS LDFLAGS
+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"
 %configure
 
 %{__make}
@@ -42,8 +44,6 @@ install -d $RPM_BUILD_ROOT%{_bindir}
 
 install bgrab $RPM_BUILD_ROOT%{_bindir}
 
-strip --strip-unneeded $RPM_BUILD_ROOT%{_bindir}/*
-
 gzip -9nf COPYING README*
 
 %clean
@@ -51,6 +51,5 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc {COPYING,README*}.gz
-
+%doc *.gz
 %attr(755,root,root) %{_bindir}/*
This page took 0.039823 seconds and 4 git commands to generate.