Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2
zeroinstall-injector
zeroinstall-injector.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File zeroinstall-injector.spec of Package zeroinstall-injector
# # spec file for package zeroinstall-injector # # Copyright (c) 2012 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/ # %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()") %define cache_dir /var/cache/0install.net Name: zeroinstall-injector Version: 1.7 Release: 1 %define source_version 1.7 Summary: Decentralised cross-distribution software installation Group: System/Management License: LGPL-2.1+ Url: http://0install.net Source0: zeroinstall-injector-%{source_version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch BuildRequires: gnupg python-devel Requires: gnupg sudo xdg-utils binutils %if 0%{?suse_version} BuildRequires: python-xml Requires: python-xml %else BuildRequires: PyXML Requires: PyXML %endif %if 0%{?mandriva_version} Requires: pygtk2.0 >= 2.12 BuildRequires: pygtk2.0 %else %if 0%{?suse_version} Requires: ca-certificates Requires: python-gtk >= 2.12 BuildRequires: python-gtk BuildRequires: update-desktop-files %else Requires: pygtk2 >= 2.12 BuildRequires: pygtk2 %endif %endif %description The Zero Install Injector makes it easy for users to install software without needing root privileges. It takes the URL of a program and runs it (downloading it first if necessary). Any dependencies of the program are fetched in the same way. The user controls which version of the program and its dependencies to use. Zero Install is a decentralised installation system (there is no central repository; all packages are identified by URLs), loosly-coupled (if different programs require different versions of a library then both versions are installed in parallel, without conflicts), and has an emphasis on security (all package descriptions are GPG-signed, and contain cryptographic hashes of the contents of each version). Each version of each program is stored in its own sub-directory within the Zero Install cache (nothing is installed to directories outside of the cache, such as /usr/bin) and no code from the package is run during install or uninstall. The system can automatically check for updates when software is run. %prep tar xjvf %{SOURCE0} %setup -q -T -D -n zeroinstall-injector-%{source_version} %build python setup.py build %check #(cd tests && python ./testall.py) %install python setup.py install --skip-build --prefix=/usr --root $RPM_BUILD_ROOT mv "$RPM_BUILD_ROOT/usr/man" "$RPM_BUILD_ROOT%{_datadir}/man" rm -f $RPM_BUILD_ROOT/%{python_sitelib}/*.egg-info mkdir -p "$RPM_BUILD_ROOT%{cache_dir}/implementations" %if 0%{?suse_version} %suse_update_desktop_file -r zeroinstall-add Settings DesktopSettings %suse_update_desktop_file -r zeroinstall-manage Settings DesktopSettings %endif %find_lang zero-install %clean rm -rf $RPM_BUILD_ROOT %files -f zero-install.lang %defattr(-,root,root,-) %doc COPYING README %{_bindir}/0* %{python_sitelib}/zeroinstall %{_mandir}/man1/0* %{_datadir}/applications/zeroinstall-add.desktop %{_datadir}/applications/zeroinstall-manage.desktop %{_datadir}/desktop-directories %{_datadir}/icons/hicolor/scalable/apps/zeroinstall.svg %{_datadir}/icons/hicolor/128x128/apps/zeroinstall.png %{_datadir}/icons/hicolor/48x48/apps/zeroinstall.png %{_datadir}/icons/hicolor/24x24/apps/zeroinstall.png /etc/xdg/menus %dir %{cache_dir} %attr(755,zeroinst,zeroinst) %{cache_dir}/implementations %pre # Add the "zeroinst" user. # This is not used by default, but is required if you want to # set up sharing of downloads later. /usr/sbin/useradd -c 'Zero Install shared cache' \ -s /sbin/nologin -r -d '/' zeroinst 2> /dev/null || : %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