<div dir="ltr">Greg,<br><br>sure, currently, I use the following spec file to package it (I've trimmed things like changelog to limit the space used):<br>--------------------------------------------------- SPEC FILE -----------------------------------------------------------------------<br>
Name: xfstests<br>Version: 20130415<br>Release: 3.git<br>Summary: xfs qa tests<br><br>Group: misc<br>License: GPL<br>URL: <a href="http://oss.sgi.com/cgi-bin/gitweb.cgi?p=xfs/cmds/xfstests.git">http://oss.sgi.com/cgi-bin/gitweb.cgi?p=xfs/cmds/xfstests.git</a><br>
Source0: $RPM_BUILD_ROOT/SOURCES/xfstests-dev.tar.bz2<br>BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)<br><br>BuildRequires: autoconf, libtool, e2fsprogs-devel, xfsprogs-devel<br>
BuildRequires: libacl-devel, libattr-devel, libaio-devel<br>Requires: bash, perl, acl, attr, bind-utils<br>Requires: bc, indent, quota, xfsprogs<br><br>%description<br>The xfsqa test available at git://<a href="http://oss.sgi.com/xfs/cmds/xfstests.git">oss.sgi.com/xfs/cmds/xfstests.git</a>.<br>
<br>%prep<br>%setup -q -n xfstests-dev<br><br>%build<br>autoheader<br>autoconf<br>%configure<br>make %{?_smp_mflags}<br><br>%install<br>rm -rf $RPM_BUILD_ROOT<br># Dirty workaround, xfstests won't build if these two directories do not exist...<br>
mkdir -p /var/lib/xfstests/{ltp,src}<br><br>make DIST_ROOT=$RPM_BUILD_ROOT install<br><br>%clean<br>rm -rf $RPM_BUILD_ROOT<br><br><br>%files<br>%defattr(-,root,root,-)<br>%doc README<br>/var/lib/xfstests<br>--------------------------------------------------- SPEC FILE
-----------------------------------------------------------------------<br><br>Before the libtool was used for installation I didn't need the workaround (mkdir -p /var/lib/xfstets/{src,ltp}). Additionally, there is a template spec file in xfstests git repository (build/rpm/<a href="http://xfstests.spec.in">xfstests.spec.in</a>) that you can use.<br>
<br>I get the tar.bz2 package from git repository by:<br>git archive --format=tar --output xfstests-dev.tar --prefix=xfstests-dev/<br>bzip2 xfstests-dev.tar<br><br>btw: I did not originally write the file, I just maintain it, now. I suppose that Eric Sandeen is the one who originally wrote the .spec file.<br>
<br>Regards,<br>Boris<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Apr 18, 2013 at 2:46 PM, Greg Freemyer <span dir="ltr"><<a href="mailto:greg.freemyer@gmail.com" target="_blank">greg.freemyer@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
<br>
Boris Ranto <<a href="mailto:ranto.boris@gmail.com">ranto.boris@gmail.com</a>> wrote:<br>
<br>
>Rich,<br>
><br>
>just as Eric guessed, I package the xfstests test suite (and that is<br>
>also<br>
>why I need the DIST_ROOT variable functioning properly). Although I can<br>
>currently work around the problem by doing something like<br>
><br>
>./configure<br>
>make<br>
>mkdir -p /var/lib/xfstets/{ltp,src}<br>
>make DIST_ROOT=$RPM_BUILD_ROOT install<br>
><br>
>it certainly is not the best solution to the problem. If the test suite<br>
>is<br>
>completely independent from its location then also maybe this could<br>
>work (I<br>
>did not try it, yet and I'm still not sure it is the best solution)<br>
><br>
>./configure --prefix=$RPM_BUILD_ROOT<br>
>make<br>
>make install<br>
><br>
>but if that is the case then it'd probably make sense to drop the whole<br>
>DIST_ROOT support from install-sh script to avoid confusion and update<br>
>the<br>
>spec file in bulld/rpm/.<br>
><br>
>Regards,<br>
>Boris<br>
<br>
</div>Boris,<br>
<br>
When you get it working for packaging purposes I'd appreciate a post detailing what works. I thought about packaging xfstests for opensuse a couple years ago but aborted the effort when I realized it was not designed to be installed at the time.<br>
<span class="HOEnZb"><font color="#888888"><br>
Greg<br>
--<br>
Sent from my Android phone with K-9 Mail. Please excuse my brevity.<br>
</font></span></blockquote></div><br></div>