Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.1:Rings:2-TestDVD
libgnomesu
libgnomesu.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libgnomesu.spec of Package libgnomesu
# # spec file for package libgnomesu # # Copyright (c) 2015 SUSE LINUX 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/ # Name: libgnomesu Version: 2.0.0 Release: 0 Summary: GNOME su Library License: LGPL-2.1+ Group: System/GUI/GNOME Url: https://github.com/openSUSE/libgnomesu Source: %{name}-%{version}.tar.bz2 Source1: gnomesu-pam.pamd # Patch: Avoid patches if possible! Update openSUSE upstream instead. BuildRequires: fdupes BuildRequires: gtk3-devel BuildRequires: intltool BuildRequires: libtool BuildRequires: pam-devel BuildRequires: translation-update-upstream PreReq: permissions Requires: gsettings-desktop-schemas Requires: pam Recommends: %{name}-lang = %{version} # Ensure that gnomesu always gets installed Supplements: packageand(xdg-utils:gnome-session) BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Libgnomesu is a library for providing superuser privileges to GNOME applications. It supports sudo, consolehelper, PAM, and su. %package -n libgnomesu0 Summary: GNOME su Library Group: System/Libraries Requires: %{name} >= %{version} %description -n libgnomesu0 Libgnomesu is a library for providing superuser privileges to GNOME applications. It supports sudo, consolehelper, PAM, and su. %package devel Summary: Development files for libgnomesu Group: Development/Libraries/GNOME Requires: %{name} = %{version} %description devel This package contains all files needed to develop with libgnomesu. %lang_package %prep %setup -q cp -a %{S:1} pam-backend/gnomesu-pam # Upstream is dead, libgnomesu.po in LCN includes strings in our patches: translation-update-upstream %build export SUID_CFLAGS="-fPIE" export SUID_LDFLAGS="-pie" %configure\ --libexecdir=%{_libexecdir}/%{name}\ --disable-setuid-error make %{?jobs:-j%jobs} %install mkdir -p %{buildroot}%{_prefix}/lib/%{name} %makeinstall %{__rm} %{buildroot}%{_libdir}/*.la %find_lang libgnomesu-1.0 mkdir -p %{buildroot}%{_docdir}/%{name} cp AUTHORS README NEWS ChangeLog doc/api.html doc/libgnomesu.css %{buildroot}%{_docdir}/%{name} # We want only PAM backend. rm -f %{buildroot}%{_prefix}/lib/%{name}/gnomesu-backend %fdupes %{buildroot} %clean rm -rf %{buildroot} %post %set_permissions %{_libexecdir}/%{name}/gnomesu-pam-backend %verifyscript %verify_permissions -e %{_libexecdir}/%{name}/gnomesu-pam-backend %post -n libgnomesu0 -p /sbin/ldconfig %postun -n libgnomesu0 -p /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) %{_libexecdir}/%{name}/gnomesu-pam-backend %config %{_sysconfdir}/pam.d/gnomesu-pam %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}/pkgconfig/libgnomesu-1.0.pc %changelog
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