Name: strongswan
Summary: StrongSwan - An OpenSource IPsec-based VPN Solution
Version: 5.5.1
-Release: 1
-Group: Tizen/Security
-License: GPLv2 (strongswan), Samsung Proprietary License
+Release: 2
+Group: Security/Service
+License: GPL-2.0+
URL: http://www.strongswan.org/
Source0: %{name}-%{version}.tar.gz
Source1001: strongswan.manifest
+#BuildRequires: pkgconfig(gio-2.0)
+#BuildRequires: pkgconfig(glib-2.0)
+#Buildrequires: pkgconfig(libcurl)
+#BuildRequires: pkgconfig(openssl)
+#BuildRequires: pkgconfig(sqlite3)
#BuildRequires: pkgconfig(cert-svc)
-BuildRequires: pkgconfig(gio-2.0)
-BuildRequires: pkgconfig(glib-2.0)
-Buildrequires: pkgconfig(libcurl)
-BuildRequires: pkgconfig(openssl)
#BuildRequires: pkgconfig(secure-storage)
-BuildRequires: pkgconfig(sqlite3)
-BuildRequires: pkgconfig(vconf)
-BuildRequires: pkgconfig(vconf-internal-keys)
-BuildRequires: pkgconfig(tapi)
-Buildrequires: pkgconfig(dlog)
-BuildRequires: pkgconfig(libsystemd-daemon)
-BuildRequires: autoconf
-BuildRequires: automake
BuildRequires: bison
-BuildRequires: flex
BuildRequires: gperf
-BuildRequires: gettext-tools
-BuildRequires: glibc-devel
-BuildRequires: libcap-devel
-BuildRequires: libtool
-BuildRequires: perl
-#BuildRequires: sec-mngr-svc
-#BuildRequires: sec-mngr-svc-devel
-#BuildRequires: pkgconfig(skmm)
-Buildrequires: systemd-devel
-Requires(preun): /usr/bin/systemctl
-Requires(post): /usr/bin/systemctl
-Requires(postun): /usr/bin/systemctl
-Requires: systemd
+BuildRequires: flex
+BuildRequires: python
+
%description
StrongSwan - An OpenSource IPsec-based VPN Solution
-%define devel_root /opt/usr/devel
-%define make_dirs SRCDIR=../src DESTDIR=%{buildroot} DEVDIR=%{devel_root}
-
%prep
-rm -rf %{buildroot}
-
%setup -q
cp -a %{SOURCE1001} .
%build
-%if 0%{?sec_build_binary_debug_enable}
-export CFLAGS="$CFLAGS -DTIZEN_DEBUG_ENABLE"
-export CXXFLAGS="$CXXFLAGS -DTIZEN_DEBUG_ENABLE"
-export FFLAGS="$FFLAGS -DTIZEN_DEBUG_ENABLE"
-%endif
-
-#Dongwon#ENABLE_USERLAND
-%define enable_userland 1
-%if 0%{enable_userland} == 0
-%define USERLAND_PLUGINS --enable-socket-default
-%else
-export CFLAGS="${CFLAGS} -DENABLE_USERLAND"
-%define USERLAND_PLUGINS --enable-socket-default --enable-kernel-libipsec
-%endif
-
-#Dongwon#ENABLE_EAPAKA
-%define enable_eapaka 1
-%if 0%{enable_eapaka} == 0
-%define EAPAKA_PLUGINS --disable-gmp
-%define WITHOPT_SIMAKA --without-simaka
-%else
-export CFLAGS="${CFLAGS} -DENABLE_EAPAKA"
-%define WITHOPT_SIMAKA --with-simaka
-%define EAPAKA_PLUGINS --disable-gmp --enable-eap-aka --enable-eap-identity --enable-eap-md5 --enable-eap-simaka-reauth --enable-eap-simaka-pseudonym
-%endif
-# --enable-eap-mschapv2 --enable-eap-gtc --enable-eap-tls
-
-export CFLAGS="${CFLAGS} -DCAPABILITIES"
-
#cd strongswan-%{version}
-libtoolize --force
-aclocal
-autoheader
-automake -a
-autoconf
export CFLAGS="${CFLAGS} -fPIE"
export LDFLAGS="${LDFLAGS} -pie"
-%configure --libexecdir=%{_bindir} --with-ipsecdir=%{_bindir} --with-ipseclibdir=%{_libdir} --with-strongswan-conf=%{_sysconfdir}/strongswan.conf --enable-curl --enable-monolithic --enable-openssl --enable-unity --enable-ctr --enable-gcm --disable-stroke --disable-updown %{USERLAND_PLUGINS} %{EAPAKA_PLUGINS}
+%configure --libexecdir=%{_bindir} --with-ipsecdir=%{_bindir} --with-ipseclibdir=%{_libdir} --with-strongswan-conf=%{_sysconfdir}/strongswan.conf --enable-monolithic --enable-unity --disable-gmp --disable-pki --disable-stroke --disable-swanctl
-
-make %{?jobs:-j%jobs}
+make %{?_smp_mflags}
%install
-#cd strongswan-%{version}
-make install DESTDIR=%{buildroot}
-#License
-#mkdir -p %{buildroot}%{_datadir}/license
-#cp COPYING %{buildroot}%{_datadir}/license/strongswan
+%make_install
#rm -rf %{buildroot}/etc/strongswan.d
rm -rf %{buildroot}/usr/share/strongswan
rm -rf %{buildroot}/usr/share/man
-%clean
-rm -rf %{buildroot}
-
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%defattr(-,root,root)
%config %{_sysconfdir}/strongswan.conf
%attr(500,root,root) %{_bindir}/*
-%attr(500,root,root) %{_libdir}/debug/*
%attr(500,root,root) %{_libdir}/libcharon*
-%attr(500,root,root) %{_libdir}/libipsec*
-%attr(500,root,root) %{_libdir}/libsimaka*
%attr(500,root,root) %{_libdir}/libstrongswan*
%attr(500,root,root) %{_libdir}/libvici*
-%attr(500,root,root) %{_libdir}/systemd/system/strongswan.service
+#%attr(500,root,root) %{_libdir}/libipsec*
+#%attr(500,root,root) %{_libdir}/libsimaka*
-%{_libdir}/systemd/system/strongswan.service
-/etc/swanctl/swanctl.conf
-/etc/strongswan.d/*
-/usr/sbin/swanctl
/usr/sbin/ipsec
+/etc/strongswan.d/*
+#/etc/swanctl/swanctl.conf
+#/usr/sbin/swanctl
%changelog