Can't build RPM of xfstests
Eryu Guan
eguan at redhat.com
Mon Oct 20 22:15:43 CDT 2014
On Mon, Oct 20, 2014 at 08:54:47AM -0500, Eric Sandeen wrote:
> On 10/20/14 6:55 AM, Greg Freemyer wrote:
>
> > Opensuse is building rpms of 1.1.1 so the build infrastructure isn't
> > too badly broken. I don't know if they are following FHS, but I
> > doubt they use /opt.
>
> The build works fine, it's the "Makepkgs" that I think is a bit odd,
> at least for RPM packaging.
>
> Also, if we really want to encourage packaging, we should probably start
> sticking official version numbers on it. "1.1.1" was tagged in Dec 2012,
> and there have been no "releases" since.
>
> > The opensuse package/specfile can be found at:
> > https://build.opensuse.org/package/show/filesystems/xfstests
> >
> > The rpms including the source rpm can be downloaded from:
> > http://software.opensuse.org/download.html?project=filesystems&package=xfstests
> >
> > Note the specfile applies a patch to change the install aspect of
> > the tarball immediately after untar'ing it.
> >
> > I don't maintain that so I don't know why the patch is needed.
>
> Ok, cool, I'll take a look at the specfile & patch. I had also packaged
> it up for our internal QA use long ago, and had to make a few changes
> as well.
This is the spec file used internally by Red Hat, just for your reference
Thanks,
Eryu
Name: xfstests
Version: 20141014
Release: 1.git
Summary: xfs qa tests
Group: misc
License: GPL
URL: http://oss.sgi.com/cgi-bin/gitweb.cgi?p=xfs/cmds/xfstests.git
Source0: $RPM_BUILD_ROOT/SOURCES/xfstests-dev.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: autoconf, libtool, e2fsprogs-devel, xfsprogs-devel
BuildRequires: libacl-devel, libattr-devel, libaio-devel
Requires: bash, perl, acl, attr, bind-utils
Requires: bc, indent, quota, xfsprogs
%description
The xfsqa test available at http://git.kernel.org/?p=fs/xfs/xfstests-dev.git or http://oss.sgi.com/cgi-bin/gitweb.cgi?p=xfs/cmds/xfstests.git
%prep
%setup -q -n xfstests-dev
%build
autoheader
autoconf
%configure
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
# Dirty workaround, xfstets won't build if these two directories do not exist...
mkdir -p /var/lib/xfstests/{ltp,src}
make DIST_ROOT=$RPM_BUILD_ROOT install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc README
/var/lib/xfstests
%changelog
......
>
> -Eric
>
> --
> To unsubscribe from this list: send the line "unsubscribe fstests" in
> the body of a message to majordomo at vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
More information about the xfs
mailing list