rpms/zidrav/devel zidrav-rpm.patch, NONE, 1.1 zidrav.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Dominik Mierzejewski (rathann)
fedora-extras-commits at redhat.com
Wed Sep 27 09:02:11 UTC 2006
Author: rathann
Update of /cvs/extras/rpms/zidrav/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv13859/devel
Modified Files:
.cvsignore sources
Added Files:
zidrav-rpm.patch zidrav.spec
Log Message:
auto-import zidrav-1.2.0-2 on branch devel from zidrav-1.2.0-2.src.rpm
zidrav-rpm.patch:
--- NEW FILE zidrav-rpm.patch ---
--- zidrav4unix-1.2.0/Makefile.r 2005-05-19 22:13:43.000000000 +0200
+++ zidrav4unix-1.2.0/Makefile 2006-09-21 23:11:01.000000000 +0200
@@ -1,12 +1,29 @@
+CXXFLAGS=-O2 -Wall
+BINDIR=/usr/bin
+MANDIR=/usr/share/man
+ARCH=$(shell arch)
+ifeq ($(ARCH),ppc)
+CXXFLAGS+= -DCPU_BIGENDIAN
+endif
+
+all: zidrav
+
zidrav: zidrav.cpp flayer.o core.o flayer.h
- g++ -O2 -Wall -o zidrav zidrav.cpp flayer.o core.o
+ g++ $(CXXFLAGS) -o zidrav zidrav.cpp flayer.o core.o
flayer.o: flayer.cpp core.h
- g++ -O2 -Wall -c flayer.cpp
+ g++ $(CXXFLAGS) -c flayer.cpp
core.o: core.cpp core.h
- g++ -O2 -Wall -c core.cpp
+ g++ $(CXXFLAGS) -c core.cpp
.PHONY:
clean:
-rm *.o zidrav
+
+install:
+ mkdir -p $(DESTDIR)$(BINDIR)
+ mkdir -p $(DESTDIR)$(MANDIR)/man1
+ install -m755 zidrav $(DESTDIR)$(BINDIR)
+ install -m644 zidrav.1 $(DESTDIR)$(MANDIR)/man1
+
--- NEW FILE zidrav.spec ---
Summary: Zorba's Incredible Data Repairer And Verifier
Name: zidrav
Version: 1.2.0
Release: 2%{?dist}
URL: http://sourceforge.net/projects/zidrav
Group: Applications/File
Source: http://switch.dl.sourceforge.net/sourceforge/zidrav/%{name}4unix-%{version}.tar.gz
Patch: %{name}-rpm.patch
License: GPL
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
ZIDRAV stands for "Zorba's Incredible Data Repairer And Verifier", and is an
extremely useful tool for cross-checking files that have been transfered via
HTTP, FTP, or some other method. What it does, is generates a checksum file,
and then by comparing that checksum with the original file, it creates a patch
file that can repair the corrupted file. Very cool, and saves re-downloading.
%prep
%setup -q -n %{name}4unix-%{version}
%patch0 -p1 -b .r
%build
CXXFLAGS="$RPM_OPT_FLAGS"
%ifarch ppc
CXXFLAGS="$CXXFLAGS -DCPU_BIGENDIAN"
%endif
%{__make} %{?_smp_mflags} CXXFLAGS="$RPM_OPT_FLAGS"
%install
%{__rm} -rf $RPM_BUILD_ROOT
# fix DOS line endings
tr -d '\r' <zidrav.txt >zidrav.txt.cr && mv zidrav.txt.cr zidrav.txt
%{__make} DESTDIR=$RPM_BUILD_ROOT install
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc COPYING Changelog README TODO zidrav.txt
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.*
%changelog
* Thu Sep 21 2006 Dominik 'Rathann' Mierzejewski <rpm at greysector.net> 1.2.0-2
- use macros more consistently
* Thu Sep 21 2006 Dominik 'Rathann' Mierzejewski <rpm at greysector.net> 1.2.0-1
- initial build
Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/zidrav/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 27 Sep 2006 09:01:07 -0000 1.1
+++ .cvsignore 27 Sep 2006 09:02:11 -0000 1.2
@@ -0,0 +1 @@
+zidrav4unix-1.2.0.tar.gz
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/zidrav/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 27 Sep 2006 09:01:07 -0000 1.1
+++ sources 27 Sep 2006 09:02:11 -0000 1.2
@@ -0,0 +1 @@
+51f90a85723cae6f925efde35ce124c9 zidrav4unix-1.2.0.tar.gz
More information about the fedora-extras-commits
mailing list