2014-01-18 04:44:54 -05:00
Summary : Git for operating system binaries
Name : ostree
Version : 2013.7
2014-06-21 16:55:36 -04:00
Release : 3%{?dist}
2014-01-18 04:44:54 -05:00
#VCS: git:git://git.gnome.org/ostree
Source0 : http://ftp.gnome.org/pub/GNOME/sources/ostree/%{version} /ostree-%{version} .tar.xz
Source1 : 91-ostree.preset
License : LGPLv2+
URL : http://live.gnome.org/OSTree
# We always run autogen.sh
BuildRequires : autoconf automake libtool
# For docs
BuildRequires : gtk-doc
# Core requirements
BuildRequires : pkgconfig(gio-unix-2.0)
BuildRequires : pkgconfig(libsoup-2.4)
2014-05-22 19:53:54 -04:00
BuildRequires : pkgconfig(libgsystem)
2014-06-21 16:55:36 -04:00
BuildRequires : pkgconfig(e2p)
2014-01-18 04:44:54 -05:00
BuildRequires : libattr-devel
# Extras
BuildRequires : pkgconfig(libarchive)
2014-01-29 09:22:16 -05:00
BuildRequires : pkgconfig(libselinux)
2014-01-18 04:44:54 -05:00
BuildRequires : gpgme-devel
BuildRequires : pkgconfig(systemd)
BuildRequires : /usr/bin/g-ir-scanner
BuildRequires : dracut
# Runtime requirements
Requires : dracut
Requires : systemd-units
%description
OSTree is a tool for managing bootable, immutable, versioned
filesystem trees. While it takes over some of the roles of tradtional
" p a c k a g e m a n a g e r s " like dpkg and rpm, it is not a package system; nor
is it a tool for managing full disk images. Instead, it sits between
those levels, offering a blend of the advantages (and disadvantages)
of both.
%package devel
Summary : Development headers for %{name}
Group : Development/Libraries
Requires : %{name} = %{version} -%{release}
%description devel
The %{name} -devel package includes the header files for the %{name} library.
%prep
%setup -q -n ostree-%{version}
%build
env NOCONFIGURE=1 ./autogen.sh
%configure --disable-silent-rules \
--enable-gtk-doc \
2014-03-01 15:46:03 -05:00
--with-selinux \
2014-01-18 04:44:54 -05:00
--with-dracut
make %{?_smp_mflags}
%install
make install DESTDIR=$RPM_BUILD_ROOT INSTALL=" i n s t a l l - p - c "
find $RPM_BUILD_ROOT -name '*.la' -delete
install -D -m 0644 %{SOURCE1} $RPM_BUILD_ROOT /%{_prefix} /lib/systemd/system-preset/91-ostree.preset
%clean
rm -rf $RPM_BUILD_ROOT
%post
%systemd_post ostree-remount.service
%preun
%systemd_preun ostree-remount.service
%files
%doc COPYING README.md
%{_bindir} /ostree
%{_sbindir} /ostree-prepare-root
%{_sbindir} /ostree-remount
%{_sysconfdir} /dracut.conf.d/ostree.conf
%dir %{_prefix} /lib/dracut/modules.d/98ostree
%{_prefix} /lib/systemd/system/ostree*.service
%{_prefix} /lib/dracut/modules.d/98ostree/*
%{_libdir} /*.so.1*
%{_libdir} /girepository-1.0/OSTree-1.0.typelib
%{_mandir} /man1/*.gz
%{_prefix} /lib/systemd/system-preset/91-ostree.preset
2014-08-02 18:09:52 -04:00
%dir %{_sysconfdir} /ostree/remotes.d
2014-01-18 04:44:54 -05:00
%files devel
%{_libdir} /lib*.so
%{_includedir} /*
%{_libdir} /pkgconfig/*
%{_datadir} /ostree
%dir %{_datadir} /gtk-doc/html/ostree
%{_datadir} /gtk-doc/html/ostree
%{_datadir} /gir-1.0/OSTree-1.0.gir