|
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}
|
|
Lokesh Mandvekar |
450ea6 |
%global __python %{__python}
|
|
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 |
%endif
|
|
Lokesh Mandvekar |
a8ae05 |
|
|
Lokesh Mandvekar |
09eff8 |
%global commit cc5997a87f438940d2713b3fad748eb952b1775a
|
|
Lokesh Mandvekar |
a8ae05 |
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
Lokesh Mandvekar |
a8ae05 |
|
|
Lokesh Mandvekar |
449430 |
Name: atomic
|
|
Lokesh Mandvekar |
dc0a0a |
Version: 1.8
|
|
Lokesh Mandvekar |
09eff8 |
Release: 2.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 |
d19864 |
ExclusiveArch: %{go_arches}
|
|
Lokesh Mandvekar |
449430 |
Source0: https://github.com/projectatomic/%{name}/archive/%{commit}.tar.gz
|
|
Miro Hrončok |
99344b |
|
|
Lokesh Mandvekar |
449430 |
BuildRequires: %{pypkg}-devel
|
|
Lokesh Mandvekar |
4263ea |
BuildRequires: %{pypkg}-requests >= 2.4.3
|
|
Lokesh Mandvekar |
449430 |
BuildRequires: %{pypkg}-setuptools
|
|
Lokesh Mandvekar |
449430 |
BuildRequires: %{pypkg}-tools
|
|
Lokesh Mandvekar |
449430 |
BuildRequires: policycoreutils-%{pypkg}
|
|
Lokesh Mandvekar |
449430 |
BuildRequires: go-md2man
|
|
Lokesh Mandvekar |
d19864 |
BuildRequires: go-srpm-macros
|
|
Lokesh Mandvekar |
b81fd3 |
BuildRequires: %{pypkg}-dbus
|
|
Lokesh Mandvekar |
449430 |
BuildRequires: %{pypkg}-docker-py
|
|
Colin Walters |
1cfff3 |
BuildRequires: rpm-python
|
|
Miro Hrončok |
99344b |
|
|
Lokesh Mandvekar |
449430 |
Requires: dbus
|
|
Lokesh Mandvekar |
449430 |
Requires: docker
|
|
Lokesh Mandvekar |
449430 |
Requires: polkit
|
|
Lokesh Mandvekar |
449430 |
Requires: setup
|
|
Colin Walters |
1cfff3 |
Requires: rpm-python
|
|
Colin Walters |
ce6fdb |
# https://github.com/projectatomic/atomic/pull/180
|
|
Colin Walters |
ce6fdb |
Requires: %{pypkg}-setuptools
|
|
Lokesh Mandvekar |
4263ea |
Requires: %{pypkg}-requests >= 2.4.3
|
|
Lokesh Mandvekar |
a5a7ad |
Requires: %{pypkg}-dbus
|
|
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 |
7e780f |
if [ %{pypkg} == 'python3' ]; then
|
|
Lokesh Mandvekar |
7e780f |
sed -i 's/input = raw_input/pass/' Atomic/util.py
|
|
Lokesh Mandvekar |
7e780f |
fi
|
|
Lokesh Mandvekar |
a8ae05 |
|
|
Lokesh Mandvekar |
a8ae05 |
%build
|
|
Robert Kuska |
34eb6b |
make PYTHON=%{__python} python-build
|
|
Robert Kuska |
34eb6b |
make PYTHON=%{__python} docs
|
|
Lokesh Mandvekar |
a8ae05 |
|
|
Lokesh Mandvekar |
a8ae05 |
%install
|
|
Robert Kuska |
34eb6b |
make PYTHON=%{__python} install-only DESTDIR=%{buildroot}
|
|
Lokesh Mandvekar |
a8ae05 |
|
|
Colin Walters |
a72fc0 |
# Better support for doing continuous delivery by supporting optional
|
|
Colin Walters |
a72fc0 |
# components. The canonical copy of this is in `rpm-ostree.spec`.
|
|
Colin Walters |
a72fc0 |
cat > autofiles.py <
|
|
Lokesh Mandvekar |
450ea6 |
#!%{pypkg}
|
|
Colin Walters |
a72fc0 |
import os,sys,glob
|
|
Colin Walters |
a72fc0 |
os.chdir(os.environ['RPM_BUILD_ROOT'])
|
|
Colin Walters |
a72fc0 |
for line in sys.argv[1:]:
|
|
Colin Walters |
a72fc0 |
if line == '':
|
|
Colin Walters |
a72fc0 |
break
|
|
Colin Walters |
a72fc0 |
assert line[0] == '/'
|
|
Colin Walters |
a72fc0 |
files = glob.glob(line[1:])
|
|
Colin Walters |
a72fc0 |
if len(files) > 0:
|
|
Colin Walters |
a72fc0 |
sys.stderr.write('{0} matched {1} files\n'.format(line, len(files)))
|
|
Colin Walters |
a72fc0 |
sys.stdout.write(line + '\n')
|
|
Colin Walters |
a72fc0 |
else:
|
|
Colin Walters |
a72fc0 |
sys.stderr.write('{0} did not match any files\n'.format(line))
|
|
Colin Walters |
a72fc0 |
EOF
|
|
Lokesh Mandvekar |
450ea6 |
%{pypkg} autofiles.py > files \
|
|
Colin Walters |
a72fc0 |
'%{pysitelib}/Atomic' \
|
|
Colin Walters |
a72fc0 |
'%{pysitelib}/%{name}*.egg-info' \
|
|
Colin Walters |
a72fc0 |
'%{_sysconfdir}/profile.d/%{name}.sh' \
|
|
Colin Walters |
a72fc0 |
'%{_bindir}/%{name}' \
|
|
Colin Walters |
a72fc0 |
'%{_datadir}/%{name}' \
|
|
Colin Walters |
a72fc0 |
'%{_libexecdir}/%{name}/' \
|
|
Colin Walters |
a72fc0 |
'%{_datadir}/bash-completion/completions/%{name}' \
|
|
Colin Walters |
a72fc0 |
'%{_datadir}/dbus-1/system-services/org.%{name}.service' \
|
|
Colin Walters |
a72fc0 |
'%{_datadir}/polkit-1/actions/org.%{name}.policy' \
|
|
Colin Walters |
a72fc0 |
'%{_mandir}/man1/%{name}*'
|
|
Colin Walters |
a72fc0 |
|
|
Lokesh Mandvekar |
a8ae05 |
%check
|
|
Colin Walters |
0193ff |
[ ! -w /run/docker.sock ] || make PYTHON=%{__python} test
|
|
Lokesh Mandvekar |
a8ae05 |
|
|
Colin Walters |
a72fc0 |
%files -f 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
|
|
Miro Hrončok |
99344b |
|
|
Lokesh Mandvekar |
a8ae05 |
%changelog
|
|
Lokesh Mandvekar |
09eff8 |
* Mon Jan 04 2016 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.8-2.gitcc5997a
|
|
Lokesh Mandvekar |
09eff8 |
- built atomic commit#cc5997a
|
|
Lokesh Mandvekar |
09eff8 |
|
|
Lokesh Mandvekar |
681daf |
* Mon Nov 30 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.7-3.git3be76b5
|
|
Lokesh Mandvekar |
681daf |
- built atomic commit#3be76b5
|
|
Lokesh Mandvekar |
681daf |
|
|
Lokesh Mandvekar |
a5a7ad |
* Mon Nov 23 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.7-2.gitd378de0
|
|
Lokesh Mandvekar |
a5a7ad |
- built atomic commit#d378de0
|
|
Lokesh Mandvekar |
a5a7ad |
|
|
Lokesh Mandvekar |
8bc9bd |
* Wed Nov 11 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.6-2.git09ac479
|
|
Lokesh Mandvekar |
8bc9bd |
- built atomic commit#09ac479
|
|
Lokesh Mandvekar |
8bc9bd |
|
|
Lokesh Mandvekar |
4263ea |
* Mon Sep 14 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.4-1.git9d724aa
|
|
Lokesh Mandvekar |
4263ea |
- built master commit#9d724aa
|
|
Lokesh Mandvekar |
4263ea |
- scan subcommand added
|
|
Lokesh Mandvekar |
4263ea |
- br: python-requests >= 2.4.3
|
|
Lokesh Mandvekar |
4263ea |
|
|
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 |
cb24d5 |
* Fri Jul 24 2015 Lokesh Mandvekar <lsm5@fedoraproject.org> - 1.0-2.git52d695c
|
|
Lokesh Mandvekar |
cb24d5 |
- Resolves: rhbz#1246640 - update to 1.0
|
|
Lokesh Mandvekar |
cb24d5 |
- don't use python3 for f22
|
|
Lokesh Mandvekar |
cb24d5 |
- spec file for f22 now diverts from master
|
|
Lokesh Mandvekar |
cb24d5 |
|
|
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
|