git://git.onelab.eu
/
gnuradio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
oops
[gnuradio.git]
/
gnuradio.spec
diff --git
a/gnuradio.spec
b/gnuradio.spec
index
c68fc0c
..
003741b
100644
(file)
--- a/
gnuradio.spec
+++ b/
gnuradio.spec
@@
-19,8
+19,9
@@
Release: %{release}
License: GPLv3
URL: ftp://ftp.gnu.org/gnu/gnuradio/gnuradio-3.2.2.tar.gz
Group: Productivity/Hamradio/Other
License: GPLv3
URL: ftp://ftp.gnu.org/gnu/gnuradio/gnuradio-3.2.2.tar.gz
Group: Productivity/Hamradio/Other
-Source: %{actual_name}.tar.gz
-Source1: bootstrap.wextoolbox
+Source0: %{actual_name}.tar.gz
+Source1: 10-usrp.rules
+Patch0: gnuradio-3.2-libtool.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@
-39,26
+40,32
@@
Requires: boost >= 1.35
gnuradio is a free software radio toolkit
%prep
gnuradio is a free software radio toolkit
%prep
-
%setup -q -n %{actual_name}
%setup -q -n %{actual_name}
+%patch0 -p1 -b .libtool
%build
export PKG_CONFIG_PATH="/usr/lib/pkgconfig"
# dirty hack to let gnuradio configure find sdcc
%build
export PKG_CONFIG_PATH="/usr/lib/pkgconfig"
# dirty hack to let gnuradio configure find sdcc
-export PATH=$PATH:/usr/libexec/sdcc
-# basically reruns autoconf and automake
+export PATH=%{_libexecdir}/sdcc:$PATH
+
+########## the bootstrap script basically reruns autoconf and automake
%if "%{distro}" == "Fedora" && %{distrorelease} >= 12
%if "%{distro}" == "Fedora" && %{distrorelease} >= 12
-bash -x ./bootstrap.wextoolbox
+autoreconf -i
+%configure --disable-doxygen
+sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
+sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
+make %{?_smp_mflags}
%else
bash -x ./bootstrap
%else
bash -x ./bootstrap
-%endif
%configure --disable-doxygen
make
%configure --disable-doxygen
make
+%endif
%install
rm -rf $RPM_BUILD_ROOT
%install
rm -rf $RPM_BUILD_ROOT
-mkdir $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+install -D -m0644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d/10-usrp.rules
#make DESTDIR=$RPM_BUILD_ROOT install
%makeinstall
#make DESTDIR=$RPM_BUILD_ROOT install
%makeinstall
@@
-111,16
+118,15
@@
Devel package of gnuradio
%dir %{_datadir}/usrp
%{_datadir}/usrp/*
# TO FIX: if the 2 following commands are removed, the rpmbuild fails!
%dir %{_datadir}/usrp
%{_datadir}/usrp/*
# TO FIX: if the 2 following commands are removed, the rpmbuild fails!
-# It's w
+
eird because rev2 and rev3 directories are indeed created at the
+# It's weird because rev2 and rev3 directories are indeed created at the
# right place (/usr/share/rev*) when the rpm is installed...
%{_datadir}/rev2/*
%{_datadir}/rev4/*
# right place (/usr/share/rev*) when the rpm is installed...
%{_datadir}/rev2/*
%{_datadir}/rev4/*
+%config(noreplace) %{_sysconfdir}/udev/rules.d/10-usrp.rules
%doc AUTHORS README README.hacking ChangeLog NEWS INSTALL COPYING
%doc AUTHORS README README.hacking ChangeLog NEWS INSTALL COPYING
-
-
%changelog -n gnuradio
* Wed Oct 8 2009 Thierry Turletti <turletti@sophia.inria.fr> 3.2.2-2.1
- fixed lots of missing parameters...
%changelog -n gnuradio
* Wed Oct 8 2009 Thierry Turletti <turletti@sophia.inria.fr> 3.2.2-2.1
- fixed lots of missing parameters...
@@
-130,6
+136,3
@@
Devel package of gnuradio
* Wed Apr 1 2009 Ben Yahmed Maher <ben.yahmed.maher@gmail.com> 3.2.2-1.2
- change to svn 10720 with fedora 10
* Wed Apr 1 2009 Ben Yahmed Maher <ben.yahmed.maher@gmail.com> 3.2.2-1.2
- change to svn 10720 with fedora 10
-
-
-