packaging: New directory with spec file
This commit is contained in:
parent
cc2fa114a5
commit
300c773ba9
39
packaging/rpm-ostree.spec.in
Normal file
39
packaging/rpm-ostree.spec.in
Normal file
@ -0,0 +1,39 @@
|
||||
Summary: Commit RPMs to an OSTree repository
|
||||
Name: rpm-ostree
|
||||
Version: 2014.1
|
||||
Release: 1%{?dist}
|
||||
#VCS: git:git://git.gnome.org/ostree
|
||||
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)
|
||||
|
||||
%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.
|
||||
|
||||
%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
|
||||
%{_bindir}/rpm-ostree-autobuilder
|
||||
%{_bindir}/fedostree-make-trees
|
||||
%{_bindir}/fedostree-make-trees-loop
|
||||
%{_libdir}/%{name}/
|
||||
%{_datadir}/%{name}/
|
11
packaging/rpmbuild-cwd
Executable file
11
packaging/rpmbuild-cwd
Executable file
@ -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" "$@"
|
Loading…
Reference in New Issue
Block a user