2015-02-05 14:36:30 +00:00
|
|
|
#
|
|
|
|
# spec file for package guix
|
|
|
|
#
|
2015-02-25 19:01:28 +00:00
|
|
|
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
2015-02-05 14:36:30 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2015-10-03 06:25:07 +00:00
|
|
|
# if there is systemd present, systemd_requires is defined
|
|
|
|
%define systemd_present %{defined systemd_requires}
|
2015-02-05 14:36:30 +00:00
|
|
|
%define guile guile-2.0.9.tar.xz
|
2015-10-03 06:25:07 +00:00
|
|
|
|
2015-02-05 14:36:30 +00:00
|
|
|
Name: guix
|
2015-10-03 06:25:07 +00:00
|
|
|
Version: 0.8.3
|
2015-02-05 14:36:30 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: GNU Package manager
|
|
|
|
License: GPL-3.0
|
|
|
|
Group: System/Packages
|
|
|
|
Url: http://www.gnu.org/software/guix/
|
|
|
|
Source0: ftp://alpha.gnu.org/gnu/guix/%{name}-%{version}.tar.gz
|
2015-02-25 19:01:28 +00:00
|
|
|
Source1: ftp://alpha.gnu.org/gnu/guix/%{name}-%{version}.tar.gz.sig
|
|
|
|
Source2: %{name}.keyring
|
2015-02-05 14:36:30 +00:00
|
|
|
# source file renamed - this would lead to 3 same file names
|
|
|
|
# http://alpha.gnu.org/gnu/guix/bootstrap/i686-linux/20131110/%%{guile}
|
2015-02-25 19:01:28 +00:00
|
|
|
Source3: i686-linux-%{guile}
|
2015-02-05 14:36:30 +00:00
|
|
|
# http://alpha.gnu.org/gnu/guix/bootstrap/x86_64-linux/20131110/%%{guile}
|
2015-02-25 19:01:28 +00:00
|
|
|
Source4: x86_64-linux-%{guile}
|
2015-02-05 14:36:30 +00:00
|
|
|
# http://alpha.gnu.org/gnu/guix/bootstrap/mips64el-linux/20131110/%%{guile}
|
2015-02-25 19:01:28 +00:00
|
|
|
Source5: mips64el-linux-%{guile}
|
2015-02-05 14:36:30 +00:00
|
|
|
# http://alpha.gnu.org/gnu/guix/bootstrap/armhf-linux/20150101/guile-2.0.11.tar.xz
|
2015-02-25 19:01:28 +00:00
|
|
|
Source6: armhf-linux-guile-2.0.11.tar.xz
|
2015-10-03 06:25:07 +00:00
|
|
|
#Source10: guixd.service
|
2015-02-05 14:36:30 +00:00
|
|
|
Source11: sysconfig.guix
|
2015-11-01 17:38:30 +00:00
|
|
|
BuildRequires: emacs-nox
|
2015-02-05 14:36:30 +00:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libgcrypt-devel
|
|
|
|
BuildRequires: pkgconfig
|
2015-10-03 06:25:07 +00:00
|
|
|
BuildRequires: pkgconfig(bzip2)
|
|
|
|
BuildRequires: pkgconfig(guile-2.0) >= 2.0.7
|
|
|
|
BuildRequires: pkgconfig(sqlite3)
|
2015-02-05 14:36:30 +00:00
|
|
|
Requires: guile
|
|
|
|
Requires: libgcrypt-devel
|
2015-02-25 19:01:28 +00:00
|
|
|
Requires(pre): %{install_info_prereq}
|
2015-02-05 14:36:30 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2015-02-25 19:01:28 +00:00
|
|
|
%{?systemd_requires}
|
2015-10-03 06:25:07 +00:00
|
|
|
%if %{systemd_present}
|
|
|
|
BuildRequires: systemd-rpm-macros
|
|
|
|
%endif
|
2015-02-05 14:36:30 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
Purely functional package manager and a distribution thereof.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2015-10-03 06:25:07 +00:00
|
|
|
# install service file to _unitdir
|
|
|
|
sed -i 's@\$(libdir)/systemd/system@%{_unitdir}@' Makefile.in
|
2015-02-05 14:36:30 +00:00
|
|
|
mkdir -p gnu/packages/bootstrap/{i686,x86_64,mips64el,armhf}-linux
|
2015-02-25 19:01:28 +00:00
|
|
|
cp %{SOURCE3} gnu/packages/bootstrap/i686-linux/%{guile}
|
|
|
|
cp %{SOURCE4} gnu/packages/bootstrap/x86_64-linux/%{guile}
|
|
|
|
cp %{SOURCE5} gnu/packages/bootstrap/mips64el-linux/%{guile}
|
|
|
|
cp %{SOURCE6} gnu/packages/bootstrap/armhf-linux/guile-2.0.11.tar.xz
|
2015-02-05 14:36:30 +00:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%configure \
|
|
|
|
--disable-silent-rules
|
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
|
|
|
%find_lang %{name}
|
|
|
|
%find_lang guix-packages
|
|
|
|
install -d -m 0755 %{buildroot}%{_localstatedir}/adm/fillup-templates/
|
|
|
|
install -D -m 0644 -t %{buildroot}%{_localstatedir}/adm/fillup-templates/ %{SOURCE11}
|
|
|
|
rm %{buildroot}%{_infodir}/dir
|
2015-11-01 17:38:30 +00:00
|
|
|
install -d -m 0755 %{buildroot}/gnu
|
|
|
|
install -d -m 0755 %{buildroot}/gnu/store
|
2015-10-03 06:25:07 +00:00
|
|
|
%if ! %{systemd_present}
|
|
|
|
rm -rvf %{buildroot}%{_unitdir}
|
|
|
|
%endif
|
2015-02-05 14:36:30 +00:00
|
|
|
|
|
|
|
%pre
|
2015-11-01 17:38:30 +00:00
|
|
|
%{_sbindir}/groupadd -r guixbuild >/dev/null 2>/dev/null || :
|
2015-02-05 14:36:30 +00:00
|
|
|
for i in `seq 1 5`; do
|
2015-11-01 17:38:30 +00:00
|
|
|
%{_sbindir}/useradd -r -o -g guixbuild -G guixbuild \
|
|
|
|
-u $((60+$i)) -c "Guix builder $i" -s /sbin/nologin \
|
|
|
|
-d %{_localstatedir}/empty guix-builder$i 2> /dev/null || :
|
2015-02-05 14:36:30 +00:00
|
|
|
done
|
2015-10-03 06:25:07 +00:00
|
|
|
%if %{systemd_present}
|
|
|
|
%service_add_pre guix-daemon.service
|
2015-02-05 14:36:30 +00:00
|
|
|
|
|
|
|
%preun
|
2015-10-03 06:25:07 +00:00
|
|
|
%service_del_preun guix-daemon.service
|
|
|
|
%endif
|
|
|
|
|
2015-02-05 14:36:30 +00:00
|
|
|
|
|
|
|
%post
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/guix.info.gz
|
|
|
|
%{fillup_only guixd}
|
2015-10-03 06:25:07 +00:00
|
|
|
%if %{systemd_present}
|
|
|
|
%service_add_post guix-daemon.service
|
|
|
|
%endif
|
2015-02-05 14:36:30 +00:00
|
|
|
|
|
|
|
%postun
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/guix.info.gz
|
2015-10-03 06:25:07 +00:00
|
|
|
%if %{systemd_present}
|
|
|
|
%service_del_postun guix-daemon.service
|
|
|
|
%endif
|
2015-02-05 14:36:30 +00:00
|
|
|
|
|
|
|
%files -f %{name}.lang -f guix-packages.lang
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING README
|
Accepting request 307198 from home:sleep_walker:branches:system:packagemanager
- bump to 0.8.2
changes since 0.8.1
** Package management
*** New “binary tarball” installation method is available
*** New ‘guix publish’ command, to publish one’s store
*** ‘guix package’ runs “profile creation hooks” as needed
*** ‘guix package’ creates an ‘etc/profile’ file in the profile
*** Commands understand version prefixes, such as ‘gcc-5’ for ‘gcc-5.1.0’
*** ‘guix package --search’ now sorts packages by name and version
*** Substitute information is now fetched using HTTP pipelining
*** ‘guix package’ warns when a $GUIX_PACKAGE_PATH module cannot be loaded
*** New ‘--sources’ option to ‘guix build’
*** New Bash completion file, installed in $sysconfdir/bash_completion.d
*** New ‘guix import hackage’ command
*** ‘guix lint’ supports FTP for the ‘source’ and ‘home-page’ checkers
*** ‘guix lint’ has a new ‘derivation’ checker
*** ‘guix import cpan’ better handles dependencies and licenses
*** Packages are now build in an environment with a UTF-8 locale
** Distribution
*** C library's name service switch (NSS) is now fully configurable
*** New services: wicd, lirc, colord, upower, console-keymap, postgresql
*** Xorg service supports new drivers, such as Nouveau
*** lsh service has new options, initializes its seed by default
*** /etc/ssl symlink is created, for X.509 certificates
*** ‘guix system’ reports duplicate service identifiers
*** New /etc/bashrc file that loads Bash completion when available
*** SLiM service uses sessions from /run/current-system/profile/share/xsessions
*** The Linux “YAMA” restricting policy on PTRACE_ATTACH is now disabled
*** /etc/shells now lists all the user accounts’ shells
*** /gnu/store is now remounted read-only, to avoid accidental modification
OBS-URL: https://build.opensuse.org/request/show/307198
OBS-URL: https://build.opensuse.org/package/show/system:packagemanager/guix?expand=0&rev=3
2015-05-14 22:40:31 +00:00
|
|
|
%{_sysconfdir}/bash_completion.d/guix
|
2015-02-05 14:36:30 +00:00
|
|
|
%{_datadir}/guile
|
|
|
|
%{_datadir}/guix
|
2015-11-01 17:38:30 +00:00
|
|
|
%{_datadir}/emacs/site-lisp/guix*
|
2015-02-05 14:36:30 +00:00
|
|
|
%{_bindir}/guix*
|
|
|
|
%{_sbindir}/guix*
|
|
|
|
%{_libexecdir}/guix
|
|
|
|
%{_libexecdir}/guix-authenticate
|
|
|
|
%{_infodir}/guix*
|
|
|
|
%{_infodir}/images
|
2015-10-03 06:25:07 +00:00
|
|
|
%if %{systemd_present}
|
|
|
|
%{_unitdir}/guix*.service
|
|
|
|
%endif
|
|
|
|
%{_mandir}/man1/guix*
|
2015-02-05 14:36:30 +00:00
|
|
|
%{_localstatedir}/adm/fillup-templates/*
|
2015-11-01 17:38:30 +00:00
|
|
|
/gnu
|
2015-02-05 14:36:30 +00:00
|
|
|
|
|
|
|
%changelog
|