Lokesh Mandvekar a8ae05
%global debug_package %{nil}
Lokesh Mandvekar 449430
%if 0%{?fedora} <= 22 || (0%{?rhel} != 0 && 0%{?rhel} <= 7)
Colin Walters 0193ff
%global pypkg python
Colin Walters 0193ff
%global pysitelib %{python_sitelib}
Colin Walters 0193ff
%global __python %{__python2}
Lokesh Mandvekar 449430
%global pylint pylint
Colin Walters 0193ff
%else
Colin Walters 0193ff
%global pypkg python3
Colin Walters 0193ff
%global pysitelib %{python3_sitelib}
Miro Hrončok 99344b
%global __python %{__python3}
Colin Walters 0193ff
%global pylint python3-pylint
Colin Walters 0193ff
%endif
Lokesh Mandvekar a8ae05
Lokesh Mandvekar 449430
%global commit 5f631c850c9d48957dda84da5bf2459568b60660
Lokesh Mandvekar a8ae05
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Lokesh Mandvekar a8ae05
Lokesh Mandvekar 449430
Name: atomic
Lokesh Mandvekar 449430
Version: 1.1
Lokesh Mandvekar 449430
Release: 1.git%{shortcommit}%{?dist}
Lokesh Mandvekar 449430
Summary: Tool for managing ProjectAtomic systems and containers
Lokesh Mandvekar 449430
License: LGPLv2+
Lokesh Mandvekar 449430
URL: https://github.com/projectatomic/atomic
Lokesh Mandvekar 449430
ExclusiveArch: x86_64
Lokesh Mandvekar 449430
Source0: https://github.com/projectatomic/%{name}/archive/%{commit}.tar.gz
Miro Hrončok 99344b
Lokesh Mandvekar 449430
BuildRequires: %{pypkg}-devel
Colin Walters 0193ff
%if 0%{?rhel} != 0 && 0%{?rhel} <= 7
Colin Walters 0193ff
%else
Lokesh Mandvekar 449430
BuildRequires: %{pylint}
Colin Walters 0193ff
%endif
Lokesh Mandvekar 449430
BuildRequires: %{pypkg}-requests
Lokesh Mandvekar 449430
BuildRequires: %{pypkg}-setuptools
Lokesh Mandvekar 449430
BuildRequires: %{pypkg}-tools
Lokesh Mandvekar 449430
BuildRequires: policycoreutils-%{pypkg}
Lokesh Mandvekar 449430
BuildRequires: go-md2man
Colin Walters 0193ff
%if 0%{?rhel} != 0 && 0%{?rhel} <= 7
Colin Walters 0193ff
BuildRequires: docker-python
Colin Walters 0193ff
%else
Lokesh Mandvekar 449430
BuildRequires: %{pypkg}-docker-py
Colin Walters 0193ff
%endif
Miro Hrončok 99344b
Lokesh Mandvekar 449430
Requires: dbus
Lokesh Mandvekar 449430
Requires: docker
Lokesh Mandvekar 449430
Requires: polkit
Lokesh Mandvekar 449430
Requires: setup
Lokesh Mandvekar 449430
Requires: %{pypkg}-requests
Lokesh Mandvekar 449430
Requires: %{pypkg}-docker-py
Lokesh Mandvekar 449430
Requires: %{pypkg}-websocket-client >= 0.11.0
Lokesh Mandvekar 449430
Requires: %{pypkg}-six >= 1.3.0
Miro Hrončok 99344b
Lokesh Mandvekar a8ae05
Lokesh Mandvekar a8ae05
%description
Lokesh Mandvekar a8ae05
The goal of Atomic is to provide a high level, coherent entrypoint to the
Lokesh Mandvekar a8ae05
system, and fill in gaps.
Lokesh Mandvekar a8ae05
Lokesh Mandvekar a8ae05
For Docker, atomic can make it easier to interact with special kinds of
Lokesh Mandvekar a8ae05
containers, such as super-privileged debugging tools and the like.
Lokesh Mandvekar a8ae05
Lokesh Mandvekar a8ae05
The atomic host subcommand wraps rpm-ostree, currently just providing a
Lokesh Mandvekar a8ae05
friendlier name, but in the future Atomic may provide more unified
Lokesh Mandvekar a8ae05
management.
Lokesh Mandvekar a8ae05
Lokesh Mandvekar a8ae05
%prep
Lokesh Mandvekar a8ae05
%setup -qn %{name}-%{commit}
Lokesh Mandvekar a8ae05
Lokesh Mandvekar a8ae05
%build
Lokesh Mandvekar 449430
make PYTHON=%{__python} PYLINT=%{pylint} all
Lokesh Mandvekar a8ae05
Lokesh Mandvekar a8ae05
%install
Lokesh Mandvekar 449430
make PYTHON=%{__python} PYLINT=%{pylint} install DESTDIR=%{buildroot}
Lokesh Mandvekar a8ae05
Lokesh Mandvekar a8ae05
%check
Colin Walters 0193ff
[ ! -w /run/docker.sock ] || make PYTHON=%{__python} test
Lokesh Mandvekar a8ae05
Lokesh Mandvekar a8ae05
%files
Lokesh Mandvekar a8ae05
%doc COPYING README.md
Lokesh Mandvekar a8ae05
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
Miro Hrončok 99344b
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.%{name}.conf
Colin Walters 0193ff
%{pysitelib}/Atomic
Colin Walters 0193ff
%{pysitelib}/%{name}*.egg-info
Lokesh Mandvekar a8ae05
%{_sysconfdir}/profile.d/%{name}.sh
Lokesh Mandvekar a8ae05
%{_bindir}/%{name}
Miro Hrončok 99344b
%{_datadir}/%{name}
Lokesh Mandvekar e979be
%{_datadir}/bash-completion/completions/%{name}
Miro Hrončok 99344b
%{_datadir}/dbus-1/system-services/org.%{name}.service
Miro Hrončok 99344b
%{_datadir}/polkit-1/actions/org.%{name}.policy
Lokesh Mandvekar a8ae05
%{_mandir}/man1/%{name}*
Lokesh Mandvekar a8ae05
Miro Hrončok 99344b
Lokesh Mandvekar a8ae05
%changelog
Lokesh Mandvekar 449430
* Mon Aug 03 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.1-1.git5f631c8
Lokesh Mandvekar 449430
- bump to 1.1
Lokesh Mandvekar 449430
- buildrequires policycoreutils-python(3)
Lokesh Mandvekar 449430
Lokesh Mandvekar 519fc9
* Fri Jul 24 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.0-1.git52d695c
Lokesh Mandvekar 519fc9
- version 1.0 as per setup.py
Lokesh Mandvekar 519fc9
- use latest upstream master commit
Lokesh Mandvekar 519fc9
- run test only if docker.sock writable
Lokesh Mandvekar 519fc9
Miro Hrončok 99344b
* Tue Jul 14 2015 Miro Hrončok <mhroncok@redhat.com> - 0-0.12.gitfea1b99
Miro Hrončok 99344b
- update to latest upstream master
Miro Hrončok 99344b
- add new %%files and require dbus, polkit and setup to have the directories
Miro Hrončok 99344b
- switch to Python 3
Miro Hrončok 850fc3
- disable build for arm (missing docker)
Miro Hrončok 99344b
- Resolves: rhbz#1241947
Miro Hrončok 99344b
Dennis Gilmore 6652d4
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.11.gite5734c4
Dennis Gilmore 6652d4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
Dennis Gilmore 6652d4
Lokesh Mandvekar e979be
* Wed Apr 15 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0-0.10.gite5734c4
Lokesh Mandvekar e979be
- update to latest upstream master
Lokesh Mandvekar e979be
Colin Walters 570215
* Tue Mar 03 2015 Colin Walters <walters@redhat.com> - 0-0.9.gita7ff4cb
Colin Walters 570215
- Match ExclusiveArch with docker (there is no docker on i686)
Colin Walters 570215
Colin Walters ad8421
* Mon Mar 02 2015 Colin Walters <walters@redhat.com> - 0-0.8.gita7ff4cb
Colin Walters ad8421
- Drop ExclusiveArch, we are just a wrapper for Docker, which in any
Colin Walters ad8421
  case builds on other architectures now.
Colin Walters ad8421
Lokesh Mandvekar 4db7d4
* Tue Feb 24 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0-0.7.gita7ff4cb
Lokesh Mandvekar 4db7d4
- remove pylint for rhel/centos
Lokesh Mandvekar 4db7d4
Lokesh Mandvekar 3ea434
* Tue Feb 24 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0-0.6.gita7ff4cb
Lokesh Mandvekar 3ea434
- runtime requirement: python-docker-py
Lokesh Mandvekar 3ea434
Lokesh Mandvekar a8ae05
* Tue Feb 24 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0-0.5.gita7ff4cb
Lokesh Mandvekar a8ae05
- build commit#a7ff4cb
Lokesh Mandvekar a8ae05
Lokesh Mandvekar a8ae05
* Fri Feb 20 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0-0.4.gitf7f6fa8
Lokesh Mandvekar a8ae05
- Resolves: rhbz#1194058 - approved version, ready for upload
Lokesh Mandvekar a8ae05
- change license to LGPLv2+
Lokesh Mandvekar a8ae05
Lokesh Mandvekar a8ae05
* Thu Feb 19 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0-0.3.gite4081c9
Lokesh Mandvekar a8ae05
- manpage installation rules upstreamed
Lokesh Mandvekar a8ae05
Lokesh Mandvekar a8ae05
* Wed Feb 18 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0-0.2.git6b82cb7
Lokesh Mandvekar a8ae05
- install docs
Lokesh Mandvekar a8ae05
Lokesh Mandvekar a8ae05
* Wed Feb 18 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0-0.1.git6b82cb7
Lokesh Mandvekar a8ae05
- Initial package