From 4842c865c5cc27380d99701194550a1a464cec50 Mon Sep 17 00:00:00 2001 From: Ingvar Hagelund Date: Dec 15 2017 11:40:29 +0000 Subject: Initial import (#1509290). --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f1cd6d3 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/vmod-uuid-1.3.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index bd5db9a..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# vmod-uuid - -The vmod-uuid package \ No newline at end of file diff --git a/sources b/sources new file mode 100644 index 0000000..2cca672 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (vmod-uuid-1.3.tar.gz) = 3607c9f81cdd0b5ffafd562acd13a63d1bc26b6270f6cacc40f5bc8b612a512d31b74bb2c86d8a014f3a058800dd12cd33f15531592fd9f89b34df6cc3eeb47f diff --git a/vmod-uuid-1.3.fix_obsolete_m4_macro.patch b/vmod-uuid-1.3.fix_obsolete_m4_macro.patch new file mode 100644 index 0000000..048216e --- /dev/null +++ b/vmod-uuid-1.3.fix_obsolete_m4_macro.patch @@ -0,0 +1,11 @@ +--- configure.ac.orig 2017-12-08 16:28:01.574433633 +0100 ++++ configure.ac 2017-12-08 16:28:12.772177640 +0100 +@@ -4,7 +4,7 @@ + AC_CONFIG_MACRO_DIR([m4]) + AC_CONFIG_SRCDIR(src/vmod_uuid.vcc) + AC_CONFIG_AUX_DIR([build-aux]) +-AM_CONFIG_HEADER(config.h) ++AC_CONFIG_HEADERS(config.h) + + AC_CANONICAL_SYSTEM + AC_LANG(C) diff --git a/vmod-uuid.spec b/vmod-uuid.spec new file mode 100644 index 0000000..e4b07f0 --- /dev/null +++ b/vmod-uuid.spec @@ -0,0 +1,88 @@ +Name: vmod-uuid +Summary: UUID module for Varnish Cache +Version: 1.3 +Release: 4%{?dist} +License: BSD +URL: https://github.com/otto-de/libvmod-uuid +Source0: https://github.com/otto-de/lib%{name}/archive/v%{version}/%{name}-%{version}.tar.gz +Patch0: vmod-uuid-1.3.fix_obsolete_m4_macro.patch + +Requires: varnish%{?_isa} = %(pkg-config --silence-errors --modversion varnishapi || echo 0) +Requires: uuid + +BuildRequires: make +BuildRequires: gcc +BuildRequires: pkgconfig +BuildRequires: uuid-devel +BuildRequires: varnish-devel +BuildRequires: varnish +BuildRequires: check-devel + +# To build from a git checkout, add these +BuildRequires: automake +BuildRequires: libtool +BuildRequires: python-docutils +BuildRequires: autoconf-archive + +%description +UUID Varnish vmod used to generate a uuid, including versions 1, 3, 4 and 5 +as specified in RFC 4122. See the RFC for details about the various versions. + + +%prep +%autosetup -n lib%{name}-%{version} + + +%build +./autogen.sh +%configure \ + --docdir=%{?_pkgdocdir}%{!?_pkgdocdir:%{_docdir}/%{name}-%{version}} + +# We have to remove rpath - not allowed in Fedora +# (This problem only visible on 64 bit arches) +sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g; + s|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool + +%make_build + + +%check +make check + + +%install +%make_install + +# None of these for fedora/epel +find %{buildroot}/%{_libdir}/ -name '*.la' -delete +find %{buildroot}/%{_libdir}/ -name '*.a' -delete + + +%files +%{_libdir}/varnish*/vmods/ +%license LICENSE +%doc README.rst COPYING +%{_mandir}/man3/*.3* + + +%changelog +* Fri Dec 08 2017 Ingvar Hagelund - 1.3-4 +- Patched away obsolete m4 macro + +* Fri Dec 08 2017 Ingvar Hagelund - 1.3-3 +- Added pkg-config call to compute correct varnish version dependency +- Removed el6 hacks from fedora candidate package +- Simplified and cleaned up macro usage and other cosmetics according to + package review +- Added COPYING to doc + +* Mon Nov 06 2017 Ingvar Hagelund - 1.3-2 +- Set a readable homepage URL +- Removed Group and BuildRoot tags +- Set _isa macro on varnish requirement +- Use license macro on all builds +- Build fixes for el6 added, though commented out (requires a dist tarball) + +* Fri Nov 03 2017 Ingvar Hagelund - 1.3-1 +- New upstream release 1.3 aka ec75ddd +