2004-09-06 08:17:55 +00:00
|
|
|
# This RPM accepts the following defininitions (which can be passed
|
|
|
|
# using `--define' to rpmbuild, e.g., --define 'enable_setuid yes'):
|
|
|
|
# enable_setuid: if non-empty, pass `--enable-setuid' to configure
|
|
|
|
# nix_user: if set, pass as `--with-nix-user' to configure
|
|
|
|
# nix_group: if set, pass as `--with-nix-group' to configure
|
|
|
|
|
|
|
|
%{!?enable_setuid: %define enable_setuid ""}
|
|
|
|
%{!?nix_user: %define nix_user ""}
|
|
|
|
%{!?nix_group: %define nix_group ""}
|
|
|
|
|
2003-12-30 20:09:00 +00:00
|
|
|
Summary: The Nix software deployment system
|
|
|
|
Name: nix
|
2004-01-02 16:04:53 +00:00
|
|
|
Version: @version@
|
2003-12-30 20:09:00 +00:00
|
|
|
Release: 1
|
|
|
|
License: GPL
|
2004-09-06 08:17:55 +00:00
|
|
|
Group: Software Deployment
|
|
|
|
URL: http://www.cs.uu.nl/groups/ST/Trace/Nix
|
2004-01-02 16:04:53 +00:00
|
|
|
Source0: %{name}-@version@.tar.gz
|
2003-12-30 20:09:00 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
|
|
|
|
%define _prefix /nix
|
|
|
|
Prefix: %{_prefix}
|
2004-03-29 12:10:15 +00:00
|
|
|
Requires: /usr/bin/perl
|
2003-12-30 20:09:00 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
|
2004-09-06 08:17:55 +00:00
|
|
|
Nix is a system for software deployment.
|
2003-12-30 20:09:00 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2004-09-06 08:17:55 +00:00
|
|
|
extraFlags=
|
|
|
|
if test -n "%{enable_setuid}"; then
|
|
|
|
extraFlags="$extraFlags --enable-setuid"
|
|
|
|
if test -n "%{nix_user}"; then
|
|
|
|
extraFlags="$extraFlags --with-nix-user=%{nix_user}"
|
|
|
|
fi
|
|
|
|
if test -n "%{nix_group}"; then
|
|
|
|
extraFlags="$extraFlags --with-nix-group=%{nix_group}"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
./configure --prefix=%{_prefix} $extraFlags
|
2003-12-30 20:09:00 +00:00
|
|
|
make
|
2004-05-04 12:15:30 +00:00
|
|
|
make check
|
2003-12-30 20:09:00 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
2004-01-19 09:01:28 +00:00
|
|
|
strip $RPM_BUILD_ROOT/%{_prefix}/bin/* || true
|
2003-12-30 20:09:00 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_prefix}/bin
|
|
|
|
%{_prefix}/libexec
|
|
|
|
%{_prefix}/var
|
|
|
|
%{_prefix}/share
|
|
|
|
%{_prefix}/man
|
2004-01-02 14:58:25 +00:00
|
|
|
%{_prefix}/store
|
2003-12-30 20:09:00 +00:00
|
|
|
%config
|
|
|
|
%{_prefix}/etc
|
|
|
|
#%doc
|
|
|
|
#%{_prefix}/share/nix/manual
|