summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichel Alexandre Salim <salimma@fedoraproject.org>2014-01-20 22:03:13 +0700
committerMichel Alexandre Salim <salimma@fedoraproject.org>2014-01-20 22:03:13 +0700
commit31060d1f8180b72096fd2f437df88dee9b93455a (patch)
tree77ba2123585d73a68a4ecc9bf14bb503265b0525
parent76984c832c1dce396283099c11366f94d293b490 (diff)
downloadspecs-31060d1f8180b72096fd2f437df88dee9b93455a.tar.gz
specs-31060d1f8180b72096fd2f437df88dee9b93455a.tar.xz
specs-31060d1f8180b72096fd2f437df88dee9b93455a.zip
Update 0install to 2.6 (fully written in OCaml)
-rw-r--r--ocaml/0install.spec24
1 files changed, 16 insertions, 8 deletions
diff --git a/ocaml/0install.spec b/ocaml/0install.spec
index 5d94ba7..8cbb746 100644
--- a/ocaml/0install.spec
+++ b/ocaml/0install.spec
@@ -1,28 +1,29 @@
-%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%global cache_dir /var/cache/0install.net
Name: 0install
-Version: 2.5.1
+Version: 2.6
Release: 1%{?dist}
Summary: A decentralized cross-distribution software installation system
License: LGPLv2
URL: http://0install.net
Source0: http://downloads.sf.net/project/zero-install/%{name}/%{version}/%{name}-%{version}.tar.bz2
-Patch0: %{name}-2.5.1-destdir.patch
+# Temporarily disable tests, some failures within mock env
+Patch0: %{name}-2.6-no-tests.patch
-#BuildArch:
-BuildRequires: python-devel
BuildRequires: ocaml >= 3.10.0
BuildRequires: ocaml-findlib-devel
BuildRequires: ocaml-camlp4-devel
BuildRequires: ocaml-curl-devel
+BuildRequires: ocaml-dbus-devel
BuildRequires: ocaml-extlib-devel
+BuildRequires: ocaml-lablgtk-devel
BuildRequires: ocaml-lwt-devel
BuildRequires: ocaml-ounit-devel
BuildRequires: ocaml-ssl-devel
BuildRequires: ocaml-xmlm-devel
BuildRequires: ocaml-yojson-devel
+BuildRequires: glib2-devel
BuildRequires: libev-devel
BuildRequires: gettext
BuildRequires: desktop-file-utils
@@ -72,7 +73,7 @@ distribution, which continue to be used for other software.
%prep
%setup -q
-%patch0 -p1 -b .destdir
+%patch0 -p1 -b .no-tests
%build
@@ -81,7 +82,10 @@ make
%install
rm -rf $RPM_BUILD_ROOT
-make install DESTDIR=$RPM_BUILD_ROOT
+make install_system DESTDIR=$RPM_BUILD_ROOT
+strip $RPM_BUILD_ROOT%{_prefix}/lib/0install.net/*.cmxs
+
+mkdir -p "$RPM_BUILD_ROOT%{cache_dir}/implementations"
desktop-file-validate \
$RPM_BUILD_ROOT%{_datadir}/applications/0install.desktop
@@ -115,7 +119,8 @@ fi
%files -f zero-install.lang
%doc COPYING README.md
%{_bindir}/0*
-%{python_sitelib}/*
+%{_prefix}/lib/0install.net
+%{_datadir}/0install.net
%{_datadir}/applications/0install.desktop
%{_datadir}/icons/hicolor/*/apps/zeroinstall.*
%dir %{_datadir}/bash-completion
@@ -133,6 +138,9 @@ fi
%changelog
+* Mon Jan 20 2014 Michel Salim <salimma@fedoraproject.org> - 2.6-1
+- Update to 2.6.1
+
* Mon Jan 20 2014 Michel Salim <salimma@fedoraproject.org> - 2.5.1-1
- Rename package to 0install
- Update to 2.5.1