e10583c
%global debug_package %{nil}
e10583c
e10583c
Name:           docker-compose
61f9ca3
Version:        1.7.1
4da3e6c
Release:        1%{?dist}
b5e4716
Summary:        Multi-container orchestration for Docker
e10583c
e10583c
License:        ASL 2.0
e10583c
URL:            https://www.docker.com/
61f9ca3
Source0:        https://files.pythonhosted.org/packages/source/d/%{name}/%{name}-%{version}.tar.gz
e10583c
e10583c
# Remove dependency version constraints not relevant in Fedora/EPEL
e10583c
Patch0:         remove-requires-upper-bound.patch
e10583c
e10583c
# docker-compose is compatible with fig and is a simple rename.
e10583c
# Currently it only prints deprecation warnings for changed functionality.
e10583c
Provides:       fig = %{version}-%{release}
e10583c
# Last fig EVR was 1.0.1-2
e10583c
Obsoletes:      fig <= 1.0.1-3
e10583c
e10583c
BuildRequires:  python2-devel
e10583c
BuildRequires:  python-setuptools 
e10583c
BuildRequires:  python-docker-py
e10583c
BuildRequires:  python-websocket-client
e10583c
BuildRequires:  python-texttable
e10583c
BuildRequires:  python-requests
e10583c
BuildRequires:  PyYAML
e10583c
BuildRequires:  python-docopt
e10583c
e10583c
Requires:       python-setuptools
61f9ca3
# Version required due to upstream requirement; see BZ#1321200
61f9ca3
Requires:       python-docker-py >= 1.8.0-1
c264205
# Version required due to upstream requirement; see BZ#1300106
c264205
Requires:       python-dockerpty >= 0.4.1-1
e10583c
Requires:       python-texttable
e10583c
Requires:       python-docopt
e10583c
Requires:       python-requests
e10583c
Requires:       python-websocket-client
e10583c
Requires:       python-six
cee0785
Requires:       python-jsonschema
a58a183
Requires:       python-enum34
e10583c
Requires:       PyYAML
31ebdc4
Requires:       python-cached_property
e10583c
e10583c
BuildArch:      noarch
e10583c
e10583c
%description
61f9ca3
Compose is a tool for defining and running multi-container Docker
61f9ca3
applications. With Compose, you use a Compose file to configure your
61f9ca3
application’s services. Then, using a single command, you create and
61f9ca3
start all the services from your configuration.
61f9ca3
61f9ca3
Compose is great for development, testing, and staging environments,
61f9ca3
as well as CI workflows.
e10583c
61f9ca3
Using Compose is basically a three-step process.
61f9ca3
61f9ca3
1. Define your app’s environment with a Dockerfile so it can be
61f9ca3
   reproduced anywhere.
61f9ca3
2. Define the services that make up your app in docker-compose.yml so
61f9ca3
   they can be run together in an isolated environment:
61f9ca3
3. Lastly, run docker-compose up and Compose will start and run your
61f9ca3
   entire app.
e10583c
e10583c
%prep
e10583c
%setup -q 
e10583c
e10583c
%patch0 -p1
e10583c
e10583c
# Upstream uses an underscore here
e10583c
rm -r docker_compose.egg-info
e10583c
e10583c
%build
e10583c
%{__python2} setup.py build
e10583c
e10583c
%install
e10583c
%{__python2} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
e10583c
e10583c
%files
21d12d4
%doc CHANGES.md CONTRIBUTING.md README.rst SWARM.md
e10583c
%license LICENSE
e10583c
%{_bindir}/%{name}
e10583c
# Upstream uses an underscore here
e10583c
%{python2_sitelib}/docker_compose*
e10583c
%{python2_sitelib}/compose*
e10583c
e10583c
%changelog
61f9ca3
* Thu May 05 2016 Michael Hampton <error@ioerror.us> - 1.7.1-1
61f9ca3
- Update to upstream 1.7.1
61f9ca3
- Updated package description from upstream
61f9ca3
97b63a1
* Thu Apr 14 2016 Michael Hampton <error@ioerror.us> - 1.7.0-1
97b63a1
- Update to upstream 1.7.0
97b63a1
4da3e6c
* Fri Feb 05 2016 Michael Hampton <error@ioerror.us> - 1.6.0-1
4da3e6c
- Update to upstream 1.6.0
4da3e6c
16df5c4
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-5
16df5c4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
16df5c4
a58a183
* Tue Jan 12 2016 Michael Hampton <error@ioerror.us> - 1.5.2-4
a58a183
- Added missing dependency python-enum34
a58a183
cee0785
* Mon Jan 11 2016 Michael Hampton <error@ioerror.us> - 1.5.2-3
cee0785
- Added missing dependency python-jsonschema
cee0785
21d12d4
* Wed Dec 30 2015 Michael Hampton <error@ioerror.us> - 1.5.2-2
21d12d4
- Updated locations of docs
21d12d4
a09b761
* Wed Dec 30 2015 Michael Hampton <error@ioerror.us> - 1.5.2-1
a09b761
- Update to upstream 1.5.2
a09b761
4df82fe
* Wed Sep 23 2015 Michael Hampton <error@ioerror.us> - 1.4.2-1
4df82fe
- Fixes a regression in the 1.4.1 release that would cause
4df82fe
  docker-compose up without the -d option to exit immediately.
4df82fe
26cc25a
* Wed Sep 16 2015 Michael Hampton <error@ioerror.us> - 1.4.1-1
26cc25a
- Update to upstream 1.4.1
26cc25a
b5e4716
* Wed Aug 12 2015 Michael Hampton <error@ioerror.us> - 1.4.0-1
b5e4716
- Update to upstream 1.4.0
b5e4716
- Update Summary to match upstream summary
b5e4716
e10583c
* Sat May 16 2015 Michael Hampton <error@ioerror.us> - 1.2.0-3
e10583c
- Update Obsoletes EVR per packaging guidelines BZ#1213111
e10583c
e10583c
* Sun Apr 19 2015 Michael Hampton <error@ioerror.us> - 1.2.0-2
e10583c
- Update location of LICENSE file
e10583c
e10583c
* Sat Apr 18 2015 Michael Hampton <error@ioerror.us> - 1.2.0-1
e10583c
- Update to 1.2.0
e10583c
- Added new doc SWARM.md
e10583c
- Removed docker package requires as it is not required to build or run the
e10583c
  package, only to run tests, which we can't do anyway
e10583c
- Removed commented code relating to running tests, which we can't do anyway
e10583c
- Made package noarch as docker-io is no longer required
e10583c
e10583c
* Mon Mar 23 2015 Michael Hampton <error@ioerror.us> - 1.1.0-1
e10583c
- Update to 1.1.0 including upstream name change
e10583c
- Requires python-dockerpty
e10583c
- Requires python-docker-py >= 0.7.1-3 BZ#1197300
e10583c
e10583c
* Tue Mar 17 2015 Matej Stuchlik <mstuchli@redhat.com> - 1.0.1-2
e10583c
- Completely remove version specs from setup.py
e10583c
e10583c
* Tue Mar 17 2015 Matej Stuchlik <mstuchli@redhat.com> - 1.0.1-1
e10583c
- Update to 1.0.1
e10583c
e10583c
* Wed Dec 03 2014 Matej Stuchlik <mstuchli@redhat.com> - 1.0.0-5
e10583c
- Remove upper bound from setup.py requires
e10583c
e10583c
* Wed Nov 12 2014 Matej Stuchlik <mstuchli@redhat.com> - 1.0.0-4
e10583c
- Add python-setuptools to requires
e10583c
e10583c
* Thu Oct 23 2014 Matej Stuchlik <mstuchli@redhat.com> - 1.0.0-3
e10583c
- Relax strict version requirements on websocket-client (#1155510)
e10583c
e10583c
* Tue Oct 21 2014 Matej Stuchlik <mstuchli@redhat.com> - 1.0.0-2
e10583c
- Update Requires
e10583c
e10583c
* Tue Oct 21 2014 Matej Stuchlik <mstuchli@redhat.com> - 1.0.0-1
e10583c
- Update to 1.0.0
e10583c
- Droped the two patches
e10583c
e10583c
* Tue Oct 21 2014 Matej Stuchlik <mstuchli@redhat.com> - 0.5.2-2
e10583c
- Explicitly disable debuginfo subpackage (#1154780)
e10583c
- Add python-docker-py to Requires (#1154874)
e10583c
e10583c
* Thu Oct 09 2014 Matej Stuchlik <mstuchli@redhat.com> - 0.5.2-1
e10583c
- Initial spec based on rhbz#1129889