File ostree.spec of Package ostree
#
# spec file for package ostree
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: ostree
Version: 2015.5
Release: 0
Summary: Git for operating system binaries
License: GPL-2.0+
Group: System/Libraries
Url: http://www.google.com
Source: %{name}-%{version}.tar.xz
BuildRequires: gjs
BuildRequires: gnome-common
BuildRequires: gobject-introspection-devel >= 1.34.0
BuildRequires: gpgme-devel
BuildRequires: libattr-devel
BuildRequires: libcap-devel
BuildRequires: pkgconfig(e2p)
BuildRequires: pkgconfig(gio-unix-2.0) >= 2.36.0
BuildRequires: pkgconfig(libarchive) >= 2.8.0
BuildRequires: pkgconfig(libgsystem) >= 2015.1
BuildRequires: pkgconfig(liblzma) >= 5.0.5
BuildRequires: pkgconfig(libsoup-2.4) >= 2.39.1
BuildRequires: pkgconfig(systemd)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
OSTree is a tool for managing bootable, immutable, versioned
filesystem trees. While it takes over some of the roles of tradtional
"package managers" 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 -n libostree-1-1
Summary: Git for operating system binaries
Group: System/Libraries
%description -n libostree-1-1
OSTree is a tool for managing bootable, immutable, versioned
filesystem trees. While it takes over some of the roles of tradtional
"package managers" 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 -n typelib-1_0-OSTree-1_0
Summary: Git for operating system binaries -- GObject bindings
Group: System/Libraries
%description -n typelib-1_0-OSTree-1_0
OSTree is a tool for managing bootable, immutable, versioned
filesystem trees. While it takes over some of the roles of tradtional
"package managers" 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: Git for operating system binaries -- Development files
Group: Development/Languages/C and C++
Requires: libostree-1-1 = %{version}
Requires: typelib-1_0-OSTree-1_0 = %{version}
%description devel
OSTree is a tool for managing bootable, immutable, versioned
filesystem trees. While it takes over some of the roles of tradtional
"package managers" 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.
%prep
%setup -q
%build
NOCONFIGURE=1 ./autogen.sh
%configure --with-dracut --with-grub2
make %{?_smp_mflags}
%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}
find %{buildroot} -type f -name "*.la" -delete -print
# openSUSE rcFOO links
mkdir -p %{buildroot}%{_sbindir}
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcostree-prepare-root
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcostree-remount
%post -n libostree-1-1 -p /sbin/ldconfig
%postun -n libostree-1-1 -p /sbin/ldconfig
%pre
%service_add_pre ostree-prepare-root.service
%service_add_pre ostree-remount.service
%preun
%service_del_preun ostree-prepare-root.service
%service_del_preun ostree-remount.service.service
%post
%service_add_post ostree-prepare-root.service
%service_add_post ostree-remount.service
%postun
%service_del_postun ostree-prepare-root.service
%service_del_postun ostree-remount.service
%files
%defattr(-,root,root)
%doc README.md COPYING
%{_bindir}/ostree
%{_libexecdir}/ostree/
%{_sbindir}/ostree-prepare-root
%{_sbindir}/ostree-remount
%dir %{_libexecdir}/dracut
%dir %{_libexecdir}/dracut/modules.d
%{_libexecdir}/dracut/modules.d/98ostree/
%{_unitdir}/ostree-prepare-root.service
%{_unitdir}/ostree-remount.service
%dir %{_sysconfdir}/dracut.conf.d
%{_sysconfdir}/dracut.conf.d/ostree.conf
%dir %{_sysconfdir}/grub.d/
%{_sysconfdir}/grub.d/15_ostree
%{_datadir}/ostree/
%{_sbindir}/rcostree-prepare-root
%{_sbindir}/rcostree-remount
%files -n libostree-1-1
%defattr(-,root,root)
%{_libdir}/libostree-1.so.*
%files -n typelib-1_0-OSTree-1_0
%defattr(-,root,root)
%{_libdir}/girepository-1.0/OSTree-1.0.typelib
%files devel
%defattr(-,root,root)
%{_includedir}/ostree-1/
%{_libdir}/libostree-1.so
%{_libdir}/pkgconfig/ostree-1.pc
%{_datadir}/gir-1.0/OSTree-1.0.gir
%changelog