diff --git a/.gitignore b/.gitignore index e69de29..dc70586 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/rpm-ostree-2014.5.8.ge3264d9.tar.xz diff --git a/rpm-ostree.spec b/rpm-ostree.spec new file mode 100644 index 0000000..ee23eca --- /dev/null +++ b/rpm-ostree.spec @@ -0,0 +1,62 @@ +Summary: Commit RPMs to an OSTree repository +Name: rpm-ostree +Version: 2014.5.8.ge3264d9 +Release: 1%{?dist} +#VCS: https://github.com/cgwalters/rpm-ostree +# This tarball is generated via "make -f Makefile.dist-packaging dist-snapshot" +Source0: rpm-ostree-%{version}.tar.xz +License: LGPLv2+ +URL: https://github.com/cgwalters/rpm-ostree +# We always run autogen.sh +BuildRequires: autoconf automake libtool +# For docs +BuildRequires: gtk-doc +BuildRequires: gnome-common +BuildRequires: pkgconfig(ostree-1) +BuildRequires: pkgconfig(libgsystem) +BuildRequires: pkgconfig(json-glib-1.0) + +Requires: /usr/bin/yum + +%description +This tool takes a set of packages, and commits them to an OSTree +repository. At the moment, it is intended for use on build servers. + +%package autobuilder +Summary: Build server for rpm-ostree +Group: System Environment/Base +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: /usr/bin/gjs +Requires: /usr/bin/guestmount +Requires: libguestfs-gobject +BuildRequires: /usr/bin/g-ir-scanner +BuildRequires: readline-devel + +%description autobuilder +An automatic build server for rpm-ostree. + +%prep +%setup -q -n %{name}-%{version} + +%build +env NOCONFIGURE=1 ./autogen.sh +%configure --disable-silent-rules +make %{?_smp_mflags} + +%install +make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p -c" + +%files +%doc COPYING README.md +%{_bindir}/rpm-ostree +%{_libdir}/%{name}/ + +%files autobuilder +%{_bindir}/rpm-ostree-autobuilder +%{_libdir}/%{name}-autobuilder/ +%{_datadir}/%{name}-autobuilder/ + +%changelog +* Fri Mar 07 2014 Colin Walters - 2014.5-1 +- Initial package + diff --git a/sources b/sources index e69de29..5077422 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +fb5f116e7f85597bc9c01aca5f060bba rpm-ostree-2014.5.8.ge3264d9.tar.xz