2007-01-15 23:40:37 +00:00
#
2012-02-06 14:55:29 +00:00
# spec file for package vlan
2007-01-15 23:40:37 +00:00
#
2023-10-25 12:36:31 +00:00
# Copyright (c) 2023 SUSE LLC
2007-01-15 23:40:37 +00:00
#
2009-06-18 22:19:31 +00:00
# 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.
2020-12-05 17:21:29 +00:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
2007-01-15 23:40:37 +00:00
#
2009-06-18 22:19:31 +00:00
2007-01-15 23:40:37 +00:00
Name : vlan
Version : 1.9
2012-02-06 14:55:29 +00:00
Release : 0
2007-01-15 23:40:37 +00:00
Summary : 802.1q VLAN Implementation for Linux
2020-12-05 17:21:29 +00:00
License : GPL-2.0-or-later
2007-01-15 23:40:37 +00:00
Group : Productivity/Networking/Other
2023-11-07 22:08:48 +00:00
URL : https://www.candelatech.com/~greear/vlan.html
2023-10-25 12:36:31 +00:00
# online url http://www.candelatech.com/~greear/vlan/vlan.1.9.tar.gz but tarball is broken there
# this is a bz2 version of it
Source : vlan.%{version} .tar.bz2
# from now offline http://scry.wanfear.com/~greear/vlan/cisco_howto.html, accessible through https://web.archive.org/web/20070429115150/http://scry.wanfear.com/~greear/vlan/cisco_howto.html
Source1 : cisco_howto.html.bz2
2023-11-07 22:08:48 +00:00
BuildRequires : gcc-c++
2007-01-15 23:40:37 +00:00
%description
An 802.1q vlan implementation for Linux. See
http://www.candelatech.com/~greear/vlan.html for more information.
%prep
2023-11-07 22:08:48 +00:00
%setup -q -n vlan
cp -p %{SOURCE1} .
2007-01-15 23:40:37 +00:00
%build
2023-11-07 22:08:48 +00:00
%make_build clean
%make_build CCFLAGS=" %{optflags} - D _ G N U _ S O U R C E - W a l l " STRIP=true
2007-01-15 23:40:37 +00:00
%install
2023-11-07 22:08:48 +00:00
make DESTDIR=%{buildroot}
mkdir -p %{buildroot} /{sbin,%{_sbindir} ,%{_mandir} /man8/}
install -m755 vconfig %{buildroot} /%{_sbindir}
install -m644 vconfig.8 %{buildroot} %{_mandir} /man8/
2023-03-20 14:03:36 +00:00
%if 0%{?suse_version} < 1550
2023-11-07 22:08:48 +00:00
ln -sf %{_sbindir} /vconfig %{buildroot} /sbin
2020-12-05 17:21:29 +00:00
%endif
2007-01-15 23:40:37 +00:00
%files
2007-12-21 09:23:47 +00:00
%defattr (644,root,root,755)
2014-09-24 05:51:12 +00:00
%doc *.html *.pl CHANGELOG README
2023-11-07 22:08:48 +00:00
%{_mandir} /man8/vconfig.8%{?ext_man}
%attr (755,root,root) %{_sbindir} /vconfig
2023-03-20 14:03:36 +00:00
%if 0%{?suse_version} < 1550
2007-12-21 09:23:47 +00:00
%attr (755,root,root) /sbin/vconfig
2020-12-05 17:21:29 +00:00
%endif
2007-01-15 23:40:37 +00:00
2007-12-21 09:23:47 +00:00
%changelog