From 22531c06a178b71b05346cfec951676d5019bca8 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Aug 14 2019 08:19:55 +0000 Subject: import atomic-1.22.1-28.gitb507039.el7 --- diff --git a/.atomic.metadata b/.atomic.metadata index 83c6302..5ed9b33 100644 --- a/.atomic.metadata +++ b/.atomic.metadata @@ -1,2 +1 @@ -97b007112bfb748705ebb36ada43f47de3058b57 SOURCES/b507039153d03343d501a221270e7e8896cc3ece.tar.gz 18f4c85a1892ab4b6f8c06e6b5e633475bef093d SOURCES/da9a9c87781823f45401ca49da04e269c9e3100e.tar.gz diff --git a/.gitignore b/.gitignore index 25aeace..2e6e43f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ -SOURCES/b507039153d03343d501a221270e7e8896cc3ece.tar.gz SOURCES/da9a9c87781823f45401ca49da04e269c9e3100e.tar.gz diff --git a/SPECS/atomic.spec b/SPECS/atomic.spec index f8eb893..3ce74bf 100644 --- a/SPECS/atomic.spec +++ b/SPECS/atomic.spec @@ -1,18 +1,8 @@ %global debug_package %{nil} -%if 0%{?fedora} <= 22 || (0%{?rhel} != 0 && 0%{?rhel} <= 7) %global pypkg python -%global pysitelib %{python_sitelib} +%global pysitelib %{python2_sitelib} %global __python %{__python2} -%if 0%{?fedora} -%global pylint pylint -%endif -%else -%global pypkg python3 -%global pysitelib %{python3_sitelib} -%global __python %{__python3} -%global pylint python3-pylint -%endif %global commit0 b507039153d03343d501a221270e7e8896cc3ece %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) @@ -25,62 +15,12 @@ Name: atomic Epoch: 1 Version: 1.22.1 -Release: 26.git%{shortcommit0}%{?dist} +Release: 28.git%{shortcommit0}%{?dist} Summary: Tool for managing ProjectAtomic systems and containers License: LGPLv2+ URL: https://github.com/projectatomic/%{name} -Source0: https://github.com/projectatomic/%{name}/archive/%{commit0}.tar.gz -Source1: https://github.com/projectatomic/registries/archive/%{commit_atomic_registries}.tar.gz +Source0: https://github.com/projectatomic/registries/archive/%{commit_atomic_registries}.tar.gz ExclusiveArch: aarch64 %{arm} ppc64le s390x x86_64 -BuildRequires: %{pypkg}-dateutil -BuildRequires: %{pypkg}-devel -BuildRequires: %{pypkg}-requests >= 2.4.3 -BuildRequires: %{pypkg}-setuptools -BuildRequires: %{pypkg}-tools -BuildRequires: %{pypkg}-dbus -BuildRequires: %{pypkg}-setuptools -BuildRequires: policycoreutils-%{pypkg} -BuildRequires: git -BuildRequires: go-md2man -#BuildRequires: %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang} >= 1.7.4 -BuildRequires: go-toolset-7-golang-bin -BuildRequires: go-toolset-7-runtime -BuildRequires: make -BuildRequires: rpm-%{pypkg} -BuildRequires: PyYAML -BuildRequires: ostree-devel -Requires: dbus -Requires: polkit -Requires: setup -Requires: rpm-%{pypkg} -Requires: %{pypkg}-dateutil -Requires: %{pypkg}-dbus -Requires: %{pypkg}-requests -Requires: %{pypkg}-setuptools -Requires: %{pypkg}-six >= 1.3.0 -Requires: %{pypkg}-slip-dbus -Requires: %{pypkg}-urllib3 -Requires: %{pypkg}-websocket-client >= 0.11.0 -Requires: skopeo >= 1:0.1.29-3 -Requires: skopeo-containers >= 1:0.1.29-3 -Requires: PyYAML -Requires: gomtree -Requires: ostree -Requires: runc -Requires: container-storage-setup - -%if ! 0%{?fedora} -BuildRequires: %{pypkg}-ipaddress -Requires: %{pypkg}-ipaddress -%endif - -%if 0%{?centos} || 0%{?fedora} -BuildRequires: %{pypkg}-docker -Requires: %{pypkg}-docker -%else -BuildRequires: %{pypkg}-docker-py >= 1.7.2-1 -Requires: %{pypkg}-docker-py >= 1.7.2-1 -%endif # centos %description The goal of Atomic is to provide a high level, coherent entrypoint to the @@ -94,9 +34,12 @@ The atomic host subcommand wraps rpm-ostree providing unified management. # Atomic Registries %package registries Summary: Parses a global YAML registry file -Requires: %{pypkg}-yaml -Requires: %{pypkg}-pytoml -Requires: %{pypkg}-setuptools +BuildRequires: python-devel +BuildRequires: python-setuptools +BuildRequires: go-md2man +Requires: python-yaml +Requires: python-pytoml +Requires: python-setuptools BuildRequires: %{pypkg}-yaml BuildRequires: %{pypkg}-pytoml @@ -107,92 +50,29 @@ Utility that parses a global YAML registry file for container runtimes. %{?enable_gotoolset7} %prep -%setup -qn %{name}-%{commit0} -cd ../ -tar zxf %{SOURCE1} +%setup -qn registries-%{commit_atomic_registries} %build -cd .. -pushd registries-%{commit_atomic_registries} make GO=go PYTHON=%{__python} all -popd -pushd atomic-%{commit0} -if [ %{pypkg} == 'python3' ]; then - sed -i 's/input = raw_input/pass/' Atomic/util.py -fi -make GO=go PYTHON=%{__python} PYLINT=true all -popd %install -make GO=go PYTHON=%{__python} install-only DESTDIR=%{buildroot} - -%if 0%{?rhel} -make install-openscap DESTDIR=%{buildroot} -%endif - -# Better support for doing continuous delivery by supporting optional -# components. The canonical copy of this is in `rpm-ostree.spec`. -cat > autofiles.py < 0: - sys.stderr.write('{0} matched {1} files\n'.format(line, len(files))) - sys.stdout.write(line + '\n') - else: - sys.stderr.write('{0} did not match any files\n'.format(line)) -EOF -%{pypkg} autofiles.py > atomic.files \ - '%{pysitelib}/Atomic' \ - '%{pysitelib}/%{name}*.egg-info' \ - '%{_sysconfdir}/profile.d/%{name}.sh' \ - '%{_bindir}/%{name}' \ - '%{_datadir}/%{name}' \ - '%{_libexecdir}/%{name}/' \ - '%{_datadir}/bash-completion/completions/%{name}' \ - '%{_datadir}/dbus-1/system-services/org.%{name}.service' \ - '%{_datadir}/polkit-1/actions/org.%{name}.policy' \ - '%{_mandir}/man1/%{name}*' - #moved to skopeo - should not be present in future tarballs rm -rf %{buildroot}%{_sysconfdir}/containers -cd .. -pushd registries-%{commit_atomic_registries} make install DESTDIR=%{buildroot} install -d %{buildroot}%{_sysconfdir}/containers/ install -d %{buildroot}%{_unitdir} install -p -m 644 registries.service %{buildroot}%{_unitdir} -popd - %check -[ ! -w /run/docker.sock ] || make PYTHON=%{__python} test -cd .. #define license tag if not already defined %{!?_licensedir:%global license %doc} -%files -f atomic.files -%license COPYING -%doc README.md -%config(noreplace) %{_sysconfdir}/sysconfig/%{name} -%config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.%{name}.conf -%config(noreplace) %{_sysconfdir}/%{name}.conf -%if 0%{?rhel} -%config(noreplace) %{_sysconfdir}/%{name}.d/openscap -%endif -%dir %{_sysconfdir}/%{name}.d - %files registries -%license ../registries-%{commit_atomic_registries}/COPYING -%doc ../registries-%{commit_atomic_registries}/README.md +%license COPYING +%doc README.md %{_libexecdir}/registries %{_libexecdir}/registries_migrator %{_mandir}/man1/registries* @@ -201,6 +81,12 @@ cd .. %{pysitelib}/registries-*.egg-info %changelog +* Mon Aug 12 2019 Lokesh Mandvekar - 1:1.22.1-28.gitb507039 +- only build atomic-registries + +* Wed Aug 07 2019 Lokesh Mandvekar - 1:1.22.1-27.gitb507039 +- rebuilt + * Tue Nov 06 2018 Frantisek Kluknavsky - 1:1.22.1-26.gitb507039 - rebase @@ -276,7 +162,7 @@ cd .. - Fixes Bugzilla #1464029 * Mon Jun 05 2017 bbaude - 1:1.18.1-2.1.git0705b1b -- Rework spec file so that %setup can be used with multi-source packages +- Rework spec file so that %%setup can be used with multi-source packages - Customized registries.conf file based on distro - Updated autoconf to make distro support easier - Run make check for atomic-registries