File mentohust.spec of Package mentohust
#
# spec file for package mentohust
#
# Copyright (c) 2013 SUSE LINUX Products 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: mentohust
Version: 0.3.4
Release: 0
License: GPL-3.0
Summary: A Ruijie and Cernet supplicant
Url: https://code.google.com/p/mentohust
Group: Productivity/Networking/PPP
Source: %{name}-%{version}.tar.bz2
# FIX-FOR-UPSTREAM marguerite@opensuse.org fix linking problem.
Patch: mentohust-linking.patch
BuildRequires: glib2-devel
BuildRequires: libpcap-devel
BuildRequires: libtool
Requires: libnotify4
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This package contains a Ruijie and Cernet supplicant from HustMoon Studio.
%prep
%setup -q
%patch -p1
%build
./autogen.sh
%configure
make %{?_smp_mflags}
%install
%make_install
# fix doc
rm -rf %{buildroot}%{_datadir}/doc/%{name}
%find_lang %{name}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS ChangeLog README debian/copyright
%config %{_sysconfdir}/%{name}.conf
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.*
%changelog