# 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 %else %define build_name ostree %endif %if 0%{?rhel} # HACK to fix building on RHEL6; find_debuginfo is crashing, not sure # why %global debug_package %{nil} %endif Summary: Linux-based operating system develop/build/deploy tool Name: ostree Version: 2012.9.27.g1a274ae Release: 1%{?dist} #VCS: git:git://git.gnome.org/ostree Source0: http://ftp.gnome.org/pub/GNOME/sources/ostree/%{version}/%{build_name}-%{version}.tar.gz License: LGPLv2+ URL: http://live.gnome.org/OSTree # We always run autogen.sh BuildRequires: autoconf automake libtool # Too bad there isn't a pkg-config file =( BuildRequires: libattr-devel # For docs BuildRequires: gtk-doc # 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) %else BuildRequires: pkgconfig(gio-unix-2.0) BuildRequires: pkgconfig(libsoup-2.4) %endif %description See http://live.gnome.org/OSTree %prep %setup -q -n %{build_name}-%{version} %build env NOCONFIGURE=1 ./autogen.sh %if 0%{?enable_embedded_dependencies} %define embedded_dependencies_option --enable-embedded-dependencies %else %define embedded_dependencies_option %{nil} %endif %configure --disable-silent-rules \ --enable-documentation \ --disable-libarchive \ %{embedded_dependencies_option} make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %{_bindir}/ostree %{_bindir}/ostree-pull %{_bindir}/ostree-run-triggers %{_sbindir}/ostree-switch-root %{_libexecdir}/ostreed %dir %{_libdir}/ostree %{_libdir}/ostree/*.so %dir %{_libexecdir}/ostree %dir %{_libexecdir}/ostree/triggers.d %{_libexecdir}/ostree/triggers.d/* %{_mandir}/man1/*.gz