Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
DISCONTINUED:openSUSE:11.1:Update
libgnomesu
libgnomesu.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libgnomesu.spec of Package libgnomesu
# # spec file for package libgnomesu (Version 1.0.0) # # Copyright (c) 2008 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/ # # norootforbuild Name: libgnomesu BuildRequires: fdupes intltool libgnomeui-devel pam-devel Url: http://members.chello.nl/~h.lai/libgnomesu/ License: GPL v2 or later; LGPL v2.1 or later Group: System/GUI/GNOME AutoReqProv: on PreReq: permissions # obsolete in >9.3 Provides: xsu Obsoletes: xsu Version: 1.0.0 Release: 296 Summary: GNOME su Library Source: %{name}-%{version}.tar.bz2 Source1: gnomesu-pam.pamd Source2: libgnomesu-1.0.po-polish Patch: libgnomesu-libtool.patch Patch1: libgnomesu-1.0.0-xauth-nolookup.patch Patch2: libgnomesu-1.0.0-spin-mainloop.patch Patch3: libgnomesu-no-selectable-error.patch Patch5: libgnomesu-scrollbar.patch Patch6: libgnomesu-password-translation.patch Patch7: libgnomesu-po-update.patch Patch8: libgnomesu-makefile.patch Patch9: libgnomesu-64bit.patch # PATCH-FIX-OPENSUSE libgnomesu-unsetenv.patch bnc428963 vuntz@novell.com -- Unset DBUS_SESSION_BUS_ADDRESS environment variable. Patch10: libgnomesu-unsetenv.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build Requires: %{name}-lang = %{version} pam libgnomesu0 %description Libgnomesu is a library for providing superuser privileges to GNOME applications. It supports sudo, consolehelper, PAM, and su. Authors: -------- Hongli Lai <h.lai@chello.nl> %package -n libgnomesu0 License: LGPL v2.1 or later Summary: GNOME su Library Group: System/GUI/GNOME Requires: %{name} >= %{version} %description -n libgnomesu0 Libgnomesu is a library for providing superuser privileges to GNOME applications. It supports sudo, consolehelper, PAM, and su. Authors: -------- Hongli Lai <h.lai@chello.nl> %package devel License: LGPL v2.1 or later Summary: Development files for libgnomesu Group: Development/Libraries/GNOME Requires: %{name} = %{version} glib2-devel gtk2-devel # libgnome-devel libgnomecanvas-devel libbonoboui-devel pam-devel %description devel This package contains all files needed to develop with libgnomesu. Authors: -------- Hongli Lai <h.lai@chello.nl> %lang_package %prep %setup -q %patch %patch1 -p1 %patch2 -p1 %patch3 -p0 %patch5 %patch6 -p0 %patch7 %patch8 %patch9 %patch10 -p1 cp -a %{S:1} pam-backend/gnomesu-pam cp %{S:2} po/pl.po %build autoreconf -f -i intltoolize -f %configure\ --libexecdir=%{_prefix}/lib/%{name}\ --disable-schemas-install\ --disable-setuid-error make %{?jobs:-j%jobs} %install mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/%{name} make install DESTDIR=$RPM_BUILD_ROOT %find_lang libgnomesu-1.0 mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name} cp AUTHORS README NEWS ChangeLog doc/api.html doc/libgnomesu.css $RPM_BUILD_ROOT%{_docdir}/%{name} # We want only PAM backend. rm $RPM_BUILD_ROOT%{_prefix}/lib/%{name}/gnomesu-backend %if %suse_version <= 1020 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/permissions.d cat >$RPM_BUILD_ROOT%{_sysconfdir}/permissions.d/%{name}.easy <<EOF # libgnomesu (#75823) %{_prefix}/lib/libgnomesu/gnomesu-pam-backend root:root 4755 EOF cat >$RPM_BUILD_ROOT%{_sysconfdir}/permissions.d/%{name}.secure <<EOF # libgnomesu (#75823) %{_prefix}/lib/libgnomesu/gnomesu-pam-backend root:root 4755 EOF cat >$RPM_BUILD_ROOT%{_sysconfdir}/permissions.d/%{name}.paranoid <<EOF # libgnomesu (#75823) %{_prefix}/lib/libgnomesu/gnomesu-pam-backend root:root 0755 EOF %endif # No support for old GNOME # FIXME: Transform it to .desktop file rm $RPM_BUILD_ROOT%{_datadir}/application-registry/*.applications $RPM_BUILD_ROOT%{_datadir}/mime-info/*.* %fdupes $RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %post -n libgnomesu0 /sbin/ldconfig %run_permissions %verifyscript %verify_permissions -e %{_prefix}/lib/%{name}/gnomesu-pam-backend %postun -n libgnomesu0 /sbin/ldconfig %files %defattr(-,root,root) %doc %dir %{_defaultdocdir}/%{name} %doc %{_defaultdocdir}/%{name}/AUTHORS %doc %{_defaultdocdir}/%{name}/README %doc %{_defaultdocdir}/%{name}/NEWS %doc %{_defaultdocdir}/%{name}/ChangeLog %{_bindir}/gnomesu %dir %{_prefix}/lib/%{name} #%attr (6755,root,root) %{_prefix}/lib/%{name}/gnomesu-backend #%attr (6755,root,root) %{_prefix}/lib/%{name}/gnomesu-pam-backend # NOTE: Original package has 6755. # We have only 4755 and for easy and secure profile. %verify (not mode) %attr (4755,root,root) %{_prefix}/lib/%{name}/gnomesu-pam-backend %config %{_sysconfdir}/pam.d/gnomesu-pam %if %suse_version <= 1020 %{_sysconfdir}/permissions.d/%{name}.* %endif %files -n libgnomesu0 %defattr (-, root, root) %{_libdir}/libgnomesu.so.* %files lang -f libgnomesu-1.0.lang %files devel %defattr(-,root,root) %doc %{_docdir}/%{name}/api.html %doc %{_docdir}/%{name}/libgnomesu.css %{_includedir}/libgnomesu-1.0 %{_libdir}/libgnomesu.so %{_libdir}/libgnomesu.*a %{_libdir}/pkgconfig/libgnomesu-1.0.pc %changelog * Thu Nov 06 2008 vuntz@novell.com - Add libgnomesu-unsetenv.patch to unset the DBUS_SESSION_BUS_ADDRESS environment variable. Fix bnc#428963. * Fri Oct 10 2008 hpj@novell.com - Remove libgnomesu-1.0.0-ensure-xauthority-env.patch. It breaks with the xauth location used by the new gdm. * Fri Oct 03 2008 vuntz@novell.com - Run intltoolize so that the translations get installed. It seems the new intltool broke this. * Wed Oct 03 2007 maw@suse.de - Split out a libgnomesu0 shared library package. * Fri Sep 28 2007 maw@suse.de - Add libgnomesu-1.0.so-polish as a source file and copy it to the po/ directory (#302300). * Tue Aug 07 2007 maw@suse.de - Use %%fdupes - Split off a -lang subpackage - s#%%run_ldconfig#/sbin/ldconfig/ in %%post and %%postun. * Wed Mar 21 2007 jhargadon@suse.de - added a patch to fix the library path for 64 bit packages. * Tue Jan 02 2007 sbrabec@suse.cz - Fixed invalid Makefile expansion. * Fri Dec 22 2006 sbrabec@suse.cz - Prefix changed to /usr. - Spec file cleanup. * Tue Jun 20 2006 sbrabec@suse.cz - Updated translations from upstream (179651#c15). * Fri May 26 2006 zsu@suse.de - bugzilla #169082. Call _() to translate label string "_Password:" * Thu May 18 2006 ro@suse.de - add setuid bit to gnomesu-pam-backend in level secure (#175616) * Thu May 04 2006 danw@suse.de - stick the command label in a scrolledwindow in case it's really really long. #161044 * Thu May 04 2006 hpj@suse.de - Add patch to ensure that XAUTHORITY is always set in the child environment. Fixes Novell bug #172494. * Fri Mar 31 2006 danw@suse.de - Don't mark the error text as "selectable", since that will make it focusable as well and mess up the tab order. #162600 * Tue Mar 21 2006 hpj@suse.de - Add patch to make it spin the main loop while waiting for the child to exit. Fixes Novell bug #156445. * Mon Jan 30 2006 ro@suse.de - reduce BuildRequires as far as possible * Wed Jan 25 2006 mls@suse.de - converted neededforbuild to BuildRequires * Mon Oct 17 2005 hpj@suse.de - Fixed the nlist/nmerge patch to actually work (#119600). * Fri Oct 14 2005 hpj@suse.de - Run xauth nlist/nmerge instead of list, prevents DNS lookups (#119600). * Tue Sep 20 2005 sbrabec@suse.cz - Removed references to build directory in installed .la files. - Fixed devel dependencies. * Thu Jun 09 2005 sbrabec@suse.cz - Updated to version 1.0.0. - Set permissions properly (#75823). - Removed crypt backend (#75823). * Mon May 16 2005 sbrabec@suse.cz - Updated to version 0.9.7. * Thu May 12 2005 sbrabec@suse.cz - Provide and obsolete xsu (#75823). - Fixed crash on x86_64. - Build and install PAM backend. - Fixed backend permissions. * Fri Apr 15 2005 sbrabec@suse.cz - Simplified neededforbuild. - Added devel documentation. * Tue Feb 08 2005 hhetter@suse.de - package without setuid bits for now (#50436) * Thu Feb 03 2005 hhetter@suse.de - initial SUSE package
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor