ocaml-calendar-buildcompare.patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:ocaml/ocaml-calendar?expand=0&rev=8
This commit is contained in:
Olaf Hering 2016-05-29 12:27:24 +00:00 committed by Git OBS Bridge
parent 994abe5355
commit a5314cd543
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,15 @@
---
Makefile.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/Makefile.in
+++ b/Makefile.in
@@ -117,7 +117,7 @@ $(LIBDIR)/$(NAMELIB).cmxs: $(LIBDIR)/$(N
src/version.ml: Makefile
echo "let version = \"$(VERSION)\"" > $@
- echo "let date = \"`date`\"" >> $@
+ echo "let date = \"`date --reference=CHANGES`\"" >> $@
META: Makefile
echo "name = \"$(NAME)\"" > $@

View File

@ -31,6 +31,7 @@ Group: Development/Libraries/Other
Url: http://calendar.forge.ocamlcore.org/
Source0: http://forge.ocamlcore.org/frs/download.php/1481/calendar-2.04.tar.gz
Patch1: calendar-2.04-enable-debug.patch
Patch2: ocaml-calendar-buildcompare.patch
BuildRequires: gawk
BuildRequires: ocaml >= 4.00.1
BuildRequires: ocaml-rpm-macros >= 4.02.1
@ -59,6 +60,7 @@ developing applications that use %{name}.
%prep
%setup -q -n calendar-%{version}
%patch1 -p1
%patch2 -p1
%build