Clean spec file and fix build for x86_64 arch. 58/18158/1 accepted/tizen_3.0.2014.q3_common accepted/tizen_3.0.m14.3_ivi accepted/tizen_3.0_ivi accepted/tizen_common accepted/tizen_generic accepted/tizen_ivi accepted/tizen_ivi_panda accepted/tizen_mobile accepted/tizen_tv accepted/tizen_unified accepted/tizen_wearable tizen tizen_3.0 tizen_3.0.2014.q3_common tizen_3.0.2014.q4_common tizen_3.0.2015.q1_common tizen_3.0.2015.q2_common tizen_3.0.m14.2_ivi tizen_3.0.m14.3_ivi tizen_3.0.m1_mobile tizen_3.0.m1_tv tizen_3.0.m2 tizen_3.0_ivi accepted/tizen/3.0/ivi/20161011.044207 accepted/tizen/generic/20140408.095924 accepted/tizen/ivi/20140409.182403 accepted/tizen/ivi/20160218.024819 accepted/tizen/ivi/panda/20140408.203112 accepted/tizen/unified/20170309.035557 submit/tizen/20140408.095940 submit/tizen_3.0.m2/20170104.093752 submit/tizen_3.0_ivi/20161010.000002 submit/tizen_common/20151023.083358 submit/tizen_common/20151026.085049 submit/tizen_ivi/20160217.000000 submit/tizen_ivi/20160217.000005 submit/tizen_mobile/20141120.000000 submit/tizen_unified/20170308.100412 tizen_3.0.2014.q3_common_release tizen_3.0.m14.2_ivi_release tizen_3.0.m14.3_ivi_release tizen_3.0.m1_mobile_release tizen_3.0.m1_tv_release tizen_3.0.m2.a1_mobile_release tizen_3.0.m2.a1_tv_release tizen_3.0_ivi_release
authorRonan Le Martret <ronan@fridu.net>
Mon, 17 Mar 2014 13:19:40 +0000 (14:19 +0100)
committerRonan Le Martret <ronan@fridu.net>
Mon, 17 Mar 2014 13:19:40 +0000 (14:19 +0100)
Change-Id: Ia9decd4f1732d2af968310793aa4c2f5f74aca72
Signed-off-by: Ronan Le Martret <ronan@fridu.net>
packaging/geoclue.spec

index 3313218..c3c9299 100644 (file)
@@ -16,8 +16,8 @@ BuildRequires:  pkgconfig(libxslt)
 
 
 %description
-Geographic information framework GeoClue provides applications access to various geographical information 
- sources using a D-Bus API or a C library. 
+Geographic information framework GeoClue provides applications access to various geographical information
+ sources using a D-Bus API or a C library.
  .
  This package contains the master server for GeoClue.
 
@@ -49,33 +49,27 @@ sources using a D-Bus API or a C library.
 .
 This package provides a tool to search osm data by name and address and to generate synthetic addresses of osm points (reverse geocoding)
 
-
 %prep
 %setup -q -n %{name}-%{version}
 cp %{SOURCE1001} .
 
-
 %build
-export CFLAGS+=" -Wall -g -fPIC"
-
-%autogen
-%configure  --enable-system-bus=yes --disable-gypsy --disable-lbs --disable-xps
-
+export CFLAGS+=" -Wall -g -fPIC -Wformat -w "
+%reconfigure  --enable-system-bus=yes --disable-gypsy --disable-lbs --disable-xps
 make
 
 %install
 %make_install
 rm -rf %{buildroot}/usr/bin/geoclue-test-gui
 
-
 %post -n libgeoclue -p /sbin/ldconfig
 
 %postun -n libgeoclue -p /sbin/ldconfig
 
 %files
 %manifest %{name}.manifest
-/usr/libexec/geoclue-master
-/usr/share/dbus-1/services/org.freedesktop.Geoclue.Master.service
+%{_libexecdir}/geoclue-master
+%{_datadir}/dbus-1/services/org.freedesktop.Geoclue.Master.service
 
 %files -n libgeoclue
 %manifest %{name}.manifest
@@ -83,11 +77,11 @@ rm -rf %{buildroot}/usr/bin/geoclue-test-gui
 
 %files -n libgeoclue-devel
 %manifest %{name}.manifest
-/usr/include/*
+%{_includedir}/*
 %{_libdir}/pkgconfig/*
 
 %files -n geoclue-nominatim
 %manifest %{name}.manifest
-/usr/share/dbus-1/services/org.freedesktop.Geoclue.Providers.Nominatim.service
-/usr/share/geoclue-providers/geoclue-nominatim.provider
-/usr/libexec/geoclue-nominatim
+%{_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Nominatim.service
+%{_datadir}/geoclue-providers/geoclue-nominatim.provider
+%{_libexecdir}/geoclue-nominatim