3 %bcond_without tests # build without tests
5 Summary: The Zero Install Injector (0launch)
6 Summary(pl.UTF-8): Bardzo łatwy instalator
7 Name: zeroinstall-injector
11 Group: Applications/File
12 Source0: http://downloads.sourceforge.net/zero-install/0install-%{version}.tar.bz2
13 # Source0-md5: 00d567d9086d0b030ac610df6e4cb237
14 URL: http://0install.net/injector.html
16 BuildRequires: gettext
18 BuildRequires: python-coverage
19 BuildRequires: python-pygobject
20 %if %(locale -a | grep -q '^en_US$'; echo $?)
21 BuildRequires: glibc-localedb-all
24 BuildRequires: desktop-file-utils
26 BuildRequires: rpm-pythonprov
27 BuildRequires: sed >= 4.0
30 Requires: desktop-file-utils
32 Requires: gtk-update-icon-cache
34 Requires: hicolor-icon-theme
36 Requires: python-pygtk-gtk
42 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
45 The Zero Install Injector makes it easy for users to install software
46 without needing root privileges. It takes the URL of a program and
47 runs it (downloading it first if necessary). Any dependencies of the
48 program are fetched in the same way. The user controls which version
49 of the program and its dependencies to use.
51 %description -l pl.UTF-8
52 Bardzo łatwy instalator umożliwia zwykłemu użytkownikowi instalację
53 programu bez konieczności posiadania uprawnień administratora. Pobiera
54 URL aplikacji i ją uruchamia (ściąga na lokalny udział o ile to
55 konieczne). Jakiekolwiek zależności obsługiwane są w ten sam sposób.
56 Użytkownik może wybrać którą wersję programu i bibliotek zależnych
60 %setup -q -n 0install-%{version}
62 %{__sed} -i -e '/data_files/ s#man/man1#share/man/man1#' setup.py
64 # network tests of failing ones
65 mv tests/testdownload.py{,.off}
66 mv tests/testpackagekit.py{,.off}
69 mv tests/testunpack.py{,.fail}
70 mv tests/testdistro.py{,.fail}
71 mv tests/testlaunch.py{,.fail}
72 mv tests/testrun.py{,.fail}
75 %{__python} setup.py build
78 export PYTHONPATH=${PWD:-$(pwd)}
84 rm -rf $RPM_BUILD_ROOT
85 %{__python} setup.py install \
88 --root=$RPM_BUILD_ROOT
90 %find_lang zero-install
92 desktop-file-validate \
93 $RPM_BUILD_ROOT%{_desktopdir}/0install.desktop
96 rm $RPM_BUILD_ROOT%{_datadir}/bash-completion/completions/0install
97 rm $RPM_BUILD_ROOT%{_datadir}/fish/completions/0install.fish
98 rm $RPM_BUILD_ROOT%{_datadir}/zsh/site-functions/_0install
103 rm -rf $RPM_BUILD_ROOT
106 %update_desktop_database
107 %update_icon_cache hicolor
110 %update_desktop_database
111 %update_icon_cache hicolor
113 %files -f zero-install.lang
114 %defattr(644,root,root,755)
116 %attr(755,root,root) %{_bindir}/0alias
117 %attr(755,root,root) %{_bindir}/0desktop
118 %attr(755,root,root) %{_bindir}/0install
119 %attr(755,root,root) %{_bindir}/0launch
120 %attr(755,root,root) %{_bindir}/0store
121 %attr(755,root,root) %{_bindir}/0store-secure-add
122 %{_mandir}/man1/0alias.1*
123 %{_mandir}/man1/0desktop.1*
124 %{_mandir}/man1/0install.1*
125 %{_mandir}/man1/0launch.1*
126 %{_mandir}/man1/0store-secure-add.1*
127 %{_mandir}/man1/0store.1*
128 %{_iconsdir}/hicolor/*/apps/zeroinstall.*
129 %{_desktopdir}/0install.desktop
131 %dir %{py_sitescriptdir}/zeroinstall
132 %{py_sitescriptdir}/zeroinstall/*.py[co]
133 %dir %{py_sitescriptdir}/zeroinstall/0launch-gui
134 %{py_sitescriptdir}/zeroinstall/0launch-gui/*.py[co]
135 %{py_sitescriptdir}/zeroinstall/0launch-gui/0launch-gui
136 %{py_sitescriptdir}/zeroinstall/0launch-gui/zero-install.ui
137 %dir %{py_sitescriptdir}/zeroinstall/injector
138 %{py_sitescriptdir}/zeroinstall/injector/*.py[co]
139 %{py_sitescriptdir}/zeroinstall/injector/EquifaxSecureCA.crt
140 %dir %{py_sitescriptdir}/zeroinstall/gtkui
141 %{py_sitescriptdir}/zeroinstall/gtkui/*.py[co]
142 %{py_sitescriptdir}/zeroinstall/gtkui/cache.ui
143 %{py_sitescriptdir}/zeroinstall/gtkui/desktop.ui
144 %dir %{py_sitescriptdir}/zeroinstall/support
145 %{py_sitescriptdir}/zeroinstall/support/*.py[co]
146 %dir %{py_sitescriptdir}/zeroinstall/zerostore
147 %{py_sitescriptdir}/zeroinstall/zerostore/*.py[co]
148 %{py_sitescriptdir}/zeroinstall/zerostore/_unlzma
149 %dir %{py_sitescriptdir}/zeroinstall/cmd
150 %{py_sitescriptdir}/zeroinstall/cmd/*.py[co]
151 %{py_sitescriptdir}/zeroinstall_injector-%{version}-py*.egg-info