packaging: Update infrastructure
The Makefile.dist-packaging lives canonically in rpm-ostree/ for now, it's my latest hack to automate git -> (s)rpm. Update the spec.in from current Fedora.
This commit is contained in:
1 parent
5034bf3a9d
commit
b38fb802f9
7 files changed
+132
-134
No files matched your search
@@ -0,0 +1 @@
|
||||
enable ostree-remount.service
|
||||
@@ -0,0 +1,92 @@
|
||||
Summary: Git for operating system binaries
|
||||
Name: ostree
|
||||
Version: 2013.7
|
||||
Release: 2%{?dist}
|
||||
#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)
|
||||
BuildRequires: libattr-devel
|
||||
# Extras
|
||||
BuildRequires: pkgconfig(libarchive)
|
||||
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
|
||||
"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: 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 \
|
||||
--disable-libarchive \
|
||||
--with-dracut
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -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
|
||||
|
||||
%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
|
||||
Executable
+11
@@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
# rpmbuild-cwd:
|
||||
# Run "rpmbuild", defining all RPM variables to use the current directory.
|
||||
# This matches Fedora's system.
|
||||
#
|
||||
# Licensed under the new-BSD license (http://www.opensource.org/licenses/bsd-license.php)
|
||||
# Copyright (C) 2010 Red Hat, Inc.
|
||||
# Written by Colin Walters <walters@verbum.org>
|
||||
|
||||
pwd=$(pwd)
|
||||
exec rpmbuild --define "_sourcedir ${pwd}" --define "_specdir ${pwd}" --define "_builddir ${pwd}" --define "_srcrpmdir ${pwd}" --define "_rpmdir ${pwd}" --define "_buildrootdir ${pwd}/.build" "$@"
|
||||
Reference in new issue
Block a user