diff --git a/README.md b/README.md index 8eaf7a6..7a8fbd1 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # sux +sux is a wrapper around su which will transfer your X credentials. + diff --git a/sux.spec b/sux.spec new file mode 100644 index 0000000..3fb06f4 --- /dev/null +++ b/sux.spec @@ -0,0 +1,47 @@ +Name: sux +Version: 1.0.1 +Release: 1mamba +Summary: A wrapper around su which will transfer your X credentials +Group: System/X11 +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://sourceforge.net/projects/sux/ +Source: http://downloads.sourceforge.net/project/sux/sux/%{version}/sux-%{version}.tar.gz +License: GPL +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +Requires: coreutils +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +sux is a wrapper around su which will transfer your X credentials. + +%prep +%setup -q + +%build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +install -d -m0755 %{buildroot}%{_bindir} +install -m0755 sux %{buildroot}%{_bindir}/sux +install -m0755 suxterm %{buildroot}%{_bindir}/suxterm +install -d -m0755 %{buildroot}%{_mandir}/man1 +install -m0644 debian/sux.1 %{buildroot}%{_mandir}/man1/sux.1 +install -m0644 debian/suxterm.1 %{buildroot}%{_mandir}/man1/suxterm.1 + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_bindir}/sux +%{_bindir}/suxterm +%{_mandir}/man1/sux.1* +%{_mandir}/man1/suxterm.1* +%doc debian/copyright + +%changelog +* Sat Jul 28 2012 Silvan Calarco 1.0.1-1mamba +- package created by autospec