|
|
fb870de |
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
|
|
fb870de |
|
|
Michel Alexandre Salim |
6a15a9a |
%global cache_dir /var/cache/0install.net
|
|
Michel Alexandre Salim |
6a15a9a |
%global prerel rc1
|
|
|
fb9bcfb |
|
|
|
fb870de |
Name: zeroinstall-injector
|
|
Michel Alexandre Salim |
6a15a9a |
Version: 1.0
|
|
Michel Alexandre Salim |
6a15a9a |
Release: 0.%{prerel}.1%{?dist}
|
|
|
fb870de |
Summary: The Zero Install Injector (0launch)
|
|
|
fb870de |
|
|
|
fb870de |
Group: Applications/System
|
|
|
320914a |
License: LGPLv2
|
|
|
fb870de |
URL: http://0install.net
|
|
Michel Alexandre Salim |
6a15a9a |
Source0: http://downloads.sourceforge.net/zero-install/%{name}-%{version}-%{prerel}.tar.bz2
|
|
|
fb870de |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
fb870de |
|
|
|
fb870de |
BuildArch: noarch
|
|
|
0e66abf |
BuildRequires: python-devel
|
|
|
0e66abf |
BuildRequires: desktop-file-utils
|
|
|
0e66abf |
BuildRequires: gettext
|
|
|
121fdbf |
# for-tests
|
|
|
121fdbf |
BuildRequires: PyXML pygtk2 gnupg xdg-utils
|
|
|
121fdbf |
BuildRequires: tar gzip bzip2 xz-lzma-compat
|
|
|
2f456c3 |
BuildRequires: python-coverage
|
|
|
121fdbf |
# /for-tests
|
|
|
121fdbf |
Requires: PyXML pygtk2 gnupg sudo xdg-utils
|
|
|
121fdbf |
Requires: tar gzip bzip2 xz-lzma-compat
|
|
|
121fdbf |
# for PackageKit support
|
|
|
121fdbf |
Requires: dbus-python
|
|
|
2f456c3 |
|
|
|
94386e9 |
Requires(pre): shadow-utils
|
|
|
fb870de |
|
|
|
2f456c3 |
# for icons
|
|
|
2f456c3 |
Requires: hicolor-icon-theme
|
|
|
2f456c3 |
|
|
|
fb870de |
%description
|
|
|
0e66abf |
The Zero Install Injector makes it easy for users to install software
|
|
|
0e66abf |
without needing root privileges. It takes the URL of a program and
|
|
|
0e66abf |
runs it (downloading it first if necessary). Any dependencies of the
|
|
|
0e66abf |
program are fetched in the same way. The user controls which version
|
|
|
0e66abf |
of the program and its dependencies to use.
|
|
|
0e66abf |
|
|
|
0e66abf |
Zero Install is a decentralized installation system (there is no
|
|
|
0e66abf |
central repository; all packages are identified by URLs),
|
|
|
0e66abf |
loosely-coupled (if different programs require different versions of a
|
|
|
0e66abf |
library then both versions are installed in parallel, without
|
|
|
0e66abf |
conflicts), and has an emphasis on security (all package descriptions
|
|
|
0e66abf |
are GPG-signed, and contain cryptographic hashes of the contents of
|
|
|
0e66abf |
each version). Each version of each program is stored in its own
|
|
|
0e66abf |
sub-directory within the Zero Install cache (nothing is installed to
|
|
|
0e66abf |
directories outside of the cache, such as /usr/bin) and no code from
|
|
|
0e66abf |
the package is run during install or uninstall. The system can
|
|
|
0e66abf |
automatically check for updates when software is run.
|
|
|
fb870de |
|
|
|
fb870de |
%prep
|
|
Michel Alexandre Salim |
6a15a9a |
%setup -q -n %{name}-%{version}-%{prerel}
|
|
|
2f456c3 |
#patch0 -p1 -b .any-arch
|
|
|
fb870de |
|
|
|
fb870de |
%build
|
|
|
fb870de |
%{__python} setup.py build
|
|
|
fb870de |
|
|
|
fb870de |
%install
|
|
|
fb870de |
rm -rf $RPM_BUILD_ROOT
|
|
|
fb9bcfb |
%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
|
|
fb9bcfb |
mv "$RPM_BUILD_ROOT/usr/man" "$RPM_BUILD_ROOT/%{_datadir}/man"
|
|
|
fb9bcfb |
mkdir -p "$RPM_BUILD_ROOT%{cache_dir}/implementations"
|
|
|
fb9bcfb |
|
|
|
4aba738 |
for i in add manage; do
|
|
|
4aba738 |
desktop-file-install \
|
|
|
468210f |
%if 0%{!?fedora:1}
|
|
|
468210f |
--vendor="" \
|
|
|
468210f |
%endif
|
|
|
0518928 |
--remove-category="Application" \
|
|
|
76cfa3f |
--delete-original \
|
|
|
fb9bcfb |
--dir=$RPM_BUILD_ROOT%{_datadir}/applications \
|
|
|
4aba738 |
$RPM_BUILD_ROOT%{_datadir}/applications/zeroinstall-$i.desktop
|
|
|
4aba738 |
done
|
|
|
0e66abf |
%find_lang zero-install
|
|
|
fb870de |
|
|
|
121fdbf |
%check
|
|
|
121fdbf |
cd tests
|
|
|
121fdbf |
for t in download packagekit; do
|
|
|
121fdbf |
mv test${t}.py{,.off}
|
|
|
121fdbf |
done
|
|
|
121fdbf |
./testall.py
|
|
|
121fdbf |
|
|
|
fb870de |
%clean
|
|
|
fb870de |
rm -rf $RPM_BUILD_ROOT
|
|
|
fb870de |
|
|
|
121fdbf |
|
|
|
fb9bcfb |
%pre
|
|
|
fb9bcfb |
# Add the "zeroinst" user.
|
|
|
fb9bcfb |
# This is not used by default, but is required if you want to
|
|
|
fb9bcfb |
# set up sharing of downloads later.
|
|
|
94386e9 |
getent group zeroinst >/dev/null || groupadd -r zeroinst
|
|
|
94386e9 |
getent passwd zeroinst >/dev/null || \
|
|
|
320914a |
useradd -r -g zeroinst -d %{cache_dir} -s /sbin/nologin \
|
|
|
94386e9 |
-c "Zero Install shared cache" zeroinst
|
|
|
94386e9 |
exit 0
|
|
|
fb9bcfb |
|
|
|
2f456c3 |
%post
|
|
|
2f456c3 |
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
2f456c3 |
|
|
|
2f456c3 |
%postun
|
|
|
2f456c3 |
if [ $1 -eq 0 ] ; then
|
|
|
2f456c3 |
touch --no-create %{_datadir}/icons/hicolor &>/dev/null
|
|
|
2f456c3 |
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
2f456c3 |
fi
|
|
|
2f456c3 |
|
|
|
2f456c3 |
%posttrans
|
|
|
2f456c3 |
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
2f456c3 |
|
|
|
2f456c3 |
|
|
|
0e66abf |
%files -f zero-install.lang
|
|
|
fb870de |
%defattr(-,root,root,-)
|
|
|
fb870de |
%doc COPYING README
|
|
|
fb870de |
%{_bindir}/0*
|
|
|
016c06c |
%config(noreplace) %{_sysconfdir}/xdg/menus/applications-merged/zeroinstall.menu
|
|
|
0518928 |
%{_datadir}/applications/*.desktop
|
|
|
4aba738 |
%{_datadir}/desktop-directories/zeroinstall.directory
|
|
|
2f456c3 |
%{_datadir}/icons/hicolor/*/apps/zeroinstall.png
|
|
Michel Alexandre Salim |
6a15a9a |
%{_datadir}/icons/hicolor/scalable/apps/zeroinstall.svg
|
|
|
4aba738 |
%{python_sitelib}/zeroinstall/
|
|
|
378e51e |
%if 0%{!?el5:1}
|
|
|
71b237d |
%{python_sitelib}/*.egg-info
|
|
|
71b237d |
%endif
|
|
|
fb870de |
%{_mandir}/man1/0*
|
|
|
fb9bcfb |
%dir %{cache_dir}
|
|
|
fb9bcfb |
%attr(755,zeroinst,zeroinst) %{cache_dir}/implementations
|
|
|
fb870de |
|
|
|
fb870de |
%changelog
|
|
Michel Alexandre Salim |
6a15a9a |
* Tue May 3 2011 Michel Salim <salimma@fedoraproject.org> - 1.0-0.rc1.1
|
|
Michel Alexandre Salim |
6a15a9a |
- Update to 1.0rc1
|
|
Michel Alexandre Salim |
6a15a9a |
|
|
|
f6612b9 |
* Thu Mar 17 2011 Michel Salim <salimma@fedoraproject.org> - 0.53-1
|
|
|
f6612b9 |
- Update to 0.53
|
|
|
f6612b9 |
|
|
|
2f456c3 |
* Sun Mar 13 2011 Michel Salim <salimma@fedoraproject.org> - 0.52-1
|
|
|
2f456c3 |
- Update to 0.52
|
|
|
2f456c3 |
|
|
|
88f7e21 |
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.49-3
|
|
|
88f7e21 |
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
88f7e21 |
|
|
|
121fdbf |
* Fri Jul 9 2010 Michel Salim <salimma@fedoraproject.org> - 0.49-2
|
|
|
121fdbf |
- Enable tests
|
|
|
121fdbf |
|
|
|
0e66abf |
* Fri Jul 9 2010 Michel Salim <salimma@fedoraproject.org> - 0.49-1
|
|
|
0e66abf |
- Update to 0.49
|
|
|
0e66abf |
|
|
|
ca68768 |
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.38-3
|
|
|
ca68768 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
ca68768 |
|
|
|
468210f |
* Sat Feb 28 2009 Michel Salim <salimma@fedoraproject.org> - 0.38-2
|
|
|
468210f |
- Workaround for RHEL's desktop-file-utils
|
|
|
468210f |
- Add missing dependency on xdg-utils
|
|
|
468210f |
|
|
|
016c06c |
* Fri Feb 27 2009 Michel Salim <salimma@fedoraproject.org> - 0.38-1
|
|
|
016c06c |
- Update to 0.38
|
|
|
016c06c |
- Upgrades now preserve the existing menu, if modified
|
|
|
016c06c |
|
|
|
ebc1a7e |
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.34-3
|
|
|
ebc1a7e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
ebc1a7e |
|
|
|
eda48f6 |
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.34-2
|
|
|
eda48f6 |
- Rebuild for Python 2.6
|
|
|
eda48f6 |
|
|
|
4aba738 |
* Sun Aug 3 2008 Michel Alexandre Salim <salimma@fedoraproject.org> - 0.34-1
|
|
|
4aba738 |
- Update to 0.34
|
|
|
4aba738 |
|
|
|
71b237d |
* Sat Apr 5 2008 Michel Salim <salimma@fedoraproject.org> - 0.32-1
|
|
|
71b237d |
- Update to 0.32
|
|
|
71b237d |
- Package .egg-info file on Fedora >= 9
|
|
|
71b237d |
|
|
|
320914a |
* Fri Jan 18 2008 Michel Salim <michel.sylvan@gmail.com> - 0.31-1
|
|
|
320914a |
- Update to 0.31
|
|
|
320914a |
|
|
|
94386e9 |
* Sat Sep 8 2007 Michel Salim <michel.sylvan@gmail.com> 0.30-2
|
|
|
94386e9 |
- Update scriptlet that creates zeroinst user
|
|
|
94386e9 |
|
|
|
fb9bcfb |
* Wed Sep 5 2007 Michel Salim <michel.sylvan@gmail.com> 0.30-1
|
|
|
fb9bcfb |
- Update to 0.30
|
|
|
fb9bcfb |
- License is now versioned
|
|
|
fb9bcfb |
- Incorporate changes from Thomas Leonard:
|
|
|
fb9bcfb |
* create zeroinst user
|
|
|
fb9bcfb |
* create shared cache
|
|
|
fb9bcfb |
|
|
|
3fff20e |
* Mon Dec 18 2006 Michel Salim <michel.salim@gmail.com> 0.24-3
|
|
|
3fff20e |
- Rebuild for development branch
|
|
|
3fff20e |
|
|
|
c5214a1 |
* Sat Nov 11 2006 Michel Salim <michel.salim@gmail.com> 0.24-2
|
|
|
c5214a1 |
- Allow installation of ix86 binaries on x86_64
|
|
|
c5214a1 |
|
|
|
0770170 |
* Sat Nov 4 2006 Michel Salim <michel.salim@gmail.com> 0.24-1
|
|
|
0770170 |
- Update to 0.24
|
|
|
0770170 |
- Not ghosting .pyos any longer
|
|
|
0770170 |
|
|
|
020f627 |
* Sun Oct 8 2006 Michel Salim <michel.salim@gmail.com> 0.23-1
|
|
|
020f627 |
- Update to 0.23
|
|
|
020f627 |
|
|
|
fb870de |
* Sun Mar 5 2006 Michel Salim <michel.salim@gmail.com> 0.18-4
|
|
|
fb870de |
- Removed left-behind pushd and popd
|
|
|
fb870de |
|
|
|
fb870de |
* Sat Feb 25 2006 Michel Salim <michel.salim@gmail.com> 0.18-3
|
|
|
fb870de |
- Add Python-related requirements, BuildReq on gnupg to decrypt upstream source
|
|
|
fb870de |
|
|
|
fb870de |
* Sat Feb 18 2006 Michel Salim <michel.salim@gmail.com> 0.18-2
|
|
|
fb870de |
- Use _mandir, discard CFLAGS and unused python_sitearch definition
|
|
|
fb870de |
|
|
|
fb870de |
* Thu Feb 16 2006 Michel Salim <michel.salim@gmail.com> 0.18-1
|
|
|
fb870de |
- Initial Fedora Extras release, based on upstream spec contributed by Juan Carlos Jimenez Garcia
|