diff --git a/.gitignore b/.gitignore index d516ec9..6ef2268 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /gpsd-3.0.tar.gz /gpsd-3.1.tar.gz /gpsd-3.3.tar.gz +/gpsd-3.4.tar.gz diff --git a/gpsd-scons.patch b/gpsd-scons.patch deleted file mode 100644 index 2c1ab69..0000000 --- a/gpsd-scons.patch +++ /dev/null @@ -1,43 +0,0 @@ -diff -up gpsd-3.3/SConstruct.scons gpsd-3.3/SConstruct ---- gpsd-3.3/SConstruct.scons 2011-10-29 13:48:53.000000000 +0200 -+++ gpsd-3.3/SConstruct 2011-10-31 15:42:33.616170514 +0100 -@@ -255,7 +255,6 @@ def installdir(dir): - - # Honor the specified installation prefix in link paths. - env.Prepend(LIBPATH=[installdir('libdir')]) --env.Prepend(RPATH=[installdir('libdir')]) - - # Give deheader a way to set compiler flags - if 'MORECFLAGS' in os.environ: -@@ -380,11 +379,8 @@ if config.CheckExecutable('$CHRPATH -v', - # handled sanely by scons on all systems. Not good to use '.' or - # a relative path here; it's a security risk. At install time we - # use chrpath to edit this out of RPATH. -- env.Prepend(LIBPATH=[os.path.realpath(os.curdir)]) -- env.Prepend(RPATH=[os.path.realpath(os.curdir)]) --else: -- print "The chrpath utility is required for GPSD to build." -- quit() -+ pass -+env.Prepend(LIBPATH=[os.path.realpath(os.curdir)]) - - confdefs = ["/* gpsd_config.h. Generated by scons, do not hand-hack. */\n"] - -@@ -962,7 +958,7 @@ if st != 0: - from datetime import datetime - rev = datetime.now().isoformat()[:-4] - revision='#define REVISION "%s"\n' %(rev.strip(),) --env.NoClean(env.Textfile(target="revision.h", source=[revision])) -+#env.NoClean(env.Textfile(target="revision.h", source=[revision])) - - # generate pps_pin.h - pps_pin = env['pps_pin'] -@@ -1102,8 +1098,6 @@ binaryinstall.append(LibraryInstall(env, - if qt_env: - binaryinstall.append(LibraryInstall(qt_env, installdir('libdir'), compiled_qgpsmmlib)) - --env.AddPostAction(binaryinstall, '$CHRPATH -r "%s" "$TARGET"' % installdir('libdir')) -- - if not env['debug'] and not env['profiling'] and env['strip']: - env.AddPostAction(binaryinstall, '$STRIP $TARGET') - diff --git a/gpsd.spec b/gpsd.spec index f6b67d2..564dc25 100644 --- a/gpsd.spec +++ b/gpsd.spec @@ -1,6 +1,6 @@ Name: gpsd -Version: 3.3 -Release: 2%{?dist} +Version: 3.4 +Release: 1%{?dist} Summary: Service daemon for mediating access to a GPS Group: System Environment/Daemons @@ -10,11 +10,10 @@ Source0: http://download.savannah.gnu.org/releases/gpsd/%{name}-%{version}.tar.g Source10: gpsd.service Source11: gpsd.sysconfig BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -# fix RPATH and revision.h -Patch0: gpsd-scons.patch BuildRequires: dbus-devel dbus-glib-devel ncurses-devel xmlto python-devel BuildRequires: scons desktop-file-utils bluez-libs-devel pps-tools-devel +BuildRequires: chrpath %ifnarch s390 s390x BuildRequires: libusb1-devel %endif @@ -72,9 +71,6 @@ can run on a serial terminal or terminal emulator. %prep %setup -q -%patch0 -p1 -b .scons - -echo '#define REVISION "release-%{version}-%{release}"' > revision.h %build export CCFLAGS="%{optflags}" @@ -137,6 +133,12 @@ desktop-file-install --vendor fedora \ # Not needed since gpsd.h is not installed rm %{buildroot}%{_libdir}/{libgpsd.so,pkgconfig/libgpsd.pc} +# Remove RPATH (even the actual string) +for i in %{buildroot}%{python_sitearch}/gps/*.so; do + chrpath -r "" $i + chrpath -d $i +done + %clean rm -rf %{buildroot} @@ -228,6 +230,9 @@ fi %changelog +* Thu Jan 26 2012 Miroslav Lichvar - 3.4-1 +- update to 3.4 + * Fri Jan 13 2012 Fedora Release Engineering - 3.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild diff --git a/sources b/sources index 5c0fb4c..bb2d517 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -4cfdcfd88e925f4d0d6c2272fc573ab5 gpsd-3.3.tar.gz +c01353459faa68834309109d4e868460 gpsd-3.4.tar.gz