Blame SPECS/rpm-ostree-client.spec

7270e3
%global bubblewrap_version 0.1.1
a17ba1
Summary: Client side upgrade program
a17ba1
Name: rpm-ostree-client
e372cc
Version: 2016.9
7270e3
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
7270e3
Source1: bubblewrap-%{bubblewrap_version}.tar.gz
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
190ca1
BuildRequires: gobject-introspection
190ca1
# Core requirements
190ca1
BuildRequires: pkgconfig(ostree-1) >= 2015.1
a17ba1
BuildRequires: pkgconfig(libgsystem)
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
190ca1
%global __requires_exclude ^libhif[.]so[.].*$
190ca1
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} &&
7270e3
 env NOCONFIGURE=1 ./autogen.sh &&
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
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*' \
d94648
  '%{_datadir}/dbus-1/system-services'
d94648
d94648
%files -f files
a17ba1
%doc COPYING README.md
a17ba1
a17ba1
%changelog
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