%define _rc pre
-%define _rel 3
+%define _rel 4
Summary: Synchronization mediator for AvantGo and Pocket PC
Summary(pl.UTF-8): Mediator synchronizacji dla AvantGo i Pocket PC
Name: agsync
Group: Applications/Communications
Source0: http://duskwood.lownewulf.com/%{name}-%{version}-%{_rc}.tgz
Patch0: %{name}-debian.patch
+Patch1: synce-ac.path
# Source0-md5: 74de1b1452a718c85364fab5ce3c0c2a
URL: http://duskwood.lownewulf.com/avantgo.html
BuildRequires: synce-core-lib-devel
%prep
%setup -q -n %{name}-%{version}-%{_rc}
%patch0 -p1
-chmod +x configure
+%patch1 -p1
+
+%{__rm} configure
%build
+%{__autoconf}
%configure
%{__make}
--- /dev/null
+--- agsync-0.2-pre/configure.in~ 2015-08-07 22:32:51.000000000 +0200
++++ agsync-0.2-pre/configure.in 2015-08-07 22:33:19.268565790 +0200
+@@ -48,44 +48,4 @@
+ ]
+ )
+
+-AC_ARG_WITH(librapi2,
+- AC_HELP_STRING(
+- [--with-librapi2[=DIR]],
+- [Search for librapi2 in DIR/include and DIR/lib]),
+- [
+- CPPFLAGS="$CPPFLAGS -I${withval}/include"
+- LDFLAGS="$LDFLAGS -L${withval}/lib"
+- ]
+-)
+-
+-AC_ARG_WITH(librapi2-include,
+- AC_HELP_STRING(
+- [--with-librapi2-include[=DIR]],
+- [Search for librapi2 header files in DIR]),
+- [
+- CPPFLAGS="$CPPFLAGS -I${withval}"
+- ]
+-)
+-
+-AC_ARG_WITH(librapi2-lib,
+- AC_HELP_STRING(
+- [--with-librapi2-lib[=DIR]],
+- [Search for librapi2 library files in DIR]),
+- [
+- LDFLAGS="$LDFLAGS -L${withval}"
+- ]
+-)
+-
+-AC_CHECK_LIB(rapi,CeRapiInit,,
+- [
+- AC_MSG_ERROR([Can't find RAPI library])
+- ]
+-)
+-
+-AC_CHECK_HEADERS(rapi.h,,
+- [
+- AC_MSG_ERROR([Can't find rapi.h])
+- ]
+-)
+-
+ AC_OUTPUT(Makefile mal-files/Makefile mal-files/client/Makefile)