Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:XRevan86
ktsuss
ktsuss.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ktsuss.spec of Package ktsuss
# # spec file for package ktsuss # # Copyright (c) 2014 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/ # %bcond_without gksu %bcond_with sudo Name: ktsuss Version: 2.1 Release: 0 Summary: Simple graphical frontend to su in Gtk2 License: BSD-3-Clause Group: System/GUI/Other Url: https://github.com/nomius/ktsuss Source0: https://github.com/nomius/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz Source1: xsu.sh BuildRequires: autoconf BuildRequires: automake BuildRequires: libtool BuildRequires: pkg-config BuildRequires: update-alternatives BuildRequires: pkgconfig(glib-2.0) >= 2.2 BuildRequires: pkgconfig(gtk+-2.0) >= 2.2 Requires: bash Requires(post): update-alternatives Requires(postun): update-alternatives Provides: xsu = %{version} %if %{with gksu} Provides: gksu = %{version} Conflicts: gksu < %{version} Conflicts: gksu > %{version} %endif %if %{with sudo} BuildRequires: sudo Requires: sudo %endif %description ktsuss stands for "keep the su simple, stupid", and as the name says, is a graphical version (frontend) of su written in C and Gtk2. The idea of the project is to remain simple and bug free. %prep %setup -q sed -i 's|/pixmaps|/icons/hicolor/128x128/apps|' pixmaps/Makefile.am %build autoreconf -fi %if %{with sudo} %configure --enable-sudo %else %configure --disable-sudo %endif make %{?_smp_mflags} %install %make_install # Compatibility with SUSE xdg-su. install -Dm 0755 %{SOURCE1} %{buildroot}%{_libexecdir}/%{name}/xsu %if %{with gksu} # And with gksu. ln -s %{_libexecdir}/%{name}/xsu %{buildroot}%{_bindir}/gksu %endif # Create a dummy target for /etc/alternatives/xsu mkdir -p %{buildroot}%{_sysconfdir}/alternatives/ touch %{buildroot}%{_sysconfdir}/alternatives/xsu ln -s %{_sysconfdir}/alternatives/xsu %{buildroot}%{_bindir}/xsu %post %{_sbindir}/update-alternatives --install %{_bindir}/xsu xsu "%{_libexecdir}/%{name}/xsu" 20 %postun if [ "$1" = 0 ] ; then %{_sbindir}/update-alternatives --remove xsu "%{_libexecdir}/%{name}/xsu" fi %files %defattr(-,root,root) %doc COPYING CREDITS Changelog README.md %ghost %{_sysconfdir}/alternatives/xsu %{_bindir}/*su* %{_libexecdir}/%{name}/ %{_datadir}/icons/hicolor/128x128/apps/%{name}.png %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