/[packages]/cauldron/geoclue/current/SPECS/geoclue.spec
ViewVC logotype

Contents of /cauldron/geoclue/current/SPECS/geoclue.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 74381 - (show annotations) (download)
Sat Mar 19 07:16:46 2011 UTC (9 years, 4 months ago) by dmorgan
File size: 5846 byte(s)
Fix buildrequires
1 Name: geoclue
2 Version: 0.12.0
3 Release: %mkrel 4
4 Summary: A modular geoinformation service
5
6 Group: Networking/Other
7 License: LGPLv2
8 URL: http://geoclue.freedesktop.org/
9 Source0: http://folks.o-hand.com/jku/geoclue-releases/%{name}-%{version}.tar.gz
10 Patch0: geoclue-nm08.patch
11 Patch1: geoclue-NMCrash.patch
12
13 BuildRequires: dbus-devel
14 BuildRequires: dbus-glib-devel
15 BuildRequires: gammu-devel
16 BuildRequires: glib2-devel
17 BuildRequires: libxml2-devel
18 BuildRequires: libsoup-devel
19 BuildRequires: libGConf2-devel
20 BuildRequires: gtk2-devel
21 BuildRequires: NetworkManager-devel
22 BuildRequires: NetworkManager-glib-devel
23 BuildRequires: gypsy-devel
24 BuildRequires: gtk-doc
25 BuildRequires: sqlite3-devel
26 Obsoletes: geoclue-gpsd
27
28 #Needed for NetworkManager patch
29 BuildRequires: libtool
30
31 Requires: dbus
32
33 %description
34 Geoclue is a modular geoinformation service built on top of the D-Bus
35 messaging system. The goal of the Geoclue project is to make creating
36 location-aware applications as simple as possible.
37
38 %files
39 %defattr(-,root,root,-)
40 %doc AUTHORS COPYING README
41 %dir %{_datadir}/geoclue-providers
42 %{_datadir}/dbus-1/services/org.freedesktop.Geoclue.Master.service
43 %{_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Example.service
44 %{_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Geonames.service
45 %{_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Hostip.service
46 %{_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Localnet.service
47 %{_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Manual.service
48 %{_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Nominatim.service
49 %{_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Plazes.service
50 %{_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Skyhook.service
51 %{_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Yahoo.service
52 %{_datadir}/geoclue-providers/geoclue-example.provider
53 %{_datadir}/geoclue-providers/geoclue-geonames.provider
54 %{_datadir}/geoclue-providers/geoclue-hostip.provider
55 %{_datadir}/geoclue-providers/geoclue-localnet.provider
56 %{_datadir}/geoclue-providers/geoclue-manual.provider
57 %{_datadir}/geoclue-providers/geoclue-nominatim.provider
58 %{_datadir}/geoclue-providers/geoclue-plazes.provider
59 %{_datadir}/geoclue-providers/geoclue-skyhook.provider
60 %{_datadir}/geoclue-providers/geoclue-yahoo.provider
61 %{_libexecdir}/geoclue-example
62 %{_libexecdir}/geoclue-geonames
63 %{_libexecdir}/geoclue-hostip
64 %{_libexecdir}/geoclue-localnet
65 %{_libexecdir}/geoclue-manual
66 %{_libexecdir}/geoclue-nominatim
67 %{_libexecdir}/geoclue-master
68 %{_libexecdir}/geoclue-plazes
69 %{_libexecdir}/geoclue-skyhook
70 %{_libexecdir}/geoclue-yahoo
71
72 #--------------------------------------------------------------------
73
74 %define libgeoclue_major 0
75 %define libgeoclue %mklibname geoclue %{libgeoclue_major}
76
77 %package -n %libgeoclue
78 Summary: A modular geoinformation service
79 Group: System/Libraries
80
81 %description -n %libgeoclue
82 A modular geoinformation service
83
84 %files -n %libgeoclue
85 %defattr(-,root,root)
86 %_libdir/libgeoclue.so.%{libgeoclue_major}*
87
88 #--------------------------------------------------------------------
89
90 %package devel
91 Summary: Development package for geoclue
92 Group: Development/Other
93 Requires: %{name} = %{version}-%{release}
94 Requires: dbus-devel
95 Requires: libxml2-devel
96 Requires: pkgconfig
97 Requires: %libgeoclue = %version-%release
98 %description devel
99 Files for development with geoclue.
100
101 %files devel
102 %defattr(-,root,root,-)
103 %{_includedir}/geoclue
104 %{_libdir}/pkgconfig/geoclue.pc
105 %{_libdir}/libgeoclue.so
106
107 #--------------------------------------------------------------------
108
109 %package doc
110 Summary: Developer documentation for geoclue
111 Group: Books/Computer books
112 Requires: %{name} = %{version}-%{release}
113 BuildArch: noarch
114
115 %description doc
116 Developer documentation for geoclue
117
118 %files doc
119 %defattr(-,root,root,-)
120 %{_datadir}/gtk-doc/html/geoclue/
121
122 #--------------------------------------------------------------------
123
124 %package gui
125 Summary: Testing gui for geoclue
126 Group: Networking/Other
127 Requires: %{name} = %{version}-%{release}
128
129 %description gui
130 Testing gui for geoclue
131
132 %files gui
133 %defattr(-,root,root,-)
134 %{_bindir}/geoclue-test-gui
135
136 #--------------------------------------------------------------------
137
138 %package gypsy
139 Summary: gypsy provider for geoclue
140 Group: Networking/Other
141 Requires: %{name} = %{version}-%{release}
142
143 %description gypsy
144 A gypsy provider for geoclue
145
146 %files gypsy
147 %defattr(-,root,root,-)
148 %{_libexecdir}/geoclue-gypsy
149 %{_datadir}/geoclue-providers/geoclue-gypsy.provider
150 %{_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Gypsy.service
151
152 #--------------------------------------------------------------------
153
154 %package gsmloc
155 Summary: gsmloc provider for geoclue
156 Group: Networking/Other
157 Requires: %{name} = %{version}-%{release}
158
159 %description gsmloc
160 A gsmloc provider for geoclue
161
162 %files gsmloc
163 %defattr(-,root,root,-)
164 %{_libexecdir}/geoclue-gsmloc
165 %{_datadir}/geoclue-providers/geoclue-gsmloc.provider
166 %{_datadir}/dbus-1/services/org.freedesktop.Geoclue.Providers.Gsmloc.service
167
168 #--------------------------------------------------------------------
169
170 %prep
171 %setup -q
172 %patch0 -p1 -b .nm08
173 %patch1 -p1 -b .nmCrash
174
175 # Need this for the NM-0.8 patch
176 libtoolize
177 gtkdocize
178 autoreconf
179
180 %build
181 %configure --disable-static --enable-gtk-doc --enable-networkmanager=yes --enable-gypsy=yes --enable-skyhook=yes --enable-gsmloc=yes
182 make %{?_smp_mflags} V=1
183
184 %install
185 rm -rf %{buildroot}
186 make install DESTDIR=%{buildroot} INSTALL='install -p'
187
188 #Remove libtool archives.
189 find %{buildroot} -name '*.la' -exec rm -f {} ';'
190
191 # Install the test gui as it seems the test isn't installed any more
192 mkdir $RPM_BUILD_ROOT%{_bindir}
193 cp test/.libs/geoclue-test-gui $RPM_BUILD_ROOT%{_bindir}/
194
195 %clean
196 rm -rf $RPM_BUILD_ROOT
197

  ViewVC Help
Powered by ViewVC 1.1.28