880ac7d
# modifying the dockerinit binary breaks the SHA1 sum check by docker
880ac7d
%global __os_install_post %{_rpmconfigdir}/brp-compress
880ac7d
880ac7d
# docker builds in a checksum of dockerinit into docker,
880ac7d
# so stripping the binaries breaks docker
880ac7d
%global debug_package %{nil}
880ac7d
%global provider github
880ac7d
%global provider_tld com
880ac7d
%global project docker
880ac7d
%global repo %{project}
880ac7d
880ac7d
%global import_path %{provider}.%{provider_tld}/%{project}/%{repo}
880ac7d
880ac7d
# docker stuff (prefix with d_)
880ac7d
%global d_commit 5ebfacda4747fb0b2473841dff9b9b771b3bcb53
880ac7d
%global d_shortcommit %(c=%{d_commit}; echo ${c:0:7})
880ac7d
880ac7d
%global tar_import_path code.google.com/p/go/src/pkg/archive/tar
880ac7d
211cf87
%if 0%{?fedora} >= 23
880ac7d
# docker-selinux stuff (prefix with ds_ for version/release etc.)
880ac7d
# Some bits borrowed from the openstack-selinux package
880ac7d
%global ds_commit 4421e0d80866b4b03f6a16c5b6bfabdf4c8bfa7c
880ac7d
%global ds_shortcommit %(c=%{ds_commit}; echo ${c:0:7})
880ac7d
%global selinuxtype targeted
880ac7d
%global moduletype services
880ac7d
%global modulenames %{repo}
880ac7d
880ac7d
# Usage: _format var format
880ac7d
# Expand 'modulenames' into various formats as needed
880ac7d
# Format must contain '$x' somewhere to do anything useful
880ac7d
%global _format() export %1=""; for x in %{modulenames}; do %1+=%2; %1+=" "; done;
880ac7d
880ac7d
# Relabel files
8d9b10c
%global relabel_files() %{_sbindir}/restorecon -R %{_bindir}/%{repo} %{_localstatedir}/run/%{repo}.sock %{_localstatedir}/run/%{repo}.pid %{_sharedstatedir}/%{repo} %{_sysconfdir}/%{repo} %{_localstatedir}/log/%{repo} %{_localstatedir}/log/lxc %{_localstatedir}/lock/lxc %{_unitdir}/%{repo}.service %{_sysconfdir}/%{repo} &> /dev/null || :
880ac7d
880ac7d
# Version of SELinux we were using
880ac7d
%global selinux_policyver 3.13.1-119
211cf87
%endif
880ac7d
880ac7d
Name: %{repo}
880ac7d
Version: 1.5.0
abcb4dc
Release: 25.git%{d_shortcommit}%{?dist}
880ac7d
Summary: Automates deployment of containerized applications
880ac7d
License: ASL 2.0
8d9b10c
URL: http://www.%{repo}.com
880ac7d
ExclusiveArch: x86_64 %{arm}
8d9b10c
#Source0: https://%{import_path}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
8d9b10c
Source0: https://github.com/lsm5/%{repo}/archive/%{d_commit}/%{repo}-%{d_shortcommit}.tar.gz
8d9b10c
Source1: %{repo}.service
8d9b10c
Source2: %{repo}.sysconfig
8d9b10c
Source3: %{repo}-storage.sysconfig
8d9b10c
Source4: %{repo}-logrotate.sh
8d9b10c
Source5: README.%{repo}-logrotate
8d9b10c
Source6: %{repo}-network.sysconfig
e522151
%if 0%{?fedora} >= 23
8d9b10c
Source7: https://github.com/fedora-cloud/%{repo}-selinux/archive/%{ds_commit}/%{repo}-selinux-%{ds_shortcommit}.tar.gz
e522151
%endif
880ac7d
BuildRequires: glibc-static
880ac7d
BuildRequires: golang >= 1.3.3
880ac7d
BuildRequires: go-md2man
880ac7d
BuildRequires: device-mapper-devel
880ac7d
BuildRequires: btrfs-progs-devel
880ac7d
BuildRequires: sqlite-devel
880ac7d
BuildRequires: pkgconfig(systemd)
880ac7d
%if 0%{?fedora} >= 21
880ac7d
# Resolves: rhbz#1165615
880ac7d
Requires: device-mapper-libs >= 1.02.90-1
880ac7d
%endif
880ac7d
880ac7d
# RE: rhbz#1195804 - ensure min NVR for selinux-policy
880ac7d
%if 0%{?fedora} >= 23
880ac7d
Requires: selinux-policy >= 3.13.1-114
8d9b10c
Requires(pre): %{repo}-selinux >= %{version}-%{release}
880ac7d
%endif
880ac7d
880ac7d
# Resolves: rhbz#1045220
880ac7d
Requires: xz
8d9b10c
Provides: lxc-%{repo} = %{version}-%{release}
880ac7d
880ac7d
# permitted by https://fedorahosted.org/fpc/ticket/341#comment:7
880ac7d
# In F22, the whole package should be renamed to be just "docker" and
880ac7d
# this changed to "Provides: docker-io".
880ac7d
%if 0%{?fedora} >= 22
8d9b10c
Provides: %{repo}-io = %{version}-%{release}
8d9b10c
Obsoletes: %{repo}-io < %{version}-21
880ac7d
%endif
880ac7d
880ac7d
%description
880ac7d
Docker is an open-source engine that automates the deployment of any
880ac7d
application as a lightweight, portable, self-sufficient container that will
880ac7d
run virtually anywhere.
880ac7d
880ac7d
Docker containers can encapsulate any payload, and will run consistently on
880ac7d
and between virtually any server. The same container that a developer builds
880ac7d
and tests on a laptop will run at scale, in production*, on VMs, bare-metal
880ac7d
servers, OpenStack clusters, public instances, or combinations of the above.
880ac7d
880ac7d
%package devel
880ac7d
BuildRequires: golang >= 1.2.1-3
880ac7d
Requires: golang >= 1.2.1-3
8d9b10c
Provides: %{repo}-io-devel = %{version}-%{release}
8d9b10c
Provides: %{repo}-pkg-devel = %{version}-%{release}
8d9b10c
Provides: %{repo}-io-pkg-devel = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/vendor/src/%{tar_import_path}) = %{version}-%{release}
880ac7d
Summary:  A golang registry for global request variables (source libraries)
880ac7d
Provides: golang(%{import_path}) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/builder) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/builder/parser) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/builder/parser/dumper) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/builder/command) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/nat) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/utils) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/integration-cli) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/trust) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/events) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/volumes) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/dockerinit) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/engine) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/registry) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/registry/v2) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/api) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/api/client) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/api/stats) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/api/server) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/opts) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/builtins) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/runconfig) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/docker) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/contrib/docker-device-tool) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/contrib/host-integration) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/daemon) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/daemon/graphdriver) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/daemon/graphdriver/devmapper) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/daemon/graphdriver/aufs) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/daemon/graphdriver/overlay) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/daemon/graphdriver/vfs) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/daemon/graphdriver/btrfs) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/daemon/graphdriver/graphtest) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/daemon/networkdriver) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/daemon/networkdriver/ipallocator) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/daemon/networkdriver/portmapper) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/daemon/networkdriver/bridge) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/daemon/networkdriver/portallocator) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/daemon/execdriver) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/daemon/execdriver/execdrivers) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/daemon/execdriver/lxc) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/daemon/execdriver/native) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/daemon/execdriver/native/template) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/pkg/devicemapper) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/pkg/units) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/pkg/chrootarchive) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/pkg/mount) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/pkg/systemd) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/pkg/parsers) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/pkg/parsers/kernel) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/pkg/parsers/operatingsystem) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/pkg/parsers/filters) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/pkg/broadcastwriter) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/pkg/stdcopy) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/pkg/proxy) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/pkg/promise) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/pkg/pools) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/pkg/system) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/pkg/fileutils) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/pkg/mflag) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/pkg/mflag/example) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/pkg/timeutils) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/pkg/ioutils) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/pkg/pubsub) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/pkg/signal) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/pkg/listenbuffer) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/pkg/version) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/pkg/httputils) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/pkg/urlutil) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/pkg/sysinfo) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/pkg/archive) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/pkg/iptables) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/pkg/tailfile) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/pkg/graphdb) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/pkg/tarsum) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/pkg/namesgenerator) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/pkg/jsonlog) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/pkg/testutils) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/pkg/truncindex) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/pkg/homedir) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/pkg/symlink) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/pkg/networkfs/resolvconf) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/pkg/networkfs/etchosts) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/pkg/term) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/pkg/reexec) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/integration) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/links) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/image) = %{version}-%{release}
880ac7d
Provides: golang(%{import_path}/graph) = %{version}-%{release}
880ac7d
880ac7d
%description devel
880ac7d
%{summary}
880ac7d
880ac7d
This package provides the source libraries for Docker.
880ac7d
880ac7d
%package fish-completion
880ac7d
Summary: fish completion files for Docker
8d9b10c
Requires: %{repo} = %{version}-%{release}
880ac7d
Requires: fish
8d9b10c
Provides: %{repo}-io-fish-completion = %{version}-%{release}
880ac7d
880ac7d
%description fish-completion
880ac7d
This package installs %{summary}.
880ac7d
880ac7d
%package logrotate
880ac7d
Summary: cron job to run logrotate on Docker containers
8d9b10c
Requires: %{repo} = %{version}-%{release}
8d9b10c
Provides: %{repo}-io-logrotate = %{version}-%{release}
880ac7d
880ac7d
%description logrotate
880ac7d
This package installs %{summary}. logrotate is assumed to be installed on
880ac7d
containers for this to work, failures are silently ignored.
880ac7d
211cf87
%if 0%{?fedora} >= 23
880ac7d
%package selinux
880ac7d
Summary: SELinux policies for Docker
880ac7d
BuildRequires: selinux-policy
880ac7d
BuildRequires: selinux-policy-devel
880ac7d
Requires(post): selinux-policy-base >= %{selinux_policyver}
880ac7d
Requires(post): selinux-policy-targeted >= %{selinux_policyver}
880ac7d
Requires(post): policycoreutils
880ac7d
Requires(post): policycoreutils-python
880ac7d
Requires(post): libselinux-utils
8d9b10c
Provides: %{repo}-io-selinux
880ac7d
880ac7d
%description selinux
880ac7d
SELinux policy modules for use with Docker.
211cf87
%endif
880ac7d
880ac7d
%package vim
880ac7d
Summary: vim syntax highlighting files for Docker
8d9b10c
Requires: %{repo} = %{version}-%{release}
880ac7d
Requires: vim
8d9b10c
Provides: %{repo}-io-vim = %{version}-%{release}
880ac7d
880ac7d
%description vim
880ac7d
This package installs %{summary}.
880ac7d
880ac7d
%package zsh-completion
880ac7d
Summary: zsh completion files for Docker
8d9b10c
Requires: %{repo} = %{version}-%{release}
880ac7d
Requires: zsh
8d9b10c
Provides: %{repo}-io-zsh-completion = %{version}-%{release}
880ac7d
880ac7d
%description zsh-completion
880ac7d
This package installs %{summary}.
880ac7d
880ac7d
%prep
8d9b10c
%setup -q -n %{repo}-%{d_commit}
880ac7d
cp %{SOURCE5} .
880ac7d
211cf87
%if 0%{?fedora} >= 23
8d9b10c
# unpack %{repo}-selinux
880ac7d
tar zxf %{SOURCE7}
211cf87
%endif
880ac7d
880ac7d
%build
880ac7d
# set up temporary build gopath, and put our directory there
8d9b10c
mkdir -p ./_build/src/github.com/%{repo}
880ac7d
ln -s $(pwd) ./_build/src/%{import_path}
880ac7d
880ac7d
export DOCKER_GITCOMMIT="%{d_shortcommit}/%{version}"
880ac7d
export DOCKER_BUILDTAGS="selinux btrfs_noversion"
880ac7d
export GOPATH=$(pwd)/_build:$(pwd)/vendor:%{gopath}
880ac7d
880ac7d
DEBUG=1 hack/make.sh dynbinary
880ac7d
docs/man/md2man-all.sh
880ac7d
cp contrib/syntax/vim/LICENSE LICENSE-vim-syntax
880ac7d
cp contrib/syntax/vim/README.md README-vim-syntax.md
880ac7d
211cf87
%if 0%{?fedora} >= 23
8d9b10c
# build %{repo}-selinux
8d9b10c
pushd %{repo}-selinux-%{ds_commit}
8d3b229
make SHARE="%{_datadir}" TARGETS="%{modulenames}"
880ac7d
popd
211cf87
%endif
880ac7d
880ac7d
%install
880ac7d
# install binary
880ac7d
install -d %{buildroot}%{_bindir}
8d9b10c
install -d %{buildroot}%{_libexecdir}/%{repo}
880ac7d
880ac7d
# Grab the first thing from -dev
880ac7d
for x in bundles/*-dev; do \
8d9b10c
  install -p -m 755 $x/dynbinary/%{repo}-*-dev %{buildroot}%{_bindir}/%{repo}
8d9b10c
  install -p -m 755 $x/dynbinary/%{repo}init-*-dev %{buildroot}%{_libexecdir}/%{repo}/%{repo}init
880ac7d
  break
880ac7d
done
880ac7d
880ac7d
# install manpages
880ac7d
install -d %{buildroot}%{_mandir}/man1
8d9b10c
install -p -m 644 docs/man/man1/%{repo}*.1 %{buildroot}%{_mandir}/man1
880ac7d
install -d %{buildroot}%{_mandir}/man5
880ac7d
install -p -m 644 docs/man/man5/Dockerfile.5 %{buildroot}%{_mandir}/man5
880ac7d
880ac7d
# install bash completion
880ac7d
install -dp %{buildroot}%{_datadir}/bash-completion/completions
8d9b10c
install -p -m 644 contrib/completion/bash/%{repo} %{buildroot}%{_datadir}/bash-completion/completions
880ac7d
880ac7d
# install fish completion
880ac7d
# create, install and own /usr/share/fish/vendor_completions.d until
880ac7d
# upstream fish provides it
880ac7d
install -dp %{buildroot}%{_datadir}/fish/vendor_completions.d
8d9b10c
install -p -m 644 contrib/completion/fish/%{repo}.fish %{buildroot}%{_datadir}/fish/vendor_completions.d
880ac7d
880ac7d
# install container logrotate cron script
880ac7d
install -dp %{buildroot}%{_sysconfdir}/cron.daily/
8d9b10c
install -p -m 755 %{SOURCE4} %{buildroot}%{_sysconfdir}/cron.daily/%{repo}-logrotate
880ac7d
880ac7d
# install vim syntax highlighting
880ac7d
install -d %{buildroot}%{_datadir}/vim/vimfiles/{doc,ftdetect,syntax}
8d9b10c
install -p -m 644 contrib/syntax/vim/doc/%{repo}file.txt %{buildroot}%{_datadir}/vim/vimfiles/doc
8d9b10c
install -p -m 644 contrib/syntax/vim/ftdetect/%{repo}file.vim %{buildroot}%{_datadir}/vim/vimfiles/ftdetect
8d9b10c
install -p -m 644 contrib/syntax/vim/syntax/%{repo}file.vim %{buildroot}%{_datadir}/vim/vimfiles/syntax
880ac7d
880ac7d
# install zsh completion
880ac7d
install -d %{buildroot}%{_datadir}/zsh/site-functions
8d9b10c
install -p -m 644 contrib/completion/zsh/_%{repo} %{buildroot}%{_datadir}/zsh/site-functions
880ac7d
880ac7d
# install udev rules
880ac7d
install -d %{buildroot}%{_sysconfdir}/udev/rules.d
8d9b10c
install -p contrib/udev/80-%{repo}.rules %{buildroot}%{_sysconfdir}/udev/rules.d
880ac7d
880ac7d
# install storage dir
8d9b10c
install -d %{buildroot}%{_sharedstatedir}/%{repo}
880ac7d
880ac7d
# install systemd/init scripts
880ac7d
install -d %{buildroot}%{_unitdir}
880ac7d
install -p -m 644 %{SOURCE1} %{buildroot}%{_unitdir}
880ac7d
880ac7d
# for additional args
880ac7d
install -d %{buildroot}%{_sysconfdir}/sysconfig/
8d9b10c
install -p -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/%{repo}
8d9b10c
install -p -m 644 %{SOURCE6} %{buildroot}%{_sysconfdir}/sysconfig/%{repo}-network
8d9b10c
install -p -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/%{repo}-storage
880ac7d
211cf87
%if 0%{?fedora} >= 23
880ac7d
# install SELinux interfaces
880ac7d
%_format INTERFACES $x.if
880ac7d
install -d %{buildroot}%{_datadir}/selinux/devel/include/%{moduletype}
8d9b10c
install -p -m 644 %{repo}-selinux-%{ds_commit}/$INTERFACES %{buildroot}%{_datadir}/selinux/devel/include/%{moduletype}
880ac7d
880ac7d
# install policy modules
880ac7d
%_format MODULES $x.pp.bz2
880ac7d
install -d %{buildroot}%{_datadir}/selinux/packages
8d9b10c
install -m 0644 %{repo}-selinux-%{ds_commit}/$MODULES %{buildroot}%{_datadir}/selinux/packages
211cf87
%endif
880ac7d
880ac7d
# sources
880ac7d
install -d -p %{buildroot}%{gopath}/src/%{import_path}
880ac7d
rm -rf pkg/symlink/testdata
880ac7d
880ac7d
# install tar_import_path to devel package
880ac7d
install -d -p %{buildroot}%{gopath}/src/%{import_path}/vendor/src/%{tar_import_path}
880ac7d
cp -rpav vendor/src/%{tar_import_path}/* %{buildroot}%{gopath}/src/%{import_path}/vendor/src/%{tar_import_path}
880ac7d
880ac7d
# remove dirs that won't be installed in devel
880ac7d
rm -rf vendor docs _build bundles contrib/init hack project
880ac7d
8d9b10c
# remove %{repo}-selinux rpm spec file
8d9b10c
rm -rf %{repo}-selinux-%{ds_commit}/%{repo}-selinux.spec
880ac7d
880ac7d
# install sources to devel
880ac7d
for dir in */ ; do
880ac7d
    cp -rpav $dir %{buildroot}/%{gopath}/src/%{import_path}/
880ac7d
done
880ac7d
8d9b10c
# install %{repo} config directory
8d9b10c
install -dp %{buildroot}%{_sysconfdir}/%{repo}
880ac7d
880ac7d
%check
8d9b10c
[ ! -e /run/%{repo}.sock ] || {
880ac7d
    mkdir test_dir
880ac7d
    pushd test_dir
880ac7d
    git clone https://%{import_path}
8d9b10c
    pushd %{repo}
880ac7d
    make test
880ac7d
    popd
880ac7d
    popd
880ac7d
}
880ac7d
880ac7d
%pre
8d9b10c
getent passwd %{repo}root > /dev/null || %{_sbindir}/useradd -r \
8d9b10c
           -d %{_sharedstatedir}/%{repo} -s /sbin/nologin \
8d9b10c
           -c "Docker User" %{repo}root
880ac7d
exit 0
880ac7d
880ac7d
%post
8d9b10c
%systemd_post %{repo}
abcb4dc
211cf87
%if 0%{?fedora} >= 23
735fdba
%post selinux
880ac7d
# Install all modules in a single transaction
880ac7d
%_format MODULES %{_datadir}/selinux/packages/$x.pp.bz2
880ac7d
%{_sbindir}/semodule -n -s %{selinuxtype} -i $MODULES
880ac7d
if %{_sbindir}/selinuxenabled ; then
880ac7d
%{_sbindir}/load_policy
880ac7d
%relabel_files
8d3b229
fi
211cf87
%endif
880ac7d
880ac7d
%preun
8d9b10c
%systemd_preun %{repo}
880ac7d
880ac7d
%postun
8d9b10c
%systemd_postun_with_restart %{repo}
abcb4dc
211cf87
%if 0%{?fedora} >= 23
735fdba
%postun selinux
880ac7d
if [ $1 -eq 0 ]; then
880ac7d
%{_sbindir}/semodule -n -r %{modulenames} &> /dev/null || :
880ac7d
if %{_sbindir}/selinuxenabled ; then
880ac7d
%{_sbindir}/load_policy
880ac7d
%relabel_files
880ac7d
fi
880ac7d
fi
211cf87
%endif
880ac7d
880ac7d
%files
880ac7d
%doc AUTHORS CHANGELOG.md CONTRIBUTING.md LICENSE MAINTAINERS NOTICE README.md 
880ac7d
%doc LICENSE-vim-syntax README-vim-syntax.md
8d9b10c
%config(noreplace) %{_sysconfdir}/sysconfig/%{repo}
8d9b10c
%config(noreplace) %{_sysconfdir}/sysconfig/%{repo}-network
8d9b10c
%config(noreplace) %{_sysconfdir}/sysconfig/%{repo}-storage
8d9b10c
%{_mandir}/man1/%{repo}*.1.gz
880ac7d
%{_mandir}/man5/Dockerfile.5.gz
8d9b10c
%{_bindir}/%{repo}
8d9b10c
%{_libexecdir}/%{repo}
8d9b10c
%{_unitdir}/%{repo}.service
8d9b10c
%{_datadir}/bash-completion/completions/%{repo}
8d9b10c
%dir %{_sharedstatedir}/%{repo}
8d9b10c
%{_sysconfdir}/udev/rules.d/80-%{repo}.rules
8d9b10c
%{_sysconfdir}/%{repo}
880ac7d
880ac7d
%files devel
880ac7d
%doc AUTHORS CHANGELOG.md CONTRIBUTING.md LICENSE MAINTAINERS NOTICE README.md 
880ac7d
%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
880ac7d
%{gopath}/src/%{import_path}
880ac7d
880ac7d
%files fish-completion
880ac7d
%dir %{_datadir}/fish/vendor_completions.d/
8d9b10c
%{_datadir}/fish/vendor_completions.d/%{repo}.fish
880ac7d
880ac7d
%files logrotate
8d9b10c
%doc README.%{repo}-logrotate
8d9b10c
%{_sysconfdir}/cron.daily/%{repo}-logrotate
880ac7d
211cf87
%if 0%{?fedora} >= 23
880ac7d
%files selinux
8d9b10c
%doc %{repo}-selinux-%{ds_commit}/README.md
880ac7d
%{_datadir}/selinux/*
211cf87
%endif
880ac7d
880ac7d
%files vim
8d9b10c
%{_datadir}/vim/vimfiles/doc/%{repo}file.txt
8d9b10c
%{_datadir}/vim/vimfiles/ftdetect/%{repo}file.vim
8d9b10c
%{_datadir}/vim/vimfiles/syntax/%{repo}file.vim
880ac7d
880ac7d
%files zsh-completion
8d9b10c
%{_datadir}/zsh/site-functions/_%{repo}
880ac7d
880ac7d
%changelog
abcb4dc
* Tue Mar 24 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.5.0-25.git5ebfacd
abcb4dc
- move selinux post/postun to its own subpackage
abcb4dc
- correct docker-selinux min nvr for docker main package
abcb4dc
8d3b229
* Tue Mar 24 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.5.0-24.git5ebfacd
8d3b229
- docker-selinux shouldn't require docker
8d3b229
- move docker-selinux's post and postun to docker's
8d3b229
e0559a7
* Sun Mar 22 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.5.0-23.git5ebfacd
e0559a7
- increment release tag as -22 was already built without conditionals for f23
e0559a7
and docker-selinux
e522151
- Source7 only for f23+
e0559a7
880ac7d
* Sun Mar 22 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.5.0-22.git5ebfacd
880ac7d
- Rename package to 'docker', metaprovide: docker-io*
880ac7d
- Obsolete docker-io release 21
880ac7d
- no separate version tag for docker-selinux
211cf87
- docker-selinux only for f23+
880ac7d
880ac7d
* Fri Mar 20 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.5.0-21.git5ebfacd
880ac7d
- selinux specific rpm code from Lukas Vrabec <lvrabec@redhat.com>
880ac7d
- use spaces instead of tabs
880ac7d
880ac7d
* Tue Mar 17 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.5.0-20.git5ebfacd
880ac7d
- built commit#5ebfacd
880ac7d
880ac7d
* Mon Mar 16 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.5.0-19.git5d7adce
880ac7d
- built commit#5d7adce
880ac7d
880ac7d
* Thu Mar 05 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.5.0-18.git92e632c
880ac7d
- built commit#92e632c
880ac7d
880ac7d
* Wed Mar 04 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.5.0-17.git0f6704f
880ac7d
- built commit#0f6704f
880ac7d
880ac7d
* Tue Mar 03 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.5.0-16.git8e107a9
880ac7d
- built commit#8e107a9
880ac7d
880ac7d
* Sun Mar 01 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.5.0-15.gita61716e
880ac7d
- built commit#a61716e
880ac7d
880ac7d
* Sat Feb 28 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.5.0-14.gitb52a2cf
880ac7d
- built commit#b52a2cf
880ac7d
880ac7d
* Fri Feb 27 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.5.0-13.gitf5850e8
880ac7d
- built commit#f5850e8
880ac7d
880ac7d
* Thu Feb 26 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.5.0-12.git7e2328b
880ac7d
- built commit#7e2328b
880ac7d
880ac7d
* Wed Feb 25 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.5.0-11.git09b785f
880ac7d
- remove add-X-flag.patch
880ac7d
- require selinux-policy >= 3.13.1-114 for fedora >= 23 (RE: rhbz#1195804)
880ac7d
880ac7d
* Mon Feb 23 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.5.0-10.git09b785f
880ac7d
- Resolves: rhbz#1195328 - solve build failures by adding -X flag back
880ac7d
also see (https://github.com/docker/docker/issues/9207#issuecomment-75578730)
880ac7d
880ac7d
* Wed Feb 18 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.5.0-9.git09b785f
880ac7d
- built commit#09b785f
880ac7d
880ac7d
* Tue Feb 17 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.5.0-8.git2243e32
880ac7d
- re-add detailed provides in -devel package
880ac7d
NOTE: (only providing the root path doesn't help in building packages like
880ac7d
kubernetes)
880ac7d
880ac7d
* Tue Feb 17 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.5.0-7.git2243e32
880ac7d
- built commit#2243e32
880ac7d
880ac7d
* Tue Feb 17 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.5.0-6.git2243e32
880ac7d
- built commit#2243e32
880ac7d
880ac7d
* Sun Feb 15 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.5.0-5.git028968f
880ac7d
- built commit#028968f
880ac7d
880ac7d
* Sat Feb 14 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.5.0-4.git9456a25
880ac7d
- built commit#9456a25
880ac7d
880ac7d
* Thu Feb 12 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.5.0-3.git802802b
880ac7d
- built commit#802802b
880ac7d
880ac7d
* Wed Feb 11 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.5.0-2.git54b59c2
880ac7d
- provide golang paths only upto the repo's root dir
880ac7d
- merge pkg-devel into devel
880ac7d
880ac7d
* Wed Feb 11 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.5.0-1
880ac7d
- New version: 1.5.0, built commit#54b59c2
880ac7d
880ac7d
* Tue Feb 10 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.4.1-27.git76baa35
880ac7d
- daily rebuild - Tue Feb 10 01:19:10 CET 2015
880ac7d
880ac7d
* Mon Feb 09 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.4.1-26.gitc03d6f5
880ac7d
- add config variable for insecure registry
880ac7d
880ac7d
* Sat Feb 07 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.4.1-25.gitc03d6f5
880ac7d
- daily rebuild - Sat Feb  7 02:53:34 UTC 2015
880ac7d
880ac7d
* Fri Feb 06 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.4.1-24.git68b0ed5
880ac7d
- daily rebuild - Fri Feb  6 04:27:54 UTC 2015
880ac7d
880ac7d
* Wed Feb 04 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.4.1-23.git7cc9858
880ac7d
- daily rebuild - Wed Feb  4 22:08:05 UTC 2015
880ac7d
880ac7d
* Wed Feb 04 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.4.1-22.git165ea5c
880ac7d
- daily rebuild - Wed Feb  4 03:10:41 UTC 2015
880ac7d
880ac7d
* Wed Feb 04 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.4.1-21.git165ea5c
880ac7d
- daily rebuild - Wed Feb  4 03:09:20 UTC 2015
880ac7d
880ac7d
* Tue Feb 03 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.4.1-20.git662dffe
880ac7d
- Resolves: rhbz#1184266 - enable debugging
880ac7d
- Resolves: rhbz#1190748 - enable core dumps with no size limit
880ac7d
880ac7d
* Tue Feb 03 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.4.1-19.git662dffe
880ac7d
- daily rebuild - Tue Feb  3 04:56:36 UTC 2015
880ac7d
880ac7d
* Mon Feb 02 2015 Dennis Gilmore <dennis@ausil.us> 1.4.1-18.git9273040
880ac7d
- enable building on %%{arm}
880ac7d
880ac7d
* Mon Feb 02 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.4.1-17.git9273040
880ac7d
- daily rebuild - Mon Feb  2 00:08:17 UTC 2015
880ac7d
880ac7d
* Sun Feb 01 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.4.1-16.git01864d3
880ac7d
- daily rebuild - Sun Feb  1 00:00:57 UTC 2015
880ac7d
880ac7d
* Sat Jan 31 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.4.1-15.gitd400ac7
880ac7d
- daily rebuild - Sat Jan 31 05:08:46 UTC 2015
880ac7d
880ac7d
* Sat Jan 31 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.4.1-14.gitd400ac7
880ac7d
- daily rebuild - Sat Jan 31 05:07:37 UTC 2015
880ac7d
880ac7d
* Thu Jan 29 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.4.1-13.gitd400ac7
880ac7d
- daily rebuild - Thu Jan 29 14:13:04 UTC 2015
880ac7d
880ac7d
* Wed Jan 28 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.4.1-12.gitde52a19
880ac7d
- daily rebuild - Wed Jan 28 02:17:47 UTC 2015
880ac7d
880ac7d
* Tue Jan 27 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.4.1-11.gitacb8e08
880ac7d
- daily rebuild - Tue Jan 27 02:37:34 UTC 2015
880ac7d
880ac7d
* Sun Jan 25 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.4.1-10.gitb1f2fde
880ac7d
- daily rebuild - Sun Jan 25 21:44:48 UTC 2015
880ac7d
880ac7d
* Sun Jan 25 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.4.1-9
880ac7d
- use vendored sources (not built)
880ac7d
880ac7d
* Fri Jan 23 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.4.1-8
880ac7d
- Resolves:rhbz#1185423 - MountFlags=slave in unitfile
880ac7d
- use golang(github.com/coreos/go-systemd/activation)
880ac7d
880ac7d
* Fri Jan 16 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.4.1-7
880ac7d
- docker group no longer used or created
880ac7d
- no socket activation
880ac7d
- config file updates to include info about docker_transition_unconfined
880ac7d
boolean
880ac7d
880ac7d
* Fri Jan 16 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.4.1-6
880ac7d
- run tests inside a docker repo (doesn't affect koji builds - not built)
880ac7d
880ac7d
* Tue Jan 13 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.4.1-5
880ac7d
- Resolves: rhbz#1169593 patch to set DOCKER_CERT_PATH regardless of config file
880ac7d
880ac7d
* Thu Jan 08 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.4.1-4
880ac7d
- allow unitfile to use /etc/sysconfig/docker-network
880ac7d
- MountFlags private
880ac7d
880ac7d
* Fri Dec 19 2014 Dan Walsh <dwalsh@redhat.com> - 1.4.1-3
880ac7d
- Add check to run unit tests
880ac7d
880ac7d
* Thu Dec 18 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.4.1-2
880ac7d
- update and rename logrotate cron script
880ac7d
- install /etc/sysconfig/docker-network
880ac7d
880ac7d
* Wed Dec 17 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.4.1-1
880ac7d
- Resolves: rhbz#1175144 - update to upstream v1.4.1
880ac7d
- Resolves: rhbz#1175097, rhbz#1127570 - subpackages
880ac7d
for fish and zsh completion and vim syntax highlighting
880ac7d
- Provide subpackage to run logrotate on running containers as a daily cron
880ac7d
job
880ac7d
880ac7d
* Thu Dec 11 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.4.0-2
880ac7d
- update metaprovides
880ac7d
880ac7d
* Thu Dec 11 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.4.0-1
880ac7d
- Resolves: rhbz#1173324
880ac7d
- Resolves: rhbz#1172761 - CVE-2014-9356
880ac7d
- Resolves: rhbz#1172782 - CVE-2014-9357
880ac7d
- Resolves: rhbz#1172787 - CVE-2014-9358
880ac7d
- update to upstream v1.4.0
880ac7d
- override DOCKER_CERT_PATH in sysconfig instead of patching the source
880ac7d
- create dockerroot user if doesn't exist prior
880ac7d
880ac7d
* Tue Dec 09 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.3.2-6.gitbb24f99
880ac7d
- use /etc/docker instead of /.docker
880ac7d
- use upstream master commit bb24f99d741cd8d6a8b882afc929c15c633c39cb
880ac7d
- include DOCKER_TMPDIR variable in /etc/sysconfig/docker
880ac7d
880ac7d
* Mon Dec 08 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.3.2-5
880ac7d
- Revert to using upstream release 1.3.2
880ac7d
880ac7d
* Tue Dec 02 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.3.2-4.git353ff40
880ac7d
- Resolves: rhbz#1169151, rhbz#1169334
880ac7d
880ac7d
* Sun Nov 30 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.3.2-3.git353ff40
880ac7d
- Resolves: rhbz#1169035, rhbz#1169151
880ac7d
- bring back golang deps (except libcontainer)
880ac7d
880ac7d
* Tue Nov 25 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.3.2-2
880ac7d
- install sources skipped prior
880ac7d
880ac7d
* Tue Nov 25 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.3.2-1
880ac7d
- Resolves: rhbz#1167642 - Update to upstream v1.3.2
880ac7d
- Resolves: rhbz#1167505, rhbz#1167507 - CVE-2014-6407
880ac7d
- Resolves: rhbz#1167506 - CVE-2014-6408
880ac7d
- use vendor/ dir for golang deps for this NVR (fix deps soon after)
880ac7d
880ac7d
* Wed Nov 19 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.3.1-3
880ac7d
- Resolves: rhbz#1165615
880ac7d
880ac7d
* Fri Oct 31 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.3.1-2
880ac7d
- Remove pandoc from build reqs
880ac7d
880ac7d
* Fri Oct 31 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.3.1-1
880ac7d
- update to v1.3.1
880ac7d
880ac7d
* Mon Oct 20 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.3.0-1
880ac7d
- Resolves: rhbz#1153936 - update to v1.3.0
880ac7d
- don't install zsh files
880ac7d
- iptables=false => ip-masq=false
880ac7d
880ac7d
* Wed Oct 08 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.2.0-5
880ac7d
- Resolves: rhbz#1149882 - systemd unit and socket file updates
880ac7d
880ac7d
* Tue Sep 30 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.2.0-4
880ac7d
- Resolves: rhbz#1139415 - correct path for bash completion
880ac7d
    /usr/share/bash-completion/completions
880ac7d
- versioned provides for docker
880ac7d
- golang versioned requirements for devel and pkg-devel
880ac7d
- remove macros from changelog
880ac7d
- don't own dirs owned by vim, systemd, bash
880ac7d
880ac7d
* Thu Sep 25 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.2.0-3
880ac7d
- Resolves: rhbz#1145660 - support /etc/sysconfig/docker-storage 
880ac7d
  From: Colin Walters <walters@redhat.com>
880ac7d
- patch to ignore selinux if it's disabled
880ac7d
  https://github.com/docker/docker/commit/9e2eb0f1cc3c4ef000e139f1d85a20f0e00971e6
880ac7d
  From: Dan Walsh <dwalsh@redhat.com>
880ac7d
880ac7d
* Sun Aug 24 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.2.0-2
880ac7d
- Provides docker only for f21 and above
880ac7d
880ac7d
* Sat Aug 23 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.2.0-1
880ac7d
- Resolves: rhbz#1132824 - update to v1.2.0
880ac7d
880ac7d
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.2-3
880ac7d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
880ac7d
880ac7d
* Fri Aug 01 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.1.2-2
880ac7d
- change conditionals
880ac7d
880ac7d
* Thu Jul 31 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.1.2-1
880ac7d
- Resolves: rhbz#1124036 - update to upstream v1.1.2
880ac7d
880ac7d
* Mon Jul 28 2014 Vincent Batts <vbatts@fedoraproject.org> - 1.0.0-10
880ac7d
- split out the import_path/pkg/... libraries, to avoid cyclic deps with libcontainer
880ac7d
880ac7d
* Thu Jul 24 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.0.0-9
880ac7d
- /etc/sysconfig/docker should be config(noreplace)
880ac7d
880ac7d
* Wed Jul 23 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.0.0-8
880ac7d
- Resolves: rhbz#1119849
880ac7d
- Resolves: rhbz#1119413 - min delta between upstream and packaged unitfiles
880ac7d
- devel package owns directories it creates
880ac7d
- ensure min NVRs used for systemd contain fixes RE: CVE-2014-3499
880ac7d
880ac7d
* Wed Jul 16 2014 Vincent Batts <vbatts@fedoraproject.org> - 1.0.0-7
880ac7d
- clean up gopath
880ac7d
- add Provides for docker libraries
880ac7d
- produce a -devel with docker source libraries
880ac7d
- accomodate golang rpm macros
880ac7d
880ac7d
* Tue Jul 01 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.0.0-6
880ac7d
- Resolves: rhbz#1114810 - CVE-2014-3499 (correct bz#)
880ac7d
880ac7d
* Tue Jul 01 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.0.0-5
880ac7d
- Resolves: rhbz#11114810 - CVE-2014-3499
880ac7d
880ac7d
* Tue Jun 24 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.0.0-4
880ac7d
- Set mode,user,group in docker.socket file
880ac7d
880ac7d
* Sat Jun 14 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.0.0-3
880ac7d
- correct bogus date
880ac7d
880ac7d
* Sat Jun 14 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.0.0-2
880ac7d
- RHBZ#1109533 patch libcontainer for finalize namespace error
880ac7d
- RHBZ#1109039 build with updated golang-github-syndtr-gocapability
880ac7d
- install Dockerfile.5 manpage
880ac7d
880ac7d
* Mon Jun 09 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.0.0-1
880ac7d
- upstream version bump to v1.0.0
880ac7d
880ac7d
* Mon Jun 09 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.12.0-1
880ac7d
- RHBZ#1105789 Upstream bump to 0.12.0
880ac7d
880ac7d
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.1-12
880ac7d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
880ac7d
880ac7d
* Thu Jun 05 2014 Lokesh Mandvekar <lsm5@redhat.com> - 0.11.1-11
880ac7d
- unitfile should Require socket file (revert change in release 10)
880ac7d
880ac7d
* Fri May 30 2014 Lokesh Mandvekar <lsm5@redhat.com> - 0.11.1-10
880ac7d
- do not require docker.socket in unitfile
880ac7d
880ac7d
* Thu May 29 2014 Lokesh Mandvekar <lsm5@redhat.com> - 0.11.1-9
880ac7d
- BZ: change systemd service type to 'notify'
880ac7d
880ac7d
* Thu May 29 2014 Lokesh Mandvekar <lsm5@redhat.com> - 0.11.1-8
880ac7d
- use systemd socket-activation version
880ac7d
880ac7d
* Thu May 29 2014 Lokesh Mandvekar <lsm5@redhat.com> - 0.11.1-7
880ac7d
- add "Provides: docker" as per FPC exception (Matthew Miller
880ac7d
        <mattdm@fedoraproject.org>)
880ac7d
880ac7d
* Thu May 29 2014 Lokesh Mandvekar <lsm5@redhat.com> - 0.11.1-6
880ac7d
- don't use docker.sysconfig meant for sysvinit (just to avoid confusion)
880ac7d
880ac7d
* Thu May 29 2014 Lokesh Mandvekar <lsm5@redhat.com> - 0.11.1-5
880ac7d
- Bug 1084232 - add /etc/sysconfig/docker for additional args
880ac7d
880ac7d
* Tue May 27 2014 Lokesh Mandvekar <lsm5@redhat.com> - 0.11.1-4
880ac7d
- patches for BZ 1088125, 1096375
880ac7d
880ac7d
* Fri May 09 2014 Lokesh Mandvekar <lsm5@redhat.com> - 0.11.1-3
880ac7d
- add selinux buildtag
880ac7d
- enable selinux in unitfile
880ac7d
880ac7d
* Fri May 09 2014 Lokesh Mandvekar <lsm5@redhat.com> - 0.11.1-2
880ac7d
- get rid of conditionals, separate out spec for each branch
880ac7d
880ac7d
* Thu May 08 2014 Lokesh Mandvekar <lsm5@redhat.com> - 0.11.1-1
880ac7d
- Bug 1095616 - upstream bump to 0.11.1
880ac7d
- manpages via pandoc
880ac7d
880ac7d
* Mon Apr 14 2014 Lokesh Mandvekar <lsm5@redhat.com> - 0.10.0-2
880ac7d
- regenerate btrfs removal patch
880ac7d
- update commit value
880ac7d
880ac7d
* Mon Apr 14 2014 Lokesh Mandvekar <lsm5@redhat.com> - 0.10.0-1
880ac7d
- include manpages from contrib
880ac7d
880ac7d
* Wed Apr 09 2014 Bobby Powers <bobbypowers@gmail.com> - 0.10.0-1
880ac7d
- Upstream version bump
880ac7d
880ac7d
* Thu Mar 27 2014 Lokesh Mandvekar <lsm5@redhat.com> - 0.9.1-1
880ac7d
- BZ 1080799 - upstream version bump
880ac7d
880ac7d
* Thu Mar 13 2014 Adam Miller <maxamillion@fedoraproject.org> - 0.9.0-3
880ac7d
- Add lxc requirement for EPEL6 and patch init script to use lxc driver
880ac7d
- Remove tar dep, no longer needed
880ac7d
- Require libcgroup only for EPEL6
880ac7d
880ac7d
* Tue Mar 11 2014 Lokesh Mandvekar <lsm5@redhat.com> - 0.9.0-2
880ac7d
- lxc removed (optional)
880ac7d
  http://blog.docker.io/2014/03/docker-0-9-introducing-execution-drivers-and-libcontainer/
880ac7d
880ac7d
* Tue Mar 11 2014 Lokesh Mandvekar <lsm5@redhat.com> - 0.9.0-1
880ac7d
- BZ 1074880 - upstream version bump to v0.9.0
880ac7d
880ac7d
* Wed Feb 19 2014 Lokesh Mandvekar <lsm5@redhat.com> - 0.8.1-1
880ac7d
- Bug 1066841 - upstream version bump to v0.8.1
880ac7d
- use sysvinit files from upstream contrib
880ac7d
- BR golang >= 1.2-7
880ac7d
880ac7d
* Thu Feb 13 2014 Adam Miller <maxamillion@fedoraproject.org> - 0.8.0-3
880ac7d
- Remove unneeded sysctl settings in initscript
880ac7d
  https://github.com/dotcloud/docker/pull/4125
880ac7d
880ac7d
* Sat Feb 08 2014 Lokesh Mandvekar <lsm5@redhat.com> - 0.8.0-2
880ac7d
- ignore btrfs for rhel7 and clones for now
880ac7d
- include vim syntax highlighting from contrib/syntax/vim
880ac7d
880ac7d
* Wed Feb 05 2014 Lokesh Mandvekar <lsm5@redhat.com> - 0.8.0-1
880ac7d
- upstream version bump
880ac7d
- don't use btrfs for rhel6 and clones (yet)
880ac7d
880ac7d
* Mon Jan 20 2014 Lokesh Mandvekar <lsm5@redhat.com> - 0.7.6-2
880ac7d
- bridge-utils only for rhel < 7
880ac7d
- discard freespace when image is removed
880ac7d
880ac7d
* Thu Jan 16 2014 Lokesh Mandvekar <lsm5@redhat.com> - 0.7.6-1
880ac7d
- upstream version bump v0.7.6
880ac7d
- built with golang >= 1.2
880ac7d
880ac7d
* Thu Jan 09 2014 Lokesh Mandvekar <lsm5@redhat.com> - 0.7.5-1
880ac7d
- upstream version bump to 0.7.5
880ac7d
880ac7d
* Thu Jan 09 2014 Lokesh Mandvekar <lsm5@redhat.com> - 0.7.4-1
880ac7d
- upstream version bump to 0.7.4 (BZ #1049793)
880ac7d
- udev rules file from upstream contrib
880ac7d
- unit file firewalld not used, description changes
880ac7d
880ac7d
* Mon Jan 06 2014 Lokesh Mandvekar <lsm5@redhat.com> - 0.7.3-3
880ac7d
- udev rules typo fixed (BZ 1048775)
880ac7d
880ac7d
* Sat Jan 04 2014 Lokesh Mandvekar <lsm5@redhat.com> - 0.7.3-2
880ac7d
- missed commit value in release 1, updated now
880ac7d
- upstream release monitoring (BZ 1048441)
880ac7d
880ac7d
* Sat Jan 04 2014 Lokesh Mandvekar <lsm5@redhat.com> - 0.7.3-1
880ac7d
- upstream release bump to v0.7.3
880ac7d
880ac7d
* Thu Dec 19 2013 Lokesh Mandvekar <lsm5@redhat.com> - 0.7.2-2
880ac7d
- require xz to work with ubuntu images (BZ #1045220)
880ac7d
880ac7d
* Wed Dec 18 2013 Lokesh Mandvekar <lsm5@redhat.com> - 0.7.2-1
880ac7d
- upstream release bump to v0.7.2
880ac7d
880ac7d
* Fri Dec 06 2013 Vincent Batts <vbatts@redhat.com> - 0.7.1-1
880ac7d
- upstream release of v0.7.1
880ac7d
880ac7d
* Mon Dec 02 2013 Lokesh Mandvekar <lsm5@redhat.com> - 0.7.0-14
880ac7d
- sysvinit patch corrected (epel only)
880ac7d
- 80-docker.rules unified for udisks1 and udisks2
880ac7d
880ac7d
* Mon Dec 02 2013 Lokesh Mandvekar <lsm5@redhat.com> - 0.7.0-13
880ac7d
- removed firewall-cmd --add-masquerade
880ac7d
880ac7d
* Sat Nov 30 2013 Lokesh Mandvekar <lsm5@redhat.com> - 0.7.0-12
880ac7d
- systemd for fedora >= 18
880ac7d
- firewalld in unit file changed from Requires to Wants
880ac7d
- firewall-cmd --add-masquerade after docker daemon start in unit file
880ac7d
  (Michal Fojtik <mfojtik@redhat.com>), continue if not present (Michael Young
880ac7d
  <m.a.young@durham.ac.uk>)
880ac7d
- 80-docker.rules included for epel too, ENV variables need to be changed for
880ac7d
  udisks1
880ac7d
880ac7d
* Fri Nov 29 2013 Marek Goldmann <mgoldman@redhat.com> - 0.7.0-11
880ac7d
- Redirect docker log to /var/log/docker (epel only)
880ac7d
- Removed the '-b none' parameter from sysconfig, it's unnecessary since
880ac7d
  we create the bridge now automatically (epel only)
880ac7d
- Make sure we have the cgconfig service started before we start docker,
880ac7d
    RHBZ#1034919 (epel only)
880ac7d
880ac7d
* Thu Nov 28 2013 Lokesh Mandvekar <lsm5@redhat.com> - 0.7.0-10
880ac7d
- udev rules added for fedora >= 19 BZ 1034095
880ac7d
- epel testing pending
880ac7d
880ac7d
* Thu Nov 28 2013 Lokesh Mandvekar <lsm5@redhat.com> - 0.7.0-9
880ac7d
- requires and started after firewalld
880ac7d
880ac7d
* Thu Nov 28 2013 Lokesh Mandvekar <lsm5@redhat.com> - 0.7.0-8
880ac7d
- iptables-fix patch corrected
880ac7d
880ac7d
* Thu Nov 28 2013 Lokesh Mandvekar <lsm5@redhat.com> - 0.7.0-7
880ac7d
- use upstream tarball and patch with mgoldman's commit
880ac7d
880ac7d
* Thu Nov 28 2013 Lokesh Mandvekar <lsm5@redhat.com> - 0.7.0-6
880ac7d
- using mgoldman's shortcommit value 0ff9bc1 for package (BZ #1033606)
880ac7d
- https://github.com/dotcloud/docker/pull/2907
880ac7d
880ac7d
* Wed Nov 27 2013 Adam Miller <maxamillion@fedoraproject.org> - 0.7.0-5
880ac7d
- Fix up EL6 preun/postun to not fail on postun scripts
880ac7d
880ac7d
* Wed Nov 27 2013 Lokesh Mandvekar <lsm5@redhat.com> - 0.7.0-4
880ac7d
- brctl patch for rhel <= 7
880ac7d
880ac7d
* Wed Nov 27 2013 Vincent Batts <vbatts@redhat.com> - 0.7.0-3
880ac7d
- Patch how the bridge network is set up on RHEL (BZ #1035436)
880ac7d
880ac7d
* Wed Nov 27 2013 Vincent Batts <vbatts@redhat.com> - 0.7.0-2
880ac7d
- add libcgroup require (BZ #1034919)
880ac7d
880ac7d
* Tue Nov 26 2013 Marek Goldmann <mgoldman@redhat.com> - 0.7.0-1
880ac7d
- Upstream release 0.7.0
880ac7d
- Using upstream script to build the binary
880ac7d
880ac7d
* Mon Nov 25 2013 Vincent Batts <vbatts@redhat.com> - 0.7-0.20.rc7
880ac7d
- correct the build time defines (bz#1026545). Thanks dan-fedora.
880ac7d
880ac7d
* Fri Nov 22 2013 Adam Miller <maxamillion@fedoraproject.org> - 0.7-0.19.rc7
880ac7d
- Remove xinetd entry, added sysvinit
880ac7d
880ac7d
* Fri Nov 22 2013 Lokesh Mandvekar <lsm5@redhat.com> - 0.7-0.18.rc7
880ac7d
- rc version bump
880ac7d
880ac7d
* Wed Nov 20 2013 Lokesh Mandvekar <lsm5@redhat.com> - 0.7-0.17.rc6
880ac7d
- removed ExecStartPost lines from docker.service (BZ #1026045)
880ac7d
- dockerinit listed in files
880ac7d
880ac7d
* Wed Nov 20 2013 Vincent Batts <vbatts@redhat.com> - 0.7-0.16.rc6
880ac7d
- adding back the none bridge patch
880ac7d
880ac7d
* Wed Nov 20 2013 Vincent Batts <vbatts@redhat.com> - 0.7-0.15.rc6
880ac7d
- update docker source to crosbymichael/0.7.0-rc6
880ac7d
- bridge-patch is not needed on this branch
880ac7d
880ac7d
* Tue Nov 19 2013 Vincent Batts <vbatts@redhat.com> - 0.7-0.14.rc5
880ac7d
- update docker source to crosbymichael/0.7-rc5
880ac7d
- update docker source to 457375ea370a2da0df301d35b1aaa8f5964dabfe
880ac7d
- static magic
880ac7d
- place dockerinit in a libexec
880ac7d
- add sqlite dependency
880ac7d
880ac7d
* Sat Nov 02 2013 Lokesh Mandvekar <lsm5@redhat.com> - 0.7-0.13.dm
880ac7d
- docker.service file sets iptables rules to allow container networking, this
880ac7d
    is a stopgap approach, relevant pull request here:
880ac7d
    https://github.com/dotcloud/docker/pull/2527
880ac7d
880ac7d
* Sat Oct 26 2013 Lokesh Mandvekar <lsm5@redhat.com> - 0.7-0.12.dm
880ac7d
- dm branch
880ac7d
- dockerinit -> docker-init
880ac7d
880ac7d
* Tue Oct 22 2013 Lokesh Mandvekar <lsm5@redhat.com> - 0.7-0.11.rc4
880ac7d
- passing version information for docker build BZ #1017186
880ac7d
880ac7d
* Sat Oct 19 2013 Lokesh Mandvekar <lsm5@redhat.com> - 0.7-0.10.rc4
880ac7d
- rc version bump
880ac7d
- docker-init -> dockerinit
880ac7d
- zsh completion script installed to /usr/share/zsh/site-functions
880ac7d
880ac7d
* Fri Oct 18 2013 Lokesh Mandvekar <lsm5@redhat.com> - 0.7-0.9.rc3
880ac7d
- lxc-docker version matches package version
880ac7d
880ac7d
* Fri Oct 18 2013 Lokesh Mandvekar <lsm5@redhat.com> - 0.7-0.8.rc3
880ac7d
- double quotes removed from buildrequires as per existing golang rules
880ac7d
880ac7d
* Fri Oct 11 2013 Lokesh Mandvekar <lsm5@redhat.com> - 0.7-0.7.rc3
880ac7d
- xinetd file renamed to docker.xinetd for clarity
880ac7d
880ac7d
* Thu Oct 10 2013 Lokesh Mandvekar <lsm5@redhat.com> - 0.7-0.6.rc3
880ac7d
- patched for el6 to use sphinx-1.0-build
880ac7d
880ac7d
* Wed Oct 09 2013 Lokesh Mandvekar <lsm5@redhat.com> - 0.7-0.5.rc3
880ac7d
- rc3 version bump
880ac7d
- exclusivearch x86_64
880ac7d
880ac7d
* Wed Oct 09 2013 Lokesh Mandvekar <lsm5@redhat.com> - 0.7-0.4.rc2
880ac7d
- debuginfo not Go-ready yet, skipped
880ac7d
880ac7d
* Wed Oct 09 2013 Lokesh Mandvekar <lsm5@redhat.com> - 0.7-0.3.rc2
880ac7d
- debuginfo package generated
880ac7d
- buildrequires listed with versions where needed
880ac7d
- conditionals changed to reflect systemd or not
880ac7d
- docker commit value not needed
880ac7d
- versioned provides lxc-docker
880ac7d
880ac7d
* Mon Oct 07 2013 Lokesh Mandvekar <lsm5@redhat.com> - 0.7-2.rc2
880ac7d
- rc branch includes devmapper
880ac7d
- el6 BZ #1015865 fix included
880ac7d
880ac7d
* Sun Oct 06 2013 Lokesh Mandvekar <lsm5@redhat.com> - 0.7-1
880ac7d
- version bump, includes devicemapper
880ac7d
- epel conditionals included
880ac7d
- buildrequires sqlite-devel
880ac7d
880ac7d
* Fri Oct 04 2013 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.6.3-4.devicemapper
880ac7d
- docker-io service enables IPv4 and IPv6 forwarding
880ac7d
- docker user not needed
880ac7d
- golang not supported on ppc64, docker-io excluded too
880ac7d
880ac7d
* Thu Oct 03 2013 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0.6.3-3.devicemapper
880ac7d
- Docker rebuilt with latest kr/pty, first run issue solved
880ac7d
880ac7d
* Fri Sep 27 2013 Marek Goldmann <mgoldman@redhat.com> - 0.6.3-2.devicemapper
880ac7d
- Remove setfcap from lxc.cap.drop to make setxattr() calls working in the
880ac7d
  containers, RHBZ#1012952
880ac7d
880ac7d
* Thu Sep 26 2013 Lokesh Mandvekar <lsm5@redhat.com> 0.6.3-1.devicemapper
880ac7d
- version bump
880ac7d
- new version solves docker push issues
880ac7d
880ac7d
* Tue Sep 24 2013 Lokesh Mandvekar <lsm5@redhat.com> 0.6.2-14.devicemapper
880ac7d
- package requires lxc
880ac7d
880ac7d
* Tue Sep 24 2013 Lokesh Mandvekar <lsm5@redhat.com> 0.6.2-13.devicemapper
880ac7d
- package requires tar
880ac7d
880ac7d
* Tue Sep 24 2013 Lokesh Mandvekar <lsm5@redhat.com> 0.6.2-12.devicemapper
880ac7d
- /var/lib/docker installed
880ac7d
- package also provides lxc-docker
880ac7d
880ac7d
* Mon Sep 23 2013 Lokesh Mandvekar <lsm5@redhat.com> 0.6.2-11.devicemapper
880ac7d
- better looking url
880ac7d
880ac7d
* Mon Sep 23 2013 Lokesh Mandvekar <lsm5@redhat.com> 0.6.2-10.devicemapper
880ac7d
- release tag changed to denote devicemapper patch
880ac7d
880ac7d
* Mon Sep 23 2013 Lokesh Mandvekar <lsm5@redhat.com> 0.6.2-9
880ac7d
- device-mapper-devel is a buildrequires for alex's code
880ac7d
- docker.service listed as a separate source file
880ac7d
880ac7d
* Sun Sep 22 2013 Matthew Miller <mattdm@fedoraproject.org> 0.6.2-8
880ac7d
- install bash completion
880ac7d
- use -v for go build to show progress
880ac7d
880ac7d
* Sun Sep 22 2013 Matthew Miller <mattdm@fedoraproject.org> 0.6.2-7
880ac7d
- build and install separate docker-init
880ac7d
880ac7d
* Sun Sep 22 2013 Matthew Miller <mattdm@fedoraproject.org> 0.6.2-4
880ac7d
- update to use new source-only golang lib packages
880ac7d
880ac7d
* Sat Sep 21 2013 Lokesh Mandvekar <lsm5@redhat.com> 0.6.2-3
880ac7d
- man page generation from docs/.
880ac7d
- systemd service file created
880ac7d
- dotcloud/tar no longer required
880ac7d
880ac7d
* Fri Sep 20 2013 Lokesh Mandvekar <lsm5@redhat.com> 0.6.2-2
880ac7d
- patched with alex larsson's devmapper code
880ac7d
880ac7d
* Wed Sep 18 2013 Lokesh Mandvekar <lsm5@redhat.com> 0.6.2-1
880ac7d
- Version bump
880ac7d
880ac7d
* Tue Sep 10 2013 Lokesh Mandvekar <lsm5@redhat.com> 0.6.1-2
880ac7d
- buildrequires updated
880ac7d
- package renamed to docker-io
880ac7d
880ac7d
* Fri Aug 30 2013 Lokesh Mandvekar <lsm5@redhat.com> 0.6.1-1
880ac7d
- Version bump
880ac7d
- Package name change from lxc-docker to docker
880ac7d
- Makefile patched from 0.5.3
880ac7d
880ac7d
* Wed Aug 28 2013 Lokesh Mandvekar <lsm5@redhat.com> 0.5.3-5
880ac7d
- File permissions settings included
880ac7d
880ac7d
* Wed Aug 28 2013 Lokesh Mandvekar <lsm5@redhat.com> 0.5.3-4
880ac7d
- Credits in changelog modified as per reference's request
880ac7d
880ac7d
* Tue Aug 27 2013 Lokesh Mandvekar <lsm5@redhat.com> 0.5.3-3
880ac7d
- Dependencies listed as rpm packages instead of tars
880ac7d
- Install section added
880ac7d
880ac7d
* Mon Aug 26 2013 Lokesh Mandvekar <lsm5@redhat.com> 0.5.3-2
880ac7d
- Github packaging
880ac7d
- Deps not downloaded at build time courtesy Elan Ruusamäe
880ac7d
- Manpage and other docs installed
880ac7d
880ac7d
* Fri Aug 23 2013 Lokesh Mandvekar <lsm5@redhat.com> 0.5.3-1
880ac7d
- Initial fedora package
880ac7d
- Some credit to Elan Ruusamäe (glen@pld-linux.org)