|
Christopher Meng |
e324a2c |
%global _hardened_build 1
|
|
Christopher Meng |
e324a2c |
%global __provides_exclude ^sstp-pppd-plugin\\.so$
|
|
Christopher Meng |
e324a2c |
%global clientname sstpc
|
|
Christopher Meng |
e324a2c |
|
|
Christopher Meng |
e324a2c |
Name: sstp-client
|
|
Christopher Meng |
e324a2c |
Version: 1.0.9
|
|
Christopher Meng |
e324a2c |
Release: 4%{?dist}
|
|
Christopher Meng |
e324a2c |
Summary: Secure Socket Tunneling Protocol (SSTP) Client
|
|
Christopher Meng |
e324a2c |
License: GPLv2+
|
|
Christopher Meng |
e324a2c |
Url: http://sstp-client.sourceforge.net
|
|
Christopher Meng |
e324a2c |
Source0: http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.gz
|
|
Christopher Meng |
e324a2c |
BuildRequires: libevent-devel
|
|
Christopher Meng |
e324a2c |
BuildRequires: libtool
|
|
Christopher Meng |
e324a2c |
BuildRequires: openssl-devel
|
|
Christopher Meng |
e324a2c |
BuildRequires: pkgconfig
|
|
Christopher Meng |
e324a2c |
BuildRequires: ppp-devel
|
|
Christopher Meng |
e324a2c |
Requires: openssl
|
|
Christopher Meng |
e324a2c |
Requires: ppp
|
|
Christopher Meng |
e324a2c |
Requires(pre): shadow-utils
|
|
Christopher Meng |
e324a2c |
|
|
Christopher Meng |
e324a2c |
%description
|
|
Christopher Meng |
e324a2c |
This is a client for the Secure Socket Tunneling Protocol, SSTP. It can be
|
|
Christopher Meng |
e324a2c |
used to establish a SSTP connection to a Windows Server.
|
|
Christopher Meng |
e324a2c |
|
|
Christopher Meng |
e324a2c |
%package devel
|
|
Christopher Meng |
e324a2c |
Summary: Development files for %{name}
|
|
Christopher Meng |
e324a2c |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
Christopher Meng |
e324a2c |
|
|
Christopher Meng |
e324a2c |
%description devel
|
|
Christopher Meng |
e324a2c |
The %{name}-devel package contains libraries and header files for
|
|
Christopher Meng |
e324a2c |
developing applications that use %{name}.
|
|
Christopher Meng |
e324a2c |
|
|
Christopher Meng |
e324a2c |
%prep
|
|
Christopher Meng |
e324a2c |
%setup -q
|
|
Christopher Meng |
e324a2c |
|
|
Christopher Meng |
e324a2c |
%build
|
|
Christopher Meng |
e324a2c |
%configure --disable-static \
|
|
Christopher Meng |
e324a2c |
--with-runtime-dir="%{_localstatedir}/run/%{clientname}"
|
|
Christopher Meng |
e324a2c |
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
Christopher Meng |
e324a2c |
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|
Christopher Meng |
e324a2c |
sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
|
|
Christopher Meng |
e324a2c |
make CFLAGS="%{optflags}" %{?_smp_mflags} V=1
|
|
Christopher Meng |
e324a2c |
|
|
Christopher Meng |
e324a2c |
%install
|
|
Christopher Meng |
e324a2c |
make install DESTDIR=%{buildroot}
|
|
Christopher Meng |
e324a2c |
rm -rf %{buildroot}%{_datadir}/doc
|
|
Christopher Meng |
e324a2c |
find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
|
Christopher Meng |
e324a2c |
|
|
Christopher Meng |
e324a2c |
%pre
|
|
Christopher Meng |
e324a2c |
getent group %{clientname} >/dev/null || groupadd -r %{clientname}
|
|
Christopher Meng |
e324a2c |
getent passwd %{clientname} >/dev/null || \
|
|
Christopher Meng |
e324a2c |
useradd -r -g %{clientname} \
|
|
Christopher Meng |
e324a2c |
-d %{_localstatedir}/run/%{clientname} \
|
|
Christopher Meng |
e324a2c |
-s /sbin/nologin \
|
|
Christopher Meng |
e324a2c |
-c "Secure Socket Tunneling Protocol (SSTP) Client" %{clientname}
|
|
Christopher Meng |
e324a2c |
exit 0
|
|
Christopher Meng |
e324a2c |
|
|
Christopher Meng |
e324a2c |
%post -p /sbin/ldconfig
|
|
Christopher Meng |
e324a2c |
|
|
Christopher Meng |
e324a2c |
%postun
|
|
Christopher Meng |
e324a2c |
/sbin/ldconfig -p
|
|
Christopher Meng |
e324a2c |
rm -rf %{_localstatedir}/run/%{clientname}
|
|
Christopher Meng |
e324a2c |
|
|
Christopher Meng |
e324a2c |
%files
|
|
Christopher Meng |
e324a2c |
%doc AUTHORS ChangeLog COPYING README TODO USING *.example
|
|
Christopher Meng |
e324a2c |
%{_sbindir}/%{clientname}
|
|
Christopher Meng |
e324a2c |
%{_libdir}/libsstp_api-0.so
|
|
Christopher Meng |
e324a2c |
%{_libdir}/pppd/2.4.5/sstp-pppd-plugin.so
|
|
Christopher Meng |
e324a2c |
%{_mandir}/man8/%{clientname}.8*
|
|
Christopher Meng |
e324a2c |
|
|
Christopher Meng |
e324a2c |
%files devel
|
|
Christopher Meng |
e324a2c |
%{_includedir}/sstp-client/
|
|
Christopher Meng |
e324a2c |
%{_libdir}/libsstp_api.so
|
|
Christopher Meng |
e324a2c |
%{_libdir}/pkgconfig/sstp-client-1.0.pc
|
|
Christopher Meng |
e324a2c |
|
|
Christopher Meng |
e324a2c |
%changelog
|
|
Christopher Meng |
e324a2c |
* Thu Aug 01 2013 Christopher Meng <rpm@cicku.me> - 1.0.9-4
|
|
Christopher Meng |
e324a2c |
- Fix library issue.
|
|
Christopher Meng |
e324a2c |
|
|
Christopher Meng |
e324a2c |
* Fri Jul 26 2013 Christopher Meng <rpm@cicku.me> - 1.0.9-3
|
|
Christopher Meng |
e324a2c |
- Filter out the private library.
|
|
Christopher Meng |
e324a2c |
|
|
Christopher Meng |
e324a2c |
* Tue Jul 23 2013 Christopher Meng <rpm@cicku.me> - 1.0.9-2
|
|
Christopher Meng |
e324a2c |
- Remove Rpath.
|
|
Christopher Meng |
e324a2c |
|
|
Christopher Meng |
e324a2c |
* Sun Feb 03 2013 Christopher Meng <rpm@cicku.me> - 1.0.9-1
|
|
Christopher Meng |
e324a2c |
- Initial Package.
|