diff --git a/.gitignore b/.gitignore index e69de29..259d229 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/litmus-0.13.tar.gz diff --git a/litmus-i18n.patch b/litmus-i18n.patch new file mode 100644 index 0000000..7c8926b --- /dev/null +++ b/litmus-i18n.patch @@ -0,0 +1,23 @@ +diff -ru ./test-common/tests.c ../litmus-0.13a/test-common/tests.c +--- ./test-common/tests.c 2009-03-04 15:31:40.000000000 +0100 ++++ ../litmus-0.13a/test-common/tests.c 2011-12-13 18:11:00.000000000 +0100 +@@ -45,7 +45,9 @@ + #include "ne_string.h" + #include "ne_utils.h" + #include "ne_socket.h" ++#if NE_VERSION_MAJOR > 0 || NE_VERSION_MINOR > 25 + #include "ne_i18n.h" ++#endif + + #include "tests.h" + #include "child.h" +@@ -188,7 +190,9 @@ + setlocale(LC_MESSAGES, ""); + #endif + ++#if NE_VERSION_MAJOR > 0 || NE_VERSION_MAJOR > 25 + ne_i18n_init(NULL); ++#endif + + #if defined(HAVE_ISATTY) && defined(STDOUT_FILENO) + if (isatty(STDOUT_FILENO)) { diff --git a/litmus.spec b/litmus.spec new file mode 100644 index 0000000..82b9f3c --- /dev/null +++ b/litmus.spec @@ -0,0 +1,62 @@ +Name: litmus +Version: 0.13 +Release: 3%{?dist} +Summary: WebDAV server compliance test suite +Group: Applications/Internet +License: GPLv2+ +URL: http://www.webdav.org/neon/litmus/ +Source0: http://www.webdav.org/neon/litmus/%{name}-%{version}.tar.gz +# Fix build with neon < 0.26.x (EPEL5). +# Upstream has applied this in neon svn repo (bundled in litmus build). +# http://lists.manyfish.co.uk/pipermail/neon-commits/2011-December/000947.html +Patch0: litmus-i18n.patch +Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: neon-devel + +%description +litmus is a WebDAV server test suite, which aims to test whether a server is +compliant with the WebDAV protocol as specified in RFC2518. + +%prep +%setup -q -n %{name}-%{version} +%patch0 -p1 + +# Making sure we use system libs, not bundled ones +find ./lib -name '*.c' -o -name '*.h' | xargs rm -rf + +%build +%configure --with-neon=%{_prefix} + +make %{?_smp_mflags} + +%install +rm -rf %{buildroot} + +make install DESTDIR=%{buildroot} + +# minimal cleanup +rm -rf %{buildroot}/%{_datadir} + +%clean +rm -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%{_bindir}/litmus +%dir %{_libexecdir}/%{name} +%{_libexecdir}/%{name}/* +%doc COPYING FAQ README THANKS TODO + +%changelog +* Wed Dec 14 2011 Ricardo Rocha - 0.13-3 +- Fixed prefix usage in configure +- Drop bundled libraries to make sure we use the system ones + +* Tue Dec 13 2011 Ricardo Rocha - 0.13-2 +- Proper use of configure macro +- Added comment on i18n patch +- Consistent use of buildroot macro + +* Fri Dec 09 2011 Ricardo Rocha - 0.13-1 +- Initial build diff --git a/sources b/sources index e69de29..5d6e3fc 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +7c081e182214e771bc615232ef475b00 litmus-0.13.tar.gz