Blob Blame History Raw
# Define this if we want to build with embedded dependencies
# for e.g. RHEL6
%define enable_embedded_dependencies 0

%if 0%{?enable_embedded_dependencies}
%define build_name ostree-embeddeps
%define build_name ostree

%if 0%{?rhel}
# HACK to fix building on RHEL6; find_debuginfo is crashing, not sure
# why
%define debug_package %{nil}

Summary: Linux-based operating system develop/build/deploy tool
Name: ostree
Version: 2013.3
Release: 1%{?dist}
#VCS: git:git://
# The (currently private) shared library, and almost all
# of the utilities are licensed under the LGPLv2+.  Only at present
# one utility program (ostree-switch-root) is forked from util-linux under
# the GPL.
# The BSD is there basically just for some random scripts, nothing
# important.
# As always, consult the upstream COPYING file, and individual source
# files for the canonical license status.
License: LGPLv2+ and GPLv2+ and BSD
# We always run
BuildRequires: autoconf automake libtool
# Too bad there isn't a pkg-config file =(
BuildRequires: libattr-devel
# For docs
BuildRequires: gtk-doc
BuildRequires: dracut

Requires: linux-user-chroot
Requires: dracut

# Embedded GLib dependencies
%if 0%{?enable_embedded_dependencies}
BuildRequires: glibc-devel
BuildRequires: pkgconfig(libffi)
BuildRequires: python-devel
BuildRequires: pkgconfig(zlib)
BuildRequires: pkgconfig(libselinux)

# Embedded libsoup dependencies
BuildRequires: gnome-common
BuildRequires: intltool
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(gio-unix-2.0)
BuildRequires: pkgconfig(libsoup-2.4)


%setup -q -n %{build_name}-%{version}

%if 0%{?enable_embedded_dependencies}
%define embedded_dependencies_option --enable-embedded-dependencies
%define embedded_dependencies_option %{nil}

%configure --disable-silent-rules \
	   --enable-documentation \
	   --disable-libarchive \
	   --enable-grub2-hook \
	   --disable-kernel-updates \
	   --with-dracut \
make %{?_smp_mflags}

make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p -c"


%dir %{_prefix}/lib/dracut/modules.d/98ostree
%dir %{_libdir}/ostree
%if 0%{?enable_embedded_dependencies}

* Sun Jul 07 2013 Colin Walters <> - 2013.3-1
- New upstream release

* Mon Apr 01 2013 Colin Walters <> - 2013.1-1
- New upstream release

* Thu Feb 14 2013 Fedora Release Engineering <> - 2012.13-2
- Rebuilt for

* Sun Dec 23 2012 Colin Walters <> - 2012.13-1
- New upstream release

* Tue Dec 18 2012 Colin Walters <> - 2012.12-2
- Explicitly enable grub2 hook; otherwise we pick up whatever
  the buildroot has, which is not what we want.

* Mon Nov 19 2012 Colin Walters <> - 2012.12-1
- Initial import; thanks to Michel Alexandre Salim for review