]> git.pld-linux.org Git - packages/hostapd.git/blobdiff - hostapd.spec
- some post-split cleanups, Requires() for chkconfig
[packages/hostapd.git] / hostapd.spec
index e1b1c0da8f1c1482734fc8f4a87c66a8090f4a74..86436b207e28f42b09f706ac01ae3fb701993683 100644 (file)
@@ -1,11 +1,9 @@
-%define rel    1
-
 Summary:       HostAP - acts as an access point
 Summary(es):   HostAP - actĂșa como un punto de acceso
 Summary(pl):   HostAP - praca jako access point
 Name:          hostapd
 Version:       0.1.0
-Release:       %{rel}
+Release:       1
 License:       GPL
 Group:         Daemons
 Source0:       http://hostap.epitest.fi/releases/%{name}-%{version}.tar.gz
@@ -13,9 +11,8 @@ Source0:      http://hostap.epitest.fi/releases/%{name}-%{version}.tar.gz
 Source1:       %{name}.init
 Patch0:                %{name}-config.patch
 URL:           http://hostap.epitest.fi/
-BuildRequires: %{kgcc_package}
-BuildRequires: rpmbuild(macros) >= 1.118
-BuildRequires: kernel-headers
+PreReq:                rc-scripts
+Requires(post,preun):  /sbin/chkconfig
 Requires:      kernel-net-hostap >= 0.1.2
 Buildroot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -49,12 +46,13 @@ obs
 %prep
 %setup -q
 %patch0 -p1
+
 %build
 %{__make}
+# TODO: optflags
 
 %install
 rm -rf $RPM_BUILD_ROOT
-
 install -d $RPM_BUILD_ROOT{/sbin,%{_sysconfdir}/{hostap,pcmcia}}
 install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
 
@@ -67,6 +65,9 @@ install hostapd.accept $RPM_BUILD_ROOT%{_sysconfdir}/hostap
 install hostapd.conf $RPM_BUILD_ROOT%{_sysconfdir}/hostap
 install hostapd.deny $RPM_BUILD_ROOT%{_sysconfdir}/hostap
 
+%clean
+rm -rf $RPM_BUILD_ROOT
+
 %post
 /sbin/chkconfig --add hostapd
 if [ -r /var/lock/subsys/hostapd ]; then
@@ -83,9 +84,6 @@ if [ "$1" = "0" ]; then
        /sbin/chkconfig --del hostapd
 fi
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %files
 %defattr(644,root,root,755)
 %doc README
This page took 0.044648 seconds and 4 git commands to generate.