diff --git a/README.md b/README.md index 8f1b9ec..b7de98e 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # gksu +An interface for libgksu, a Gtk+ frontent to su and sudo. + diff --git a/gksu-2.0.2-glib-2.31.patch b/gksu-2.0.2-glib-2.31.patch new file mode 100644 index 0000000..fd711a3 --- /dev/null +++ b/gksu-2.0.2-glib-2.31.patch @@ -0,0 +1,29 @@ +From 10c7e67e11a56e2fe1acf9b085772bc995d35bc0 Mon Sep 17 00:00:00 2001 +From: Alexandre Rostovtsev +Date: Sat, 7 Apr 2012 17:57:36 -0400 +Subject: [PATCH] Fix glib includes for building with >=glib-2.31 + +glib-2.31 and newer no longer allow most glib subheaders to be included +directly. + +https://savannah.nongnu.org/bugs/index.php?36127 +--- + nautilus-gksu/libnautilus-gksu.c | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/nautilus-gksu/libnautilus-gksu.c b/nautilus-gksu/libnautilus-gksu.c +index 8e44d29..4acf3f8 100644 +--- a/nautilus-gksu/libnautilus-gksu.c ++++ b/nautilus-gksu/libnautilus-gksu.c +@@ -5,7 +5,7 @@ + #include + #include + +-#include ++#include + #include + #include + #include +-- +1.7.8.5 + diff --git a/gksu.spec b/gksu.spec new file mode 100644 index 0000000..0aa4dfa --- /dev/null +++ b/gksu.spec @@ -0,0 +1,71 @@ +Name: gksu +Version: 2.0.2 +Release: 2mamba +Summary: An interface for libgksu, a Gtk+ frontent to su and sudo +Group: Graphical Desktop/Applications/Administration +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.nongnu.org/gksu/ +Source: http://people.debian.org/~kov/gksu/gksu-%{version}.tar.gz +Patch0: gksu-2.0.2-glib-2.31.patch +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libGConf-devel +BuildRequires: libatk-devel +BuildRequires: libcairo-devel +BuildRequires: libfontconfig-devel +BuildRequires: libfreetype-devel +BuildRequires: libgdk-pixbuf-devel +BuildRequires: libgksu-devel +BuildRequires: libglib-devel +BuildRequires: libgnome-keyring-devel +BuildRequires: libgtk-devel +BuildRequires: libgtk2-devel +BuildRequires: libnautilus-extension-devel +BuildRequires: libpango-devel +BuildRequires: libstartup-notification-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +An interface for libgksu, a Gtk+ frontent to su and sudo. + +%prep +%setup -q +%patch0 -p1 + +%build +%configure +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +#%find_lang %{name} + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +# -f %{name}.lang +%defattr(-,root,root) +%{_bindir}/gksu +%{_bindir}/gksudo +%{_libdir}/nautilus/extensions-2.0/libnautilus-gksu.* +%{_datadir}/applications/gksu.desktop +%{_datadir}/gksu/gksu-migrate-conf.sh +%{_datadir}/pixmaps/gksu-icon.png +%{_datadir}/pixmaps/gksu-root-terminal.png +%{_mandir}/man1/gksu.1.gz +%{_mandir}/man1/gksudo.1.gz +%doc AUTHORS COPYING ChangeLog README + +%changelog +* Wed Aug 14 2013 Automatic Build System 2.0.2-2mamba +- automatic rebuild by autodist + +* Mon Sep 28 2009 Silvan Calarco 2.0.2-1mamba +- package created by autospec