Blame SPECS/rpm-ostree-client.spec

e15265
%global bubblewrap_version 0.1.8
a17ba1
Summary: Client side upgrade program
a17ba1
Name: rpm-ostree-client
f0c6dd
Version: 2017.9
f0c6dd
Release: 1.atomic%{?dist}
a17ba1
#VCS: https://github.com/cgwalters/rpm-ostree
a17ba1
# This tarball is generated via "make -f Makefile.dist-packaging dist-snapshot-without-compose-tooling"
ce5866
Source0: rpm-ostree-client-%{version}.tar.xz
a17ba1
License: LGPLv2+
a17ba1
URL: https://github.com/projectatomic/rpm-ostree
495f49
Source1: https://github.com/projectatomic/bubblewrap/releases/download/v%{bubblewrap_version}/bubblewrap-%{bubblewrap_version}.tar.xz
7270e3
7270e3
Requires: ostree-fuse
190ca1
a17ba1
# We always run autogen.sh
190ca1
BuildRequires: autoconf automake libtool git
a17ba1
# For docs
190ca1
BuildRequires: chrpath
a17ba1
BuildRequires: gtk-doc
a17ba1
BuildRequires: gnome-common
f0c6dd
BuildRequires: /usr/bin/g-ir-scanner
190ca1
# Core requirements
f0c6dd
BuildRequires: pkgconfig(ostree-1) >= 2017.11
f0c6dd
BuildRequires: pkgconfig(polkit-gobject-1)
a17ba1
BuildRequires: pkgconfig(json-glib-1.0)
a17ba1
BuildRequires: pkgconfig(rpm)
190ca1
BuildRequires: pkgconfig(libarchive)
7270e3
BuildRequires: pkgconfig(libsystemd)
7270e3
BuildRequires: gperf
a17ba1
BuildRequires: libcap-devel
190ca1
BuildRequires: libattr-devel
190ca1
7270e3
# libhif bundling
190ca1
# We currently interact directly with librepo
190ca1
BuildRequires: pkgconfig(librepo)
190ca1
190ca1
# We're using RPATH to pick up our bundled version
ee9816
%global __requires_exclude ^libdnf[.]so[.].*$
190ca1
c034ea
# Our bundled libdnf.so.1 is for us only
c034ea
%global __provides_exclude_from ^%{_libdir}/rpm-ostree/.*$
c034ea
190ca1
BuildRequires: cmake
190ca1
BuildRequires: pkgconfig(expat)
190ca1
BuildRequires: pkgconfig(check)
190ca1
BuildRequires: python-devel
190ca1
BuildRequires: python-sphinx
190ca1
%if (0%{?rhel} != 0 && 0%{?rhel} <= 7)
190ca1
BuildRequires: libsolv-devel
190ca1
%else
190ca1
BuildRequires: pkgconfig(libsolv)
190ca1
%endif
a17ba1
a17ba1
Conflicts: rpm-ostree
a17ba1
a17ba1
%description
a17ba1
This tool binds together the world of RPM packages with
a17ba1
the OSTree model of bootable filesystem trees.  It provides commands
a17ba1
usable on client systems to upgrade and rollback.
a17ba1
a17ba1
%prep
ce5866
%autosetup -Sgit -n %{name}-%{version}
190ca1
tar xf %{SOURCE1}
a17ba1
a17ba1
%build
7270e3
(cd bubblewrap-%{bubblewrap_version} &&
495f49
 if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi &&
7270e3
 %configure --disable-silent-rules
190ca1
 make %{?_smp_mflags}
190ca1
)
a17ba1
env NOCONFIGURE=1 ./autogen.sh
7270e3
%configure --disable-silent-rules --enable-gtk-doc --with-bubblewrap=%{_libdir}/rpm-ostree/bwrap --disable-compose-tooling
a17ba1
make %{?_smp_mflags}
a17ba1
a17ba1
%install
7270e3
(cd bubblewrap-%{bubblewrap_version} &&
7270e3
 install -d -m 0755 $RPM_BUILD_ROOT/%{_libdir}/rpm-ostree
7270e3
 install -m 0755 bwrap $RPM_BUILD_ROOT/%{_libdir}/rpm-ostree
190ca1
)
a17ba1
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p -c"
700512
find $RPM_BUILD_ROOT -name '*.la' -delete
700512
rm $RPM_BUILD_ROOT/%{_libdir}/lib*.so
700512
rm $RPM_BUILD_ROOT/%{_includedir} -rf
700512
rm $RPM_BUILD_ROOT/%{_libdir}/pkgconfig -rf
700512
rm $RPM_BUILD_ROOT/%{_datadir}/gtk-doc/html -rf
700512
rm $RPM_BUILD_ROOT/%{_datadir}/gir-1.0 -rf
f0c6dd
rm $RPM_BUILD_ROOT/%{_datadir}/dbus-1/interfaces -rf
a17ba1
d94648
# I try to do continuous delivery via rpmdistro-gitoverlay while
d94648
# reusing the existing spec files.  Currently RPM only supports
d94648
# mandatory file entries.  What this is doing is making each file
d94648
# entry optional - if it exists it will be picked up.  That
d94648
# way the same spec file works more easily across multiple versions where e.g. an
d94648
# older version might not have a systemd unit file.
d94648
cat > autofiles.py <
d94648
#!/usr/bin/python
d94648
import os,sys,glob
d94648
os.chdir(os.environ['RPM_BUILD_ROOT'])
d94648
for line in sys.argv[1:]:
d94648
    if line == '':
d94648
        break
d94648
    assert(line[0] == '/')
d94648
    files = glob.glob(line[1:])
d94648
    if len(files) > 0:
d94648
        sys.stderr.write('{0} matched {1} files\n'.format(line, len(files)))
d94648
        sys.stdout.write(line)
d94648
        sys.stdout.write('\n')
d94648
    else:
d94648
        sys.stderr.write('{0} did not match any files\n'.format(line))
d94648
EOF
d94648
python autofiles.py > files \
d94648
  '%{_bindir}/*' \
d94648
  '%{_libdir}/rpm-ostree/' \
d94648
  '%{_libdir}/*.so.*' \
d94648
  '%{_mandir}/man*/*' \
d94648
  '%{_libdir}/girepository-1.0/*.typelib' \
d94648
  '%{_sysconfdir}/dbus-1/system.d/*' \
d94648
  '%{_prefix}/lib/systemd/system/*' \
d94648
  '%{_libexecdir}/rpm-ostree*' \
f0c6dd
  '%{_datadir}/polkit-1/actions/*.policy' \
d94648
  '%{_datadir}/dbus-1/system-services'
d94648
d94648
%files -f files
a17ba1
%doc COPYING README.md
a17ba1
a17ba1
%changelog
f0c6dd
* Mon Sep 25 2017 Jonathan Lebon <jlebon@redhat.com> - 2017.9-1.atomic
f0c6dd
- New upstream release
f0c6dd
- Resolves: #1494120
f0c6dd
0ff063
* Tue Aug 08 2017 Jonathan Lebon <jlebon@redhat.com> - 2017.6-6.atomic
0ff063
- Backport fix to allow rollback more than once
0ff063
- Resolves: #1478083
0ff063
c034ea
* Fri Jul 07 2017 Colin Walters <walters@redhat.com> - 2017.6-5.atomic
c034ea
- Backport patch to fix metadata-only repos
c034ea
- Resolves: #1468302
c034ea
c034ea
* Thu Jun 15 2017 Jonathan Lebon <jlebon@redhat.com> - 2017.6-4.atomic
c034ea
- Make sure to remove compose-related hunks from patch
c034ea
c034ea
* Thu Jun 15 2017 Jonathan Lebon <jlebon@redhat.com> - 2017.6-3.atomic
c034ea
- Backport patch to fix SELinux workaround for policy move to /var
c034ea
- Backport patch to fix /var/run potentially being a directory
c034ea
c034ea
* Fri Jun 02 2017 Jonathan Lebon <jlebon@redhat.com> - 2017.6-2.atomic
c034ea
- Fix provides exclude to not use name var
c034ea
c034ea
* Fri Jun 02 2017 Jonathan Lebon <jlebon@redhat.com> - 2017.6-1.atomic
c034ea
- New upstream release
c034ea
- Resolves: #1457964
c034ea
e15265
* Tue May 02 2017 Jonathan Lebon <jlebon@redhat.com> - 2017.5-1.atomic
e15265
- New upstream release
e15265
- Resolves: #1447070
e15265
ee9816
* Fri Mar 17 2017 Jonathan Lebon <jlebon@redhat.com> - 2017.3-1.atomic
ee9816
- New upstream release
ee9816
- Resolves: #1433392
ee9816
495f49
* Tue Feb 14 2017 Colin Walters <walters@verbum.org> - 2017.1-6.atomic
495f49
- Add patch to do GPG checking before importing/installing RPMs
495f49
- Resolves: #1422157
495f49
495f49
* Tue Feb 14 2017 Colin Walters <walters@verbum.org> - 2017.1-5.atomic
495f49
- Backport patch for unconfigured-state handling
495f49
- Resolves: #1421867
495f49
495f49
* Mon Feb 13 2017 Jonathan Lebon <jlebon@redhat.com> - 2017.1-4.atomic
495f49
- Resolves: #1421781
495f49
495f49
* Tue Jan 24 2017 Colin Walters <walters@verbum.org> - 2017.1-3.atomic
495f49
- New upstream version
495f49
  Resolves: #1416089
495f49
- Bump bubblewrap to latest release too
495f49
b0dbf2
* Mon Dec 12 2016 walters@redhat.com - 2016.13-1.atomic
b0dbf2
- New upstream version
b0dbf2
- Resolves: #1403933
b0dbf2
6494a1
* Mon Oct 24 2016 Colin Walters <walters@redhat.com>
6494a1
- New upstream version
6494a1
e372cc
* Thu Sep 08 2016 walters@redhat.com - 2016.10-1
e372cc
- New upstream version
e372cc
7270e3
* Mon Jul 25 2016 Colin Walters <walters@redhat.com> - 2016.5-1.atomic
7270e3
- New upstream version
7270e3
7270e3
* Fri Jul 08 2016 Colin Walters <walters@redhat.com> - 2016.4-2.atomic
190ca1
- New upstream version
190ca1
ce5866
* Tue Dec 15 2015 Colin Walters <walters@redhat.com> - 2015.11-1.atomic.1
ce5866
- New upstream version
ce5866
d94648
* Tue Oct 06 2015 Colin Walters <walters@redhat.com> - 2015.9-2.atomic.1
d94648
- New upstream version
d94648
d94648
* Fri Sep 25 2015 Colin Walters <walters@redhat.com> - 2015.5-4.atomic.1
d94648
- Rebuild
d94648
700512
* Wed Jun 10 2015 Colin Walters <walters@redhat.com> - 2015.5-4.atomic
700512
- Backport version number patch
700512
700512
* Mon May 18 2015 Colin Walters <walters@redhat.com> - 2015.5-3.atomic
700512
- Drop devel subpackage, use the main rpm-ostree client package for that
700512
700512
* Mon May 18 2015 Colin Walters <walters@redhat.com> - 2015.5-2.atomic
700512
- Rebuild against latest libhif
700512
700512
* Fri May 15 2015 Colin Walters <walters@redhat.com> - 2015.5-1.atomic
700512
- Rebase to Fedora rawhide
700512
e5b71e
* Fri Apr 17 2015 Colin Walters <walters@redhat.com> - 2015.3-3.atomic
e5b71e
- Backport client side GPG verification status patches
e5b71e
a17ba1
* Fri Jan 23 2015 Colin Walters <walters@redhat.com> - 2015.3-2.atomic
a17ba1
- New usptream release
a17ba1
a17ba1
* Fri Jan 23 2015 Colin Walters <walters@redhat.com> - 2015.2-3.atomic
a17ba1
- Drop /usr/bin/atomic symlink, this name is now taken by the docker
a17ba1
  package. 
a17ba1
a17ba1
* Fri Jan 09 2015 Colin Walters <walters@redhat.com> - 2015.2-2.atomic
a17ba1
- New upstream version
a17ba1
a17ba1
* Fri Dec 19 2014 Colin Walters <walters@redhat.com> - 2014.109-3.atomic
a17ba1
- Rebuild for 7.1
a17ba1
a17ba1
* Fri Oct 24 2014 Colin Walters <walters@redhat.com> - 2014.109-2.atomic
a17ba1
- New upstream version
a17ba1
a17ba1
* Thu Oct 16 2014 Colin Walters <walters@redhat.com> - 2014.108-2.atomic
a17ba1
- New upstream version
a17ba1
a17ba1
* Mon Sep 29 2014 Colin Walters <walters@redhat.com> - 2014.106.2.g0f16e2e-4.atomic
a17ba1
- rebuilt
a17ba1
a17ba1
* Mon Sep 29 2014 Colin Walters <walters@redhat.com> - 2014.106.2.g0f16e2e-3.atomic
a17ba1
- rebuilt
a17ba1
a17ba1
* Mon Sep 29 2014 Colin Walters <walters@redhat.com> - 2014.106.2.g0f16e2e-2.atomic
a17ba1
- rebuilt
a17ba1
a17ba1
* Wed Sep 17 2014 Colin Walters <walters@redhat.com>
a17ba1
- Initial split package for compose tooling