diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-02-07 17:34:39 +0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-02-07 17:36:04 +0100 |
commit | 0432bc52ea21bb7b60477965054362f7414c569f (patch) | |
tree | cd2b86d7e7a13076e285be4c04c2c856b9c85818 /nix.spec.in | |
parent | 7fab23e237b36a7ca2df6f34eb5febe4c851db42 (diff) |
Fix the RPM build
Diffstat (limited to 'nix.spec.in')
-rw-r--r-- | nix.spec.in | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/nix.spec.in b/nix.spec.in index 8f5df9241..f067c3896 100644 --- a/nix.spec.in +++ b/nix.spec.in @@ -117,19 +117,14 @@ make DESTDIR=$RPM_BUILD_ROOT install find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' -# Fix symlink: we want to link to the versioned soname, not to the -# unversioned one that'd be put in -devel -pushd $RPM_BUILD_ROOT%{perl_vendorarch}/auto/Nix/Store -ln -sf %{_libdir}/nix/libNixStore.so.0 Store.so -popd - # Specify build users group +mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/nix echo "build-users-group = %{nixbld_group}" > $RPM_BUILD_ROOT%{_sysconfdir}/nix/nix.conf # make per-user directories for d in profiles gcroots; do - mkdir $RPM_BUILD_ROOT/nix/var/nix/$d/per-user + mkdir -p $RPM_BUILD_ROOT/nix/var/nix/$d/per-user chmod 1777 $RPM_BUILD_ROOT/nix/var/nix/$d/per-user done @@ -149,7 +144,7 @@ cp -p misc/systemd/nix-daemon.service \ cp -p misc/emacs/nix-mode.elc $RPM_BUILD_ROOT%{_emacs_sitelispdir}/ # we ship this file in the base package -rm $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-doc-%{version}/README +rm -f $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-doc-%{version}/README %clean @@ -176,10 +171,8 @@ systemctl start nix-daemon.service %endif %files -%doc COPYING AUTHORS README %{_bindir}/nix-* -%dir %{_libdir}/nix -%{_libdir}/nix/*.so.* +%{_libdir}/*.so %{perl_vendorarch}/* %exclude %dir %{perl_vendorarch}/auto/ %{_prefix}/libexec/* @@ -198,7 +191,6 @@ systemctl start nix-daemon.service %files devel %{_includedir}/nix -%{_libdir}/nix/*.so %files doc %docdir %{_defaultdocdir}/%{name}-doc-%{version} |