%global nbmversion 1.8 %global geditver 0.4 Name: beesu Version: 2.7 Release: %mkrel 3 Summary: Graphical wrapper for su URL: http://www.honeybeenet.altervista.org Group: System/Base License: GPLv2+ Source0: http://honeybeenet.altervista.org/beesu/files/beesu-sources/%{name}-%{version}.tar.bz2 Source1: http://honeybeenet.altervista.org/beesu/files/beesu-manager/nautilus-beesu-manager-%{nbmversion}.tar.bz2 Source2: http://honeybeenet.altervista.org/beesu/files/beesu-gedit/gedit-beesu-plugin-%{geditver}.tar.bz2 Source3: nemo-beesu-manager-%{nbmversion}.tar.bz2 Patch0: beesu-gedit-plugin-fix.patch Patch1: beesu-gedit-plugin-more-fixes.patch Patch2: beesu-nautilus-scripts-fixes.patch Patch3: beesu-nemo-scripts-fixes.patch BuildRequires: desktop-file-utils # ovitters: pkgconfig(gobject-introspection-1.0) includes script to determine typelib() auto buildrequires BuildRequires: pkgconfig(gobject-introspection-1.0) Requires: pam, usermode %description Beesu is a wrapper around su and works with consolehelper under Mageia to let you have a graphic interface like gksu. %package -n nautilus-beesu-manager Version: %{nbmversion} BuildArch: noarch Requires: beesu, zenity, nautilus Group: Graphical desktop/Other Summary: Utility to add beesu scripts to nautilus %description -n nautilus-beesu-manager nautilus-beesu-manager is a little utility to add some useful scripts to the Nautilus file browser; nautilus-beesu-manager can add scripts to Nautilus using beesu to elevate the user's privileges to root. %package -n gedit-beesu-plugin Version: %{geditver} Requires: gedit, beesu, pygtk2, python3 Group: Graphical desktop/Other Summary: Allows normal users to open files in gedit as root %description -n gedit-beesu-plugin This package contains a plugin for gedit which allows normal users to open files as root (via beesu). After installation, to activate the plugin in gedit, go to Edit -> Preferences -> Plugins and check the box next to Open as root. %package -n nemo-beesu-manager Version: %{nbmversion} BuildArch: noarch Requires: beesu, zenity, nemo Group: Graphical desktop/Other Summary: Utility to add beesu scripts to nemo %description -n nemo-beesu-manager nemo-beesu-manager is a little utility to add some useful scripts to the Nemo file browser; nemo-beesu-manager can add scripts to Nemo using beesu to elevate the user's privileges to root. %prep %setup -q -a1 -a2 -a3 %patch0 -p1 -b .fix %patch1 -p1 %patch2 -p1 %patch3 -p1 chmod -x nautilus-beesu-manager-%{nbmversion}/COPYING nautilus-beesu-manager-%{nbmversion}/README chmod -x nemo-beesu-manager-%{nbmversion}/COPYING nemo-beesu-manager-%{nbmversion}/README %build make CFLAGS="%{optflags} -fno-delete-null-pointer-checks" pushd gedit-beesu-plugin-%{geditver} ./configure --frontend beesu --buildroot %{buildroot} --libexecdir %{_libexecdir} --libdir %{_libdir} make CFLAGS="%{optflags}" popd %install mkdir -p %{buildroot}%{_datadir}/%{name} make DESTDIR=%{buildroot} install #nbm pushd nautilus-beesu-manager-%{nbmversion} mkdir -v -p %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/ mkdir -v -p %{buildroot}%{_datadir}/applications/ install -p -m 755 nautilus-beesu-manager %{buildroot}%{_bindir} install -p -m 644 nautilus-beesu-manager.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/ desktop-file-install --dir %{buildroot}%{_datadir}/applications --mode 0644 nautilus-beesu-manager.desktop mkdir -v -p %{buildroot}%{_libexecdir}/nautilus-beesu-manager/ install -p -m 755 libexec/api %{buildroot}%{_libexecdir}/nautilus-beesu-manager/ cp -a libexec/scripts %{buildroot}%{_libexecdir}/nautilus-beesu-manager/ install -p -m 644 libexec/local-launcher %{buildroot}%{_libexecdir}/nautilus-beesu-manager/ popd #gbp pushd gedit-beesu-plugin-%{geditver} make install popd #nemo pushd nemo-beesu-manager-%{nbmversion} install -p -m 755 nemo-beesu-manager %{buildroot}%{_bindir} install -p -m 644 nemo-beesu-manager.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/ desktop-file-install --dir %{buildroot}%{_datadir}/applications --mode 0644 nemo-beesu-manager.desktop mkdir -v -p %{buildroot}%{_libexecdir}/nemo-beesu-manager/ install -p -m 755 libexec/api %{buildroot}%{_libexecdir}/nemo-beesu-manager/ cp -a libexec/scripts %{buildroot}%{_libexecdir}/nemo-beesu-manager/ install -p -m 644 libexec/local-launcher %{buildroot}%{_libexecdir}/nemo-beesu-manager/ popd %post -n nautilus-beesu-manager touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : update-desktop-database &> /dev/null ||: %post -n nemo-beesu-manager touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : update-desktop-database &> /dev/null ||: %postun -n nautilus-beesu-manager if [ $1 -eq 0 ] ; then touch --no-create %{_datadir}/icons/hicolor &>/dev/null if [ -x %{_bindir}/gtk-update-icon-cache ]; then gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi fi update-desktop-database &>/dev/null || : %postun -n nemo-beesu-manager if [ $1 -eq 0 ] ; then touch --no-create %{_datadir}/icons/hicolor &>/dev/null if [ -x %{_bindir}/gtk-update-icon-cache ]; then gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi fi update-desktop-database &>/dev/null || : %posttrans -n nautilus-beesu-manager if [ -x %{_bindir}/gtk-update-icon-cache ]; then gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi %posttrans -n nemo-beesu-manager if [ -x %{_bindir}/gtk-update-icon-cache ]; then gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi %files %doc COPYING README %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}.conf %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/pam.d/%{name} %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/security/console.apps/%{name} %{_sysconfdir}/profile.d/%{name}-bash-completion.sh %{_sbindir}/%{name} %{_bindir}/%{name} %{_mandir}/man1/%{name}.1.* %files -n nautilus-beesu-manager %doc nautilus-beesu-manager-%{nbmversion}/COPYING nautilus-beesu-manager-%{nbmversion}/README %{_bindir}/nautilus-beesu-manager %{_datadir}/applications/nautilus-beesu-manager.desktop %{_datadir}/icons/hicolor/32x32/apps/nautilus-beesu-manager.png %{_libexecdir}/nautilus-beesu-manager/ %files -n gedit-beesu-plugin %{_libdir}/gedit/plugins/beesu.plugin %{_libdir}/gedit/plugins/beesu/__init__.py* %{_libdir}/gedit/plugins/beesu/beesu.py* %{_libexecdir}/gedit-beesu-plugin %files -n nemo-beesu-manager %doc nemo-beesu-manager-%{nbmversion}/COPYING nemo-beesu-manager-%{nbmversion}/README %{_bindir}/nemo-beesu-manager %{_datadir}/applications/nemo-beesu-manager.desktop %{_datadir}/icons/hicolor/32x32/apps/nemo-beesu-manager.png %{_libexecdir}/nemo-beesu-manager/ %changelog * Wed Oct 15 2014 umeabot <umeabot> 2.7-3.mga5 + Revision: 742559 - Second Mageia 5 Mass Rebuild * Tue Sep 16 2014 umeabot <umeabot> 2.7-2.mga5 + Revision: 678137 - Mageia 5 Mass Rebuild + ovitters <ovitters> - add gobject-introspection BR for typelib auto BR * Sun Dec 01 2013 shlomif <shlomif> 2.7-1.mga4 + Revision: 554538 - Remove a requires that we don't have. - Imported beesu package from Fedora * Wed Sep 25 2013 D. Charles Pyle <dcharlespyle@msn.com> and Bee <http://www.honeybeenet.altervista.org> - 2.7-13 - Bug fixes gedit-beesu-plugin and beesu scripts to stop crashing of GNOME Shell and added a require of usermode-gtk. - Bug fixes to nemo scripts and nautilus scripts. * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Sat Jun 29 2013 D. Charles Pyle <dcharlespyle@msn.com> - 2.7-11 - Add fixes to nautilus scripts for better compatibility with GNOME 3.8. - Added newly-forked Nemo scripts package to distribution. * Tue Jun 25 2013 Tom Callaway <spot@fedoraproject.org> - 2.7-10 - add fixes for gedit 3.8 from D. Charles Pyle <dcharlespyle@msn.com> * Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Thu Mar 1 2012 Tom Callaway <spot@fedoraproject.org> - 2.7-7 - remove --browser from nautilus invocation - fix gedit-beesu-plugin (this time for real) * Fri Feb 10 2012 Tom Callaway <spot@fedoraproject.org> - 2.7-6 - fix gedit-beesu-plugin (bz 786734) * Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Mon Jan 10 2011 Tom Callaway <spot@fedoraproject.org> 2.7-3 - update gedit-beesu-plugin to 0.4 * Wed Dec 15 2010 Tom Callaway <spot@fedoraproject.org> 2.7-2 - update gedit-beesu-plugin to 0.3 * Thu Aug 5 2010 Tom "spot" Callaway <tcallawa@redhat.com> 2.7-1 - update beesu to 2.7 - update nautilus-beesu-manager to 1.7 - include gedit-beesu-plugin (0.2) * Fri Jul 9 2010 Tom "spot" Callaway <tcallawa@redhat.com> 2.6-1 - update beesu to 2.6 - update nautilus-beesu-manager to 1.6 * Wed Feb 24 2010 Tom "spot" Callaway <tcallawa@redhat.com> 2.4-8 - update nautilus-beesu-manager to 1.4 - one new script to open any file as root with GNOME's associated application * Thu Aug 6 2009 Tom "spot" Callaway <tcallawa@redhat.com> 2.4-7 - fix sources * Thu Aug 6 2009 Tom "spot" Callaway <tcallawa@redhat.com> 2.4-6 - beesu updated to 2.4 * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Mon May 11 2009 Tom "spot" Callaway <tcallawa@redhat.com> 2.3-4 - nautilus-beesu-manager update to 1.2 - one new installable script to change file access - new run-once script to fix the access permissions and the file owner on the trash folder * Thu Apr 9 2009 Tom "spot" Callaway <tcallawa@redhat.com> 2.3-3 - fix missing BR: desktop-file-utils * Thu Apr 9 2009 Tom "spot" Callaway <tcallawa@redhat.com> 2.3-2 - enable nautilus-beesu-manager subpackage * Mon Mar 30 2009 Tom "spot" Callaway <tcallawa@redhat.com> 2.3-1 - Update to 2.3 * Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Fri Feb 13 2009 Tom "spot" Callaway <tcallawa@redhat.com> 2.2-1 - Update to 2.2, adds bash auto completion feature * Thu Jan 29 2009 Tom "spot" Callaway <tcallawa@redhat.com> 2.1-1 - slight package cleanup from Bee * Fri Nov 28 2008 Bee <http://www.honeybeenet.altervista.org> 2.0-1 - new RPMs for Fedora 10 and some source clean up. * Mon Oct 27 2008 Bee <http://www.honeybeenet.altervista.org> 1.0-3 - new RPMs * Wed Oct 15 2008 Bee <http://www.honeybeenet.altervista.org> 1.0-2 - package needs to be arch specific , patch so rpm builds in mock or as non-root & clean up * Mon Oct 13 2008 Bee <http://www.honeybeenet.altervista.org> 1.0-1 - initial release