jborque / rpms / gnuradio

Forked from rpms/gnuradio 2 years ago
Clone
9a7a3c7
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
9a7a3c7
9a7a3c7
Name:		gnuradio
9a7a3c7
Version:	3.1.1
e78e756
Release:	4%{?dist}
9a7a3c7
Summary:	Software defined radio framework
9a7a3c7
9a7a3c7
Group:		Applications/Engineering
9a7a3c7
License:	GPLv3
9a7a3c7
URL:		http://www.gnuradio.org
9a7a3c7
Source0:	ftp://ftp.gnu.org/gnu/gnuradio/gnuradio-%{version}.tar.gz
9a7a3c7
# missing files from official tarball, upstream knows about this problem.
9a7a3c7
# $ svn export http://gnuradio.org/svn/gnuradio/branches/releases/3.1 gnuradio
9a7a3c7
# $ tar -cfz gnuradio-3.1.1-templates.tar gnuradio-3.1.1/gnuradio-core/src/lib/gengen/*.t
9a7a3c7
Source1:	gnuradio-3.1.1-templates.tar.gz
9a7a3c7
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
9a7a3c7
Patch0:		gnuradio-3.1.1-gcc34.patch
9a7a3c7
9a7a3c7
BuildRequires:	sdcc
9a7a3c7
BuildRequires:	fftw-devel
9a7a3c7
BuildRequires:	cppunit-devel
9a7a3c7
BuildRequires:	wxPython-devel
9a7a3c7
BuildRequires:	xmlto
9a7a3c7
BuildRequires:	graphviz
9a7a3c7
BuildRequires:	boost-devel
9a7a3c7
BuildRequires:	python-devel
9a7a3c7
BuildRequires:	swig
9a7a3c7
BuildRequires:	doxygen
9a7a3c7
BuildRequires:	libusb-devel
9a7a3c7
BuildRequires:	alsa-lib-devel
9a7a3c7
BuildRequires:	SDL-devel
9a7a3c7
9a7a3c7
%description
9a7a3c7
GNU Radio is a collection of software that when combined with minimal 
9a7a3c7
hardware, allows the construction of radios where the actual waveforms 
9a7a3c7
transmitted and received are defined by software. What this means is 
9a7a3c7
that it turns the digital modulation schemes used in today's high 
9a7a3c7
performance wireless devices into software problems.
9a7a3c7
9a7a3c7
%package devel
9a7a3c7
Summary:	GNU Radio
9a7a3c7
Group:		Applications/Engineering
9a7a3c7
Requires:	%{name} = %{version}-%{release}
9a7a3c7
9a7a3c7
%description devel
9a7a3c7
GNU Radio Headers
9a7a3c7
9a7a3c7
%package doc
9a7a3c7
Summary:	GNU Radio
9a7a3c7
Group:		Applications/Engineering
9a7a3c7
Requires:	%{name} = %{version}-%{release}
9a7a3c7
9a7a3c7
%description doc
9a7a3c7
GNU Radio Documentation
9a7a3c7
9a7a3c7
%package examples
9a7a3c7
Summary:	GNU Radio
9a7a3c7
Group:		Applications/Engineering
9a7a3c7
Requires:	%{name} = %{version}-%{release}
9a7a3c7
9a7a3c7
%description examples
9a7a3c7
GNU Radio examples
9a7a3c7
9a7a3c7
%package -n usrp
9a7a3c7
Summary:	Universal Software Radio Peripheral
9a7a3c7
Group:		Applications/Engineering
9a7a3c7
Requires:	%{name} = %{version}-%{release}
9a7a3c7
9a7a3c7
%description -n usrp
9a7a3c7
Gnu Radio Universal Software Radio Peripheral software
9a7a3c7
9a7a3c7
%package -n usrp-devel
9a7a3c7
Summary:	Universal Software Radio Peripheral
9a7a3c7
Group:		Applications/Engineering
9a7a3c7
Requires:	usrp = %{version}-%{release}
9a7a3c7
9a7a3c7
%description -n usrp-devel
9a7a3c7
GNU Radio USRP headers
9a7a3c7
9a7a3c7
%prep
9a7a3c7
%setup -q
9a7a3c7
%setup -q -b 1
9a7a3c7
%patch0 -p1 -b .gcc43
9a7a3c7
9a7a3c7
%build
9a7a3c7
export PATH=%{_libexecdir}/sdcc:$PATH
9a7a3c7
%configure --enable-doxygen --enable-latex-doc --disable-gr-audio-oss
9a7a3c7
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
9a7a3c7
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
9a7a3c7
make %{?_smp_mflags}
9a7a3c7
9a7a3c7
%install
9a7a3c7
rm -rf $RPM_BUILD_ROOT
9a7a3c7
make install DESTDIR=$RPM_BUILD_ROOT
9a7a3c7
9a7a3c7
%clean
9a7a3c7
rm -rf $RPM_BUILD_ROOT
9a7a3c7
9a7a3c7
%post -n gnuradio -p /sbin/ldconfig
9a7a3c7
%postun -n gnuradio -p /sbin/ldconfig
9a7a3c7
9a7a3c7
%post -n gnuradio-devel -p /sbin/ldconfig
9a7a3c7
%postun -n gnuradio-devel -p /sbin/ldconfig
9a7a3c7
9a7a3c7
%post -n usrp -p /sbin/ldconfig
9a7a3c7
%postun -n usrp -p /sbin/ldconfig
9a7a3c7
9a7a3c7
%files
9a7a3c7
%defattr(-,root,root,-)
9a7a3c7
%{python_sitelib}/gnuradio
e78e756
%exclude %{python_sitelib}/gnuradio/_usrp1.so
e78e756
%exclude %{python_sitelib}/gnuradio/usrp*  
9a7a3c7
%{_sysconfdir}/gnuradio
9a7a3c7
%{_libdir}/libgnuradio-core.so.*
9a7a3c7
%{_libdir}/libgnuradio-core-qa.so.*
9a7a3c7
%{_libdir}/libgr_audio_alsa.so.*
9a7a3c7
%{_libdir}/libgromnithread.so.*
9a7a3c7
%config(noreplace)%{_sysconfdir}/gnuradio/conf.d/gr-audio-alsa.conf
9a7a3c7
%config(noreplace)%{_sysconfdir}/gnuradio/conf.d/gnuradio-core.conf
9a7a3c7
%config(noreplace)%{_sysconfdir}/gnuradio/conf.d/gr-wxgui.conf
9a7a3c7
%exclude %{python_sitelib}/gnuradio/*.la
9a7a3c7
9a7a3c7
%files devel
9a7a3c7
%defattr(-,root,root,-)
9a7a3c7
%{_includedir}/gnuradio
9a7a3c7
%{_includedir}/usrp_*
9a7a3c7
%{_libdir}/libgnuradio-core.so
9a7a3c7
%{_libdir}/libgnuradio-core-qa.so
9a7a3c7
%{_libdir}/libgr_audio_alsa.so
9a7a3c7
%{_libdir}/libgromnithread.so
9a7a3c7
%{_libdir}/pkgconfig/*.pc
9a7a3c7
%exclude %{_libdir}/*.la
9a7a3c7
9a7a3c7
%files doc
9a7a3c7
%defattr(-,root,root,-)
9a7a3c7
%doc ChangeLog README README.hacking NEWS INSTALL COPYING AUTHORS
9a7a3c7
%{_docdir}/usrp*
9a7a3c7
%{_docdir}/gnuradio*
9a7a3c7
9a7a3c7
%files examples
9a7a3c7
%defattr(-,root,root,-)
9a7a3c7
%{_datadir}/%{name}/examples
9a7a3c7
%exclude %{_datadir}/%{name}/examples/atsc/*.pyc
9a7a3c7
%exclude %{_datadir}/%{name}/examples/atsc/*.pyo
9a7a3c7
%exclude %{_datadir}/%{name}/examples/audio/*.pyc
9a7a3c7
%exclude %{_datadir}/%{name}/examples/audio/*.pyo
9a7a3c7
%exclude %{_datadir}/%{name}/examples/digital/*.pyc
9a7a3c7
%exclude %{_datadir}/%{name}/examples/digital/*.pyo
9a7a3c7
%exclude %{_datadir}/%{name}/examples/hf_explorer/*.pyc
9a7a3c7
%exclude %{_datadir}/%{name}/examples/hf_explorer/*.pyo
9a7a3c7
%exclude %{_datadir}/%{name}/examples/hf_radio/*.pyc
9a7a3c7
%exclude %{_datadir}/%{name}/examples/hf_radio/*.pyo
9a7a3c7
%exclude %{_datadir}/%{name}/examples/multi-antenna/*.pyc
9a7a3c7
%exclude %{_datadir}/%{name}/examples/multi-antenna/*.pyo
9a7a3c7
%exclude %{_datadir}/%{name}/examples/multi_usrp/*.pyc
9a7a3c7
%exclude %{_datadir}/%{name}/examples/multi_usrp/*.pyo
9a7a3c7
%exclude %{_datadir}/%{name}/examples/network/*.pyc
9a7a3c7
%exclude %{_datadir}/%{name}/examples/network/*.pyo
9a7a3c7
%exclude %{_datadir}/%{name}/examples/trellis/*.pyc
9a7a3c7
%exclude %{_datadir}/%{name}/examples/trellis/*.pyo
9a7a3c7
%exclude %{_datadir}/%{name}/examples/usrp/*.pyc
9a7a3c7
%exclude %{_datadir}/%{name}/examples/usrp/*.pyo
9a7a3c7
9a7a3c7
%files -n usrp
9a7a3c7
%defattr(-,root,root,-)
9a7a3c7
%{_bindir}/usrp*
9a7a3c7
%{_datadir}/usrp
e78e756
%{_libdir}/libusrp.so.*
9a7a3c7
%{python_sitelib}/usrpm
e78e756
%{python_sitelib}/gnuradio/_usrp1.so
e78e756
%{python_sitelib}/gnuradio/usrp*
9a7a3c7
%exclude %{_bindir}/*.pyc
9a7a3c7
%exclude %{_bindir}/*.pyo
9a7a3c7
%exclude %{_libdir}/*.la
9a7a3c7
%exclude %{python_sitelib}/usrpm/*.la
9a7a3c7
9a7a3c7
%files -n usrp-devel
9a7a3c7
%defattr(-,root,root,-)
9a7a3c7
%{_libdir}/libusrp.so
9a7a3c7
9a7a3c7
%changelog
e78e756
* Thu Mar 27 2008 Marek Mahut <mmahut@fedoraproject.org> - 3.1.1-4
a6979c5
- Moving libusrp to gnuradio package
a6979c5
fad7599
* Wed Feb 20 2008 Marek Mahut <mmahut@fedoraproject.org> - 3.1.1-2
9a7a3c7
- Upstream release
9a7a3c7
- Spec file rewrite
9a7a3c7
9a7a3c7
* Mon Mar 12 2007 Trond Danielsen <trond.danielsen@gmail.com> - 3.0.3-1
9a7a3c7
- Initial version.