375ec41
%define         crda_version    1.1.0
bb7f9cf
%define         regdb_version   2009.11.25
5d19b80
5d19b80
Name:           crda
e3bba27
Version:        %{crda_version}_%{regdb_version}
558c4c6
Release:        1%{?dist}
5d19b80
Summary:        Regulatory compliance daemon for 802.11 wireless networking
5d19b80
5d19b80
Group:          System Environment/Base
5d19b80
License:        BSD
5d19b80
URL:            http://www.linuxwireless.org/en/developers/Regulatory/CRDA
5d19b80
BuildRoot:      %{_tmppath}/%{name}-%{crda_version}-%{release}-root-%(%{__id_u} -n)
5d19b80
375ec41
BuildRequires:  kernel-headers >= 2.6.27
5d19b80
BuildRequires:  libnl-devel >= 1.1
5d19b80
BuildRequires:  libgcrypt-devel
5d19b80
BuildRequires:  pkgconfig python m2crypto
5d19b80
0b5e932
Requires:       udev, iw
5d19b80
5d19b80
Source0:        http://wireless.kernel.org/download/crda/crda-%{crda_version}.tar.bz2
5d19b80
Source1:        http://wireless.kernel.org/download/wireless-regdb/wireless-regdb-%{regdb_version}.tar.bz2
2671878
Source2:        setregdomain
2671878
2671878
Patch0:         regulatory-rules-setregdomain.patch
5d19b80
5d19b80
%description
5d19b80
CRDA acts as the udev helper for communication between the kernel
5d19b80
and userspace for regulatory compliance. It relies on nl80211
5d19b80
for communication. CRDA is intended to be run only through udev
5d19b80
communication from the kernel.
5d19b80
5d19b80
%prep
5d19b80
%setup -q -c
5d19b80
%setup -q -T -D -a 1
5d19b80
2671878
%patch0 -p1 -b .setregdomain
5d19b80
5d19b80
%build
5d19b80
5d19b80
# Use our own signing key to generate regulatory.bin
5d19b80
cd wireless-regdb-%{regdb_version}
5d19b80
5d19b80
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" maintainer-clean
74253d4
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" REGDB_PRIVKEY=key.priv.pem REGDB_PUBKEY=key.pub.pem
5d19b80
5d19b80
# Build CRDA using the new key and regulatory.bin from above
5d19b80
cd ../crda-%{crda_version}
5d19b80
cp ../wireless-regdb-%{regdb_version}/key.pub.pem pubkeys
5d19b80
5d19b80
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" REG_BIN=../wireless-regdb-%{regdb_version}/regulatory.bin
5d19b80
5d19b80
5d19b80
%install
5d19b80
rm -rf $RPM_BUILD_ROOT
5d19b80
5d19b80
cd crda-%{crda_version}
5d19b80
cp README README.crda
558c4c6
make install DESTDIR=$RPM_BUILD_ROOT PREFIX='' MANDIR=%{_mandir}
5d19b80
5d19b80
cd ../wireless-regdb-%{regdb_version}
5d19b80
cp README README.wireless-regdb
558c4c6
make install DESTDIR=$RPM_BUILD_ROOT PREFIX='' MANDIR=%{_mandir}
5d19b80
2671878
install -D -m0755 %SOURCE2 ${RPM_BUILD_ROOT}/sbin
5d19b80
5d19b80
%clean
5d19b80
rm -rf $RPM_BUILD_ROOT
5d19b80
5d19b80
5d19b80
%files
5d19b80
%defattr(-,root,root,-)
5d19b80
/sbin/%{name}
5d19b80
/sbin/regdbdump
2671878
/sbin/setregdomain
6cda28a
/lib/udev/rules.d/85-regulatory.rules
558c4c6
/lib/%{name}
e3bba27
%{_mandir}/man5/regulatory.bin.5.gz
e3bba27
%{_mandir}/man8/crda.8.gz
e3bba27
%{_mandir}/man8/regdbdump.8.gz
5d19b80
%doc crda-%{crda_version}/LICENSE crda-%{crda_version}/README.crda
5d19b80
%doc wireless-regdb-%{regdb_version}/README.wireless-regdb
5d19b80
5d19b80
%changelog
bb7f9cf
* Wed Dec  2 2009 John W. Linville <linville@redhat.com> 1.1.0_2009.11.25-1
bb7f9cf
- Update wireless-regdb to version 2009.11.25 
bb7f9cf
bb7f9cf
* Wed Nov 11 2009 John W. Linville <linville@redhat.com> 1.1.0_2009.11.10-1
558c4c6
- Update wireless-regdb to version 2009.11.10 
558c4c6
558c4c6
* Wed Oct  1 2009 John W. Linville <linville@redhat.com> 1.1.0_2009.09.08-3
558c4c6
- Move regdb to /lib/crda to facilitate /usr mounted over wireless network
558c4c6
375ec41
* Wed Sep  9 2009 John W. Linville <linville@redhat.com> 1.1.0_2009.09.08-2
558c4c6
- Use kernel-headers instead of kernel-devel
558c4c6
558c4c6
* Wed Sep  9 2009 John W. Linville <linville@redhat.com> 1.1.0_2009.09.08-1
375ec41
- Update wireless-regdb to version 2009.09.08 
375ec41
- Start resetting release number with version updates
375ec41
558c4c6
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0_2009.04.17-12
558c4c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
375ec41
375ec41
* Wed May 13 2009 John W. Linville <linville@redhat.com> 1.1.0_2009.04.17-11
375ec41
- Update crda version to version 1.1.0
375ec41
- Update wireless-regdb to version 2009.04.17 
375ec41
74253d4
* Fri Apr 17 2009 John W. Linville <linville@redhat.com> 1.0.1_2009.04.16-10
74253d4
- Update wireless-regdb version to pick-up recent updates and fixes (#496392)
74253d4
0b5e932
* Tue Mar 31 2009 John W. Linville <linville@redhat.com> 1.0.1_2009.03.09-9
0b5e932
- Add Requires line for iw package (#492762)
0b5e932
- Update setregdomain script to correctly check if COUNTRY is set
0b5e932
2671878
* Thu Mar 19 2009 John W. Linville <linville@redhat.com> 1.0.1_2009.03.09-8
2671878
- Add setregdomain script to set regulatory domain based on timezone
2671878
- Expand 85-regulatory.rules to invoke setregdomain script on device add
2671878
7973458
* Tue Mar 10 2009 John W. Linville <linville@redhat.com> 1.0.1_2009.03.09-7
7973458
- Update wireless-regdb version to pick-up recent updates and fixes (#489560)
7973458
7973458
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1_2009.01.30-6
7973458
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
7973458
c657bd5
* Mon Feb 16 2009 John W. Linville <linville@redhat.com> 1.0.1_2009.01.30-5
c657bd5
- Recognize regulatory.bin files signed with the upstream key (#484982)
c657bd5
c657bd5
* Tue Feb 03 2009 John W. Linville <linville@redhat.com> 1.0.1_2009.01.30-4
e3bba27
- Change version to reflect new wireless-regdb upstream release practices
e3bba27
- Update wireless-regdb version to pick-up recent updates and fixes (#483816)
e3bba27
c657bd5
* Tue Jan 27 2009 John W. Linville <linville@redhat.com> 1.0.1_2009_01_15-3
0591504
- Update for CRDA verion 1.0.1
0591504
- Account for lack of "v" in upstream release tarball naming
6cda28a
- Add patch to let wireless-regdb install w/o being root
0591504
c657bd5
* Thu Jan 22 2009 John W. Linville <linville@redhat.com> v0.9.5_2009_01_15-2
5d19b80
- Revamp based on package review comments
5d19b80
c657bd5
* Tue Jan 20 2009 John W. Linville <linville@redhat.com> v0.9.5_2009_01_15-1
5d19b80
- Initial build