Files
zeroinstall-injector/zeroinstall-injector.spec

230 lines
7.1 KiB
RPMSpec
Raw Normal View History

%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.1
Release: 1
%define source_version 1.1
Summary: Decentralised cross-distribution software installation
Group: System/Management
License: LGPL
URL: http://0install.net
Source0: zeroinstall-injector-%{source_version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
BuildRequires: python-devel gnupg
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: 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
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc COPYING README
%{_bindir}/0*
%{python_sitelib}/zeroinstall
%{_mandir}/man1/0*
%{_datadir}/locale/*/LC_MESSAGES/zero-install.mo
%{_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
* Sat Jun 25 2011 Thomas Leonard <talex5@gmail.com> 1.1-1
- New upstream release.
* Mon May 23 2011 Thomas Leonard <talex5+fc@gmail.com> 1.0-1
- New upstream release.
* Sun Apr 29 2011 Thomas Leonard <talex5+fc@gmail.com> 1.0-0.1.rc1
- New upstream release.
* Sun Apr 09 2011 Thomas Leonard <talex5+fc@gmail.com> 0.54-1
- New upstream release.
* Sun Mar 13 2011 Thomas Leonard <talex5+fc@gmail.com> 0.53-1
- New upstream release.
* Thu Jan 20 2011 Thomas Leonard <talex5+fc@gmail.com> 0.52-1
- New upstream release.
* Sun Dec 05 2010 Thomas Leonard <talex5+fc@gmail.com> 0.51-1
- New upstream release.
* Sat Aug 21 2010 Thomas Leonard <talex5+fc@gmail.com> 0.50-1
- New upstream release.
* Sat Jul 03 2010 Thomas Leonard <talex5+fc@gmail.com> 0.49-1
- New upstream release.
* Sun May 30 2010 Thomas Leonard <talex5+fc@gmail.com> 0.48-1
- New upstream release.
* Fri May 01 2010 Thomas Leonard <talex5+fc@gmail.com> 0.47-1
- New upstream release.
* Fri Apr 02 2010 Thomas Leonard <talex5+fc@gmail.com> 0.46-1
- New upstream release.
* Fri Mar 09 2010 Thomas Leonard <talex5+fc@gmail.com> 0.45-1
- New upstream release.
* Fri Jan 22 2010 Thomas Leonard <talex5+fc@gmail.com> 0.44-1
- New upstream release.
* Sun Nov 22 2009 Thomas Leonard <talex5+fc@gmail.com> 0.43-1
- New upstream release.
* Fri Sep 11 2009 Thomas Leonard <talex5+fc@gmail.com> 0.42.1-1
- New upstream release.
* Sun Sep 06 2009 Thomas Leonard <talex5+fc@gmail.com> 0.42-1
- New upstream release.
* Sun Jun 28 2009 Thomas Leonard <talex5+fc@gmail.com> 0.41.1-1
- New upstream release.
* Sat Jun 27 2009 Thomas Leonard <talex5+fc@gmail.com> 0.41-1
- New upstream release.
* Sun Apr 19 2009 Thomas Leonard <talex5+fc@gmail.com> 0.40-1
- New upstream release.
* Sun Mar 08 2009 Thomas Leonard <talex5+fc@gmail.com> 0.39-1
- New upstream release.
* Mon Jan 19 2009 sda00 <sda00@himki.net> 0.38-1
- New upstream release
* Sat Nov 30 2008 Thomas Leonard <talex5+fc@gmail.com> 0.37-1
- New upstream release.
* Sat Sep 06 2008 Thomas Leonard <talex5+fc@gmail.com> 0.36-1
- New upstream release.
* Sat Aug 16 2008 Thomas Leonard <talex5+fc@gmail.com> 0.35-1
- New upstream release.
* Wed Jun 18 2008 Thomas Leonard <talex5+fc@gmail.com> 0.34-1
- New upstream release.
* Sun May 4 2008 Thomas Leonard <talex5+fc@gmail.com> 0.33-1
- New upstream release.
* Wed Nov 21 2007 Thomas Leonard <talex5+fc@gmail.com> 0.31-1
- New upstream release.
* Sat Sep 1 2007 Thomas Leonard <talex5+fc@gmail.com> 0.30-2
- Use correct dependencies for Mandriva (reported by Michael Bischof).
- Delete egg-info file during build (needed for SUSE).
* Sat Aug 18 2007 Thomas Leonard <talex5+fc@gmail.com> 0.30-1
- Updated to latest upstream
- Create zeroinst user and shared cache directory on install
* Mon Dec 18 2006 Michel Salim <michel.salim@gmail.com> 0.24-3
- Rebuild for development branch
* Mon Dec 18 2006 Michel Salim <michel.salim@gmail.com> 0.24-3
- Rebuild for development branch
* Sat Nov 11 2006 Michel Salim <michel.salim@gmail.com> 0.24-2
- Allow installation of ix86 binaries on x86_64
* Sat Nov 4 2006 Michel Salim <michel.salim@gmail.com> 0.24-1
- Update to 0.24
- Not ghosting .pyos any longer
* Sun Oct 8 2006 Michel Salim <michel.salim@gmail.com> 0.23-1
- Update to 0.23
* Sun Mar 5 2006 Michel Salim <michel.salim@gmail.com> 0.18-4
- Removed left-behind pushd and popd
* Sat Feb 25 2006 Michel Salim <michel.salim@gmail.com> 0.18-3
- Add Python-related requirements, BuildReq on gnupg to decrypt upstream source
* Sat Feb 18 2006 Michel Salim <michel.salim@gmail.com> 0.18-2
- Use _mandir, discard CFLAGS and unused python_sitearch definition
* Thu Feb 16 2006 Michel Salim <michel.salim@gmail.com> 0.18-1
- Initial Fedora Extras release, based on upstream spec contributed by Juan Carlos Jimenez Garcia