File gnuradio-git.spec of Package gnuradio-git-20100805

# norootforbuild
# for compilation you need in addition to the distribution oriented pages from gnuradio.org
# follwing packages:
# python-opengl, wxGTK-devel

Name: gnuradio
Summary: GNU software radio
Version: 3.3.1
Release: git_20100805
License: GPL
Group: Productivity/Hamradio/Other
Source: %{name}-%{version}-%{release}.tar.gz
#Source: %{name}-svn.tar.bz2
BuildRoot: %{_tmppath}/build-root-%{name}
Packager: Michael Hartje  <hartje@etech.hs-bremen.de> (DK5HH)
Distribution: %distribution
Prefix: /usr
Summary: gnuradio is a system level design design tool for communication systems
Url: http://gnuradio.org
#Vendor: Yourvendor <if needed>

# Build dependency requirements
##########################
## SUSE, SLES, openSUSE ##
##########################
%if 0%{?suse_version} >= 1120
BuildRequires: autoconf automake libtool make pkg-config swig 
BuildRequires: fftw3-devel cppunit-devel boost-devel guile gsl-devel 
BuildRequires: wxGTK wxGTK-gl wxGTK-compat wxGTK-devel python-wxGTK 
BuildRequires: python-devel python-opengl python-lxml python-numeric python-numpy 
BuildRequires: sdcc boost-devel libusb-devel jack-devel gcc-c++ gcc 
BuildRequires: cross-spu-binutils cppunit-devel 
BuildRequires: alsa-devel SDL-devel qwt-devel libqwtplot3d-devel
%endif
%if 0%{?suse_version} == 1030
BuildRequires: autoconf automake libtool python-devel swig 
BuildRequires: fftw3-devel cppunit-devel boost-devel 
BuildRequires: wxGTK python-wxGTK python-numeric python-numpy 
BuildRequires: sdcc boost libusb-devel guile jack-devel alsa-devel SDL-devel  
BuildRequires: gcc-c++ gcc cross-spu-gcc 
%endif
%if 0%{?suse_version} == 1020
BuildRequires: autoconf automake libtool python-devel swig 
BuildRequires: fftw3-devel cppunit-devel boost-devel 
BuildRequires: wxGTK python-wxGTK python-numeric 
BuildRequires: alsa-devel SDL-devel sdcc
%endif
%if 0%{?suse_version} == 1010
BuildRequires: autoconf automake libtool python-devel swig 
BuildRequires: fftw3-devel cppunit-devel boost-devel 
BuildRequires: wxGTK python-wxGTK python-numeric 
BuildRequires: alsa-devel SDL-devel sdcc
%endif
%if 0%{?suse_version} == 1000
BuildRequires: autoconf automake libtool python-devel swig 
BuildRequires: fftw3-devel cppunit-devel boost-devel 
BuildRequires: wxGTK python-wxGTK python-numeric 
BuildRequires: alsa-devel SDL-devel sdcc
%endif
%if 0%{?suse_version} == 930
BuildRequires: autoconf automake libtool python-devel swig 
BuildRequires: fftw3-devel cppunit-devel boost-devel 
BuildRequires: wxGTK python-wxGTK python-numeric 
BuildRequires: alsa-devel SDL-devel sdcc
%endif
%if 0%{?sles_version} == 10
BuildRequires: autoconf automake libtool python-devel swig 
BuildRequires: fftw3-devel cppunit-devel boost-devel 
BuildRequires: wxGTK python-wxGTK python-numeric 
BuildRequires: alsa-devel SDL-devel sdcc
%endif
%if 0%{?sles_version} == 9
BuildRequires: autoconf automake libtool python-devel swig 
BuildRequires: fftw3-devel cppunit-devel boost-devel 
BuildRequires: wxGTK python-wxGTK python-numeric 
BuildRequires: alsa-devel SDL-devel sdcc
%endif

##########################
##     Fedora Core      ##
##########################
%if 0%{?fedora_version} == 4
BuildRequires:  gcc gtk2-devel make pkg-config
%endif
%if 0%{?fedora_version} == 5 
BuildRequires:  gcc gtk2-devel make pkg-config
%endif
%if 0%{?fedora_version} == 6
BuildRequires:  gcc gtk2-devel make pkg-config
%endif
%if 0%{?fedora_version} == 7
BuildRequires:  gcc gtk2-devel make pkg-config
%endif

##########################
##       Mandriva       ##
##########################
%if 0%{?mandriva_version} == 2006
BuildRequires:  gcc gtk2-devel make pkg-config
%endif
%if 0%{?mandriva_version} == 2007
BuildRequires:  gcc gtk2-devel make pkg-config
%endif

%description
 gnuradio is a system level design tool for software defined radio (SDR)
 communication systems. It can use a wide range of Hardware using COMEDI specifications.
There are some good examples to understand the rich features. 
HF can be obtained from the use of USRP-boards. But for the first experiments you may 
use the ordinary sound card. 

#%package -n %{name}-data
#Summary: Data files used by the bongo system
#Group: Servers/Messaging
#Requires: %{name} = %{version}
#Provides: %{name}-data = %{version}
#
#%description -n %{name}-data
#Data files used by the bongo system

%prep
rm -rf $RPM_BUILD_ROOT 
mkdir $RPM_BUILD_ROOT

%setup -q
#%setup -q -n gnuradio

#%if 0%{?suse_version} < 1020
#%patch2 -p 1
#%endif

%build
#svn
./bootstrap
#GSL_LIBS=/usr/lib/atlas-sse \
#GSL_INCLUDEDIR=/usr/include/gsl \
#ac_cv_header_boost_shared_ptr_hpp=yes \
#./configure --enable-all-components  --with-boost-include-dir=/usr/include/boost \
./configure --enable-all-components   \
--disable-gr-audio-osx --disable-gr-audio-windows \
--disable-gr-audio-portaudio --disable-portaudio \
--disable-gr-gcell --disable-gcell  \
--disable-comedi --disable-gr-comedi \
--disable-usrp2-firmware \
--with-qwtplot3d-incdir=/usr/include/qwtplot3d  \
--prefix=%{prefix} \
--sysconfdir=/etc \
--libdir=%{prefix}/lib/%{name} \
--libexecdir=%{prefix}/lib/%{name} 
#--with-qwtplot3d-incdir=/usr/include/qwtplot3d --with-qwtplot3d-libdir=/usr/lib \
#--disable-usrp2 --disable-gr-usrp2 

#GSL_INCLUDEDIR=/usr/include/gsl \
#GSL_LIBS=/usr/lib/atlas-sse \
#ac_cv_header_boost_shared_ptr_hpp=yes \
make

%install
make DESTDIR=$RPM_BUILD_ROOT install
#mkdir -p $RPM_BUILD_ROOT/usr/bin/
#cp wxapt $RPM_BUILD_ROOT/usr/bin/
mkdir -p $RPM_BUILD_ROOT/etc
#mv $RPM_BUILD_ROOT/%{prefix}/etc/* $RPM_BUILD_ROOT/etc/
mv $RPM_BUILD_ROOT/%{prefix}/%{_lib}/gnuradio/pkgconfig $RPM_BUILD_ROOT/%{prefix}/lib

cd $RPM_BUILD_ROOT
find .
echo "###################" | true
echo %{_lib} | true
echo "###################" | true
echo %{lib} | true
#%fdupes

%post
ldconfig

%postun
ldconfig

%clean
#rm -rRf $RPM_BUILD_ROOT

%package -n %{name}-devel
Summary: gnuradio devel files
Version: %{version}
Release: git
Group:   Productivity/Hamradio/Other
Requires: gnuradio

%description -n %{name}-devel
devel package of gnuradio

%post -n %{name}-devel
ldconfig

%postun -n %{name}-devel
ldconfig

%files -n %{name}-devel
%defattr(-,root,root,0755)
%{prefix}/include/*
#%{prefix}/%{lib}/pkgconfig/*
%{prefix}/lib/pkgconfig/*
#%{prefix}/%{_lib}/lib*.la



%files -n %{name}
%defattr(-,root,root,0755)
%{prefix}/bin/*
%config /etc/gnuradio/*
%dir /etc/gnuradio
#%{prefix}/%{_lib}/*
%{prefix}/%{_lib}/gnuradio/lib*so*
#%{prefix}/%{_lib}/pkgconfig/*
%{prefix}/%{_lib}/gnuradio/lib*.la
# Ergaenzung MH
#%{prefix}/libexec/*
%{prefix}/%{_lib}/gnuradio/gnuradio/*
%{py_sitedir}/*
#%{prefix}/%{_lib}/python2.5/site-packages/
%{prefix}/share/doc/*
%dir %{prefix}/share/gnuradio
%{prefix}/share/gnuradio/*
%dir %{prefix}/share/usrp
%{prefix}/share/usrp/*
%doc AUTHORS README README.hacking ChangeLog NEWS INSTALL COPYING




%changelog -n gnuradio
* Tue Aug 31 2010 -- Michael (DK5HH) hartje@etech.hs-bremen.de
 - version 3.3.1 git_20100805
* Fri Aug 27 2010 -- Michael (DK5HH) hartje@etech.hs-bremen.de
 - version 3.3.0
* Sat Jun 7 2008 - dl9pf@gmx.de
 -Imported into Build Service


openSUSE Build Service is sponsored by