File simple-obfs.spec of Package simple-obfs
#
# spec file for package simple-obfs
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: simple-obfs
Version: 0.0.5
Release: 0
Summary: A simple obfusacting tool
License: GPL-3.0-or-later
Group: Productivity/Networking/Web/Proxy
URL: https://github.com/shadowsocks/simple-obfs
Source0: https://github.com/shadowsocks/simple-obfs/archive/v%{version}/%{name}-%{version}.tar.gz
Source1: libcork-0.15.0git20160622.tar.bz2
Patch1: simple-obfs-asciidoc-fix.patch
BuildRequires: asciidoc
BuildRequires: libtool
BuildRequires: mbedtls-devel
BuildRequires: pkgconfig
BuildRequires: udns-devel
BuildRequires: xmlto
BuildRequires: pkgconfig(libev)
BuildRequires: pkgconfig(libsodium) >= 1.0.4
BuildRequires: pkgconfig(openssl)
%description
Simple-obfs is a simple obfusacting tool, designed as plugin server of shadowsocks.
%package doc
Summary: Documents for simple-obfs
Group: Documentation/HTML
Requires: %{name} = %{version}
BuildArch: noarch
%description doc
Simple-obfs is a simple obfusacting tool, designed as plugin server of shadowsocks.
This package provides Documents for it.
%prep
%setup -q
%patch1 -p1
%build
tar -jxvf %{SOURCE1}
rmdir libcork
mv libcork-0.15.0git20160622 libcork
autoreconf -fiv
%configure
make %{?_smp_mflags} V=1
%install
%make_install
rm -rf %{buildroot}%{_libdir}/*.{a,la}
%files
%license COPYING
%doc Changes README.md AUTHORS
%{_mandir}/man1/obfs-*.1%{?ext_man}
%{_bindir}/obfs-local
%{_bindir}/obfs-server
%files doc
%dir %{_datadir}/doc/%{name}
%doc %{_datadir}/doc/%{name}/*.html
%changelog