File create_ap.spec of Package create_ap
#
# spec file for package create_ap
#
# Copyright (c) 2020 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: create_ap
Version: 0.4.6
Release: 0
Summary: This script creates a NATed or Bridged WiFi Access Point
# FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses
License: BSD-2-Clause
Url: https://github.com/oblique/create_ap
Source: %{name}-%{version}.tar.gz
BuildArch: noarch
Requires: bash
Requires: util-linux
Requires: procps
Requires: hostapd
Requires: iproute2
Requires: iw
Requires: haveged
Requires: dnsmasq
Requires: iptables
%{?systemd_requires}
%description
This script creates a NATed or Bridged WiFi Access Point.
Features:
* Create an AP (Access Point) at any channel.
* Choose one of the following encryptions: WPA, WPA2, WPA/WPA2,
Open (no encryption).
* Hide your SSID.
* Disable communication between clients (client isolation).
* IEEE 802.11n & 802.11ac support
* Internet sharing methods: NATed or Bridged or None (no Internet sharing).
* Choose the AP Gateway IP (only for 'NATed' and 'None' Internet sharing
methods).
* You can create an AP with the same interface you are getting your Internet
connection.
* You can pass your SSID and password through pipe or through arguments
(see examples).
more plz check https://github.com/oblique/create_ap
%prep
%setup -q
%build
%install
install -Dm 0755 create_ap %{buildroot}%{_bindir}/create_ap
install -Dm 0644 create_ap.conf %{buildroot}%{_sysconfdir}/create_ap.conf
install -Dm 0644 bash_completion %{buildroot}%{_datadir}/bash-completion/completions/create_ap
install -Dm 0644 create_ap.service %{buildroot}%{_unitdir}/create_ap.service
mkdir -p %{buildroot}%{_sbindir}
ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
%pre
%service_add_pre %{name}.service
%post
%service_add_post %{name}.service
%preun
%service_del_preun %{name}.service
%postun
%service_del_postun %{name}.service
%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}
%{_sbindir}/rc%{name}
%config %{_sysconfdir}/%{name}.conf
%{_unitdir}/%{name}.service
%{_datadir}/bash-completion/completions/%{name}
%changelog