1 %define BUILDCONF Debug
4 Summary: Tizen Location API's for C#
7 Group: Development/Libraries
9 URL: https://www.tizen.org
10 Source0: %{name}-%{version}.tar.gz
11 Source1: %{name}.manifest
12 Source2: %{name}.pc.in
14 BuildRequires: mono-compiler
15 BuildRequires: mono-devel
16 BuildRequires: pkgconfig(glib-2.0)
17 BuildRequires: pkgconfig(csapi-tizen)
20 BuildRequires: pkgconfig(capi-location-manager)
26 Summary: Development package for %{name}
27 Group: Development/Libraries
28 Requires: %{name} = %{version}-%{release}
31 Development package for %{name}
40 xbuild Tizen.Location/Tizen.Location.csproj /p:Configuration=%{BUILDCONF}
43 gacutil -i Tizen.Location/bin/%{BUILDCONF}/Tizen.Location.dll -root "%{buildroot}%{_libdir}" -package tizen
46 mkdir -p %{buildroot}%{_libdir}/pkgconfig
47 sed -e "s#@version@#%{version}#g" \
48 -e "s#@dllpath@#%{dllpath}#g" \
49 -e "s#@dllname@#%{dllname}#g" \
50 %{SOURCE2} > %{buildroot}%{_libdir}/pkgconfig/%{name}.pc
53 gacutil -i %{dllpath}/%{dllname}
56 %manifest %{name}.manifest
60 %{_libdir}/pkgconfig/%{name}.pc