]> git.pld-linux.org Git - packages/aircrack-ptw.git/blobdiff - aircrack-ptw.spec
- rel 1
[packages/aircrack-ptw.git] / aircrack-ptw.spec
index 3ff57c4085c151c61cf447f3e9e8a89abbc15ff7..13e4d8f351b93835b0706e30275b8f987d7bd549 100644 (file)
@@ -1,15 +1,15 @@
-# TODO: optflags
 Summary:       Faster then aircrack-ng WEP key cracker
 Summary(pl.UTF-8):     Szybszy niż aircrack-ng łamacz kluczy WEP
 Name:          aircrack-ptw
 Version:       1.0.0
-Release:       0.1
+Release:       1
 License:       GPL
 Group:         Applications/Networking
 Source0:       http://www.cdc.informatik.tu-darmstadt.de/aircrack-ptw/download/%{name}-%{version}.tar.gz
 # Source0-md5: 1d7d84d1e69189bc1397db3f565c183a
 URL:           http://www.cdc.informatik.tu-darmstadt.de/aircrack-ptw/
 BuildRequires: libpcap-devel
+BuildRequires: sed >= 4.0
 Requires:      aircrack-ng
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -28,6 +28,8 @@ wynosi około 80%, a przy 85000 około 95%.
 %prep
 %setup -q
 
+sed -i -e 's/gcc/%{__cc}/;s/-O3/%{rpmcflags}/' Makefile
+
 %build
 %{__make}
 
@@ -35,7 +37,7 @@ wynosi około 80%, a przy 85000 około 95%.
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_bindir}
 
-install -m 755 aircrack-ptw $RPM_BUILD_ROOT%{_bindir}
+install aircrack-ptw $RPM_BUILD_ROOT%{_bindir}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.064736 seconds and 4 git commands to generate.