LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File libuhd003.spec of Package libuhd (Project home:surligas:gnuradio)

Name:           libuhd003
# List of additional build dependencies
BuildRequires:  gcc-c++ libxml2-devel fdupes gcc python-cheetah cmake docutils orc doxygen libusb-1_0-0 libusb-1_0-devel python python-devel boost-devel pkg-config
Version:        3.5.0
Release:        1
License:        GNU General Public License version 3.0 (GPLv3) 
Source:         %{name}-%{version}.tar.gz
Group:          Hardware/Other 
Summary:        The UHD driver
Url:            http://ettus-apps.sourcerepo.com/redmine/ettus/projects/uhd/wiki
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
The UHD is the "Universal Software Radio Peripheral" hardware driver. 
The goal of the UHD is to provide a host driver and API for current
and future Ettus Research products. Users will be able to use the
UHD driver standalone or with 3rd party applications.




%prep
%setup -q -n %{name}-%{version}

%build

cd host
mkdir build
cd build
%ifarch x86_64
cmake -DLIB_SUFFIX=64 -DCMAKE_INSTALL_PREFIX=%{_prefix} ..
%else
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} ..
%endif
make %{?_smp_mflags}





%install
cd host/build
%make_install

%fdupes -s %{buildroot}%{_defaultdocdir}

# Move documentation at the default docdir
mkdir -p  %{buildroot}/%{_docdir}/uhd
mv %{buildroot}%{_prefix}/share/doc/uhd %{buildroot}%{_docdir}/
mv %{buildroot}%{_prefix}/share/uhd/utils/usrp_n2xx_simple_net_burner %{buildroot}%{_bindir}
mv %{buildroot}%{_prefix}/share/uhd/utils/query_gpsdo_sensors %{buildroot}%{_bindir}
mv %{buildroot}%{_prefix}/share/uhd/utils/*[!.rules] %{buildroot}%{_bindir}
mv %{buildroot}%{_prefix}/share/uhd/examples/* %{buildroot}%{_bindir}
mv %{buildroot}%{_prefix}/share/uhd/tests/* %{buildroot}%{_bindir}

rm -rf %{buildroot}%{_prefix}/share/uhd/tests
rm -rf %{buildroot}%{_prefix}/share/uhd/examples

%clean
rm -rf %buildroot

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%package -n libuhd-devel
Summary:        Development files for gnuradio
Url:            http://ettus-apps.sourcerepo.com/redmine/ettus/projects/uhd/wiki
Group:          Development/Libraries/Other
Requires:       %{name} = %{version}-%{release} python-tk
Recommends:     %{name}-doc
AutoReq:        on

%description -n libuhd-devel
The UHD is the "Universal Software Radio Peripheral" hardware driver. 
The goal of the UHD is to provide a host driver and API for current
and future Ettus Research products. Users will be able to use the
UHD driver standalone or with 3rd party applications. This package 
contains all the necessary tools, examples and include files
for development with the UHD Driver.

%package doc
Summary:        Documentation files for uhd
Group:          Documentation/Other
BuildArch:      noarch
Url:            http://ettus-apps.sourcerepo.com/redmine/ettus/projects/uhd/wiki

%description doc
This package contains the documentation for the Universal Hardware Driver (UHD).

%files
%defattr(-,root,root)
%{_libdir}/*.so.*.*

%files -n libuhd-devel
%defattr(-,root,root)
%dir %{_includedir}/uhd
%dir %{_prefix}/share/uhd
%{_prefix}/share/uhd/*
%{_includedir}/uhd/*
%{_bindir}/*
%{_libdir}/libuhd.so
%{_libdir}/libuhd.so.003
%{_libdir}/pkgconfig/uhd.pc


%files doc
%defattr(-,root,root)
%dir %{_docdir}/uhd
%{_docdir}/uhd/*


%changelog
* Tue Nov 27 2012 surligas@csd.uoc.gr
- update the library to the 3.5.0 version
* Fri Jun 15 2012 surligas@csd.uoc.gr
- packaged latest libuhd version 3.4.2