X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=usernet.spec;fp=usernet.spec;h=1a50c165979db75e33247bdaf990c649b2401f1a;hb=4fdb05a4d0cf7438cbb30251ffa4c39912a9a2f4;hp=5380f126f219876f3b393a9289ac3beef02f7649;hpb=5a13484567f05e1569991736b0b1a081a5b85197;p=packages%2Fusernet.git diff --git a/usernet.spec b/usernet.spec index 5380f12..1a50c16 100644 --- a/usernet.spec +++ b/usernet.spec @@ -1,37 +1,41 @@ -Summary: A graphical utility for controlling network interfaces. -Name: usernet -Version: 1.0.9 -Release: 2 -Copyright: GPL -Group: Applications/System +Summary: A graphical utility for controlling network interfaces. +Name: usernet +Version: 1.0.9 +Release: 2 +License: GPL +Group: Utilities/System +Group(pl): Narzêdzia/System BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -Source: usernet-%{PACKAGE_VERSION}.tar.gz -Requires: initscripts >= 3.20 +Source0: usernet-%{PACKAGE_VERSION}.tar.gz +Requires: initscripts >= 3.20 %description The usernet utility provides a graphical interface for manipulating -network interfaces (bringing them up or down and viewing their status). -Users can only manipulate interfaces that are user-controllable. The -superuser can control all interfaces. +network interfaces (bringing them up or down and viewing their +status). Users can only manipulate interfaces that are +user-controllable. The superuser can control all interfaces. -Install the usernet package if you'd like to provide a graphical utility -for manipulating network interfaces. +Install the usernet package if you'd like to provide a graphical +utility for manipulating network interfaces. %prep -%setup +%setup -q %build -make VERSION=%{PACKAGE_VERSION} +make VERSION=%{version} %install -make install BR=$RPM_BUILD_ROOT VERSION=%{PACKAGE_VERSION} +rm -rf $RPM_BUILD_ROOT +make install BR=$RPM_BUILD_ROOT VERSION=%{version} + +gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/* %clean rm -rf $RPM_BUILD_ROOT %files -%defattr(-,root,root) -/usr/bin/usernet -/usr/share/usernet/%{PACKAGE_VERSION} -/usr/man/man1/usernet.1 -/etc/X11/wmconfig/usernet +%defattr(644,root,root,755) +%attr(755,root,root) %{_bindir}/usernet +%{_datadir}/usernet/%{version} +%{_mandir}/man1/* +%{_sysconfdir}/X11/wmconfig/usernet