libcerf-1.3-autotools.patch 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. Send upstream (j.wuttke@fz-juelich.de) 14.07.14
  2. diff -Naur libcerf-1.3.orig/configure.ac libcerf-1.3/configure.ac
  3. --- libcerf-1.3.orig/configure.ac 2013-07-17 03:49:33.000000000 -0600
  4. +++ libcerf-1.3/configure.ac 2014-07-21 17:01:15.399324021 -0600
  5. @@ -19,7 +19,7 @@
  6. # Website:
  7. # http://apps.jcns.fz-juelich.de/libcerf
  8. -AC_INIT([cerf],[1:3],[http://apps.jcns.fz-juelich.de/libcerf])
  9. +AC_INIT([libcerf],[1:3],[http://apps.jcns.fz-juelich.de/libcerf])
  10. # version is current:revision:age; for simplicity, we always put age=0
  11. # <- http://www.sourceware.org/autobook/autobook/autobook_91.html
  12. @@ -31,7 +31,7 @@
  13. LT_INIT([disable-static])
  14. AC_PROG_CC_C99
  15. -AC_SUBST(AM_CFLAGS,"-pedantic -Wall -Werror")
  16. +AC_SUBST(AM_CFLAGS,"-pedantic -Wall")
  17. AC_CONFIG_HEADERS([config.h]) # to avoid endless -D options
  18. AC_HEADER_STDC
  19. diff -Naur libcerf-1.3.orig/libcerf.pc.in libcerf-1.3/libcerf.pc.in
  20. --- libcerf-1.3.orig/libcerf.pc.in 2013-07-17 03:51:59.000000000 -0600
  21. +++ libcerf-1.3/libcerf.pc.in 2014-07-14 11:18:01.646512503 -0600
  22. @@ -7,4 +7,5 @@
  23. Description: Complex error function library
  24. Version: @PACKAGE_VERSION@
  25. Libs: -L${libdir} -lcerf
  26. +Libs.private: -lm
  27. Cflags: -I${includedir}
  28. diff -Naur libcerf-1.3.orig/man/Makefile.am libcerf-1.3/man/Makefile.am
  29. --- libcerf-1.3.orig/man/Makefile.am 2013-02-01 02:00:14.000000000 -0700
  30. +++ libcerf-1.3/man/Makefile.am 2014-07-14 11:17:36.266182267 -0600
  31. @@ -19,9 +19,8 @@
  32. # Website:
  33. # http://apps.jcns.fz-juelich.de/libcerf
  34. -man_MANS = w_of_z.3 im_w_of_x.3 dawson.3 cdawson.3 cerf.3 cerfc.3 erfcx.3 cerfcx.3 erfi.3 cerfi.3 voigt.3
  35. -auxdir = $(datadir)/man/html
  36. -aux_DATA = w_of_z.html voigt.html dawson.html cerf.html erfcx.html erfi.html
  37. +man_MANS = w_of_z.3 im_w_of_x.3 dawson.3 cdawson.3 libcerf-cerf.3 cerfc.3 erfcx.3 cerfcx.3 erfi.3 cerfi.3 voigt.3
  38. +html_DATA = w_of_z.html voigt.html dawson.html cerf.html erfcx.html erfi.html
  39. w_of_z.3 : w_of_z.pod
  40. pod2man -s 3 -c "libcerf manual" $< > $@
  41. @@ -35,7 +34,7 @@
  42. cdawson.3 : dawson.pod
  43. pod2man -s 3 -c "libcerf manual" $< > $@
  44. -cerf.3 : cerf.pod
  45. +libcerf-cerf.3 : cerf.pod
  46. pod2man -s 3 -c "libcerf manual" $< > $@
  47. cerfc.3 : cerf.pod
  48. diff -Naur libcerf-1.3.orig/test/Makefile.am libcerf-1.3/test/Makefile.am
  49. --- libcerf-1.3.orig/test/Makefile.am 2013-07-17 01:45:37.000000000 -0600
  50. +++ libcerf-1.3/test/Makefile.am 2014-07-14 11:16:00.204932368 -0600
  51. @@ -20,8 +20,10 @@
  52. # http://apps.jcns.fz-juelich.de/libcerf
  53. AM_CFLAGS += -I$(srcdir)/../lib
  54. -noinst_PROGRAMS = test_libcerf_1 runvoigt run_w_of_z
  55. +noinst_PROGRAMS = runvoigt run_w_of_z
  56. test_libcerf_1_SOURCES = test1.c
  57. runvoigt_SOURCES = runvoigt.c
  58. run_w_of_z_SOURCES = run_w_of_z.c
  59. AM_LDFLAGS = -lm -L../lib -lcerf
  60. +check_PROGRAMS = test_libcerf_1
  61. +TESTS = test_libcerf_1