Accepting request 1005205 from Publishing
- Go from http to https - Split doc package off - Some modern rpm macros - Skip obsolete rpm macros - Extend patch plotutils-autoreconf.patch * More changes to autobuild toolset files OBS-URL: https://build.opensuse.org/request/show/1005205 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/plotutils?expand=0&rev=28
This commit is contained in:
commit
7a9f977cc5
@ -1,10 +1,219 @@
|
||||
---
|
||||
Makefile.am | 2 ++
|
||||
configure.ac | 15 ++++++++-------
|
||||
double/Makefile.am | 2 +-
|
||||
graph/Makefile.am | 2 +-
|
||||
hersheydemo/Makefile.am | 2 +-
|
||||
lib/Makefile.am | 2 +-
|
||||
libplot/Makefile.am | 2 +-
|
||||
libplotter/Makefile.am | 2 +-
|
||||
ode/Makefile.am | 2 +-
|
||||
pic2plot/Makefile.am | 2 +-
|
||||
pic2plot/libgroff/Makefile.am | 2 +-
|
||||
plot/Makefile.am | 2 +-
|
||||
plotfont/Makefile.am | 2 +-
|
||||
spline/Makefile.am | 2 +-
|
||||
tek2plot/Makefile.am | 2 +-
|
||||
15 files changed, 23 insertions(+), 20 deletions(-)
|
||||
|
||||
--- Makefile.am
|
||||
+++ Makefile.am 2022-09-21 12:46:18.849066032 +0000
|
||||
@@ -13,6 +13,8 @@
|
||||
# package, by default we don't build and install it as a standalone
|
||||
# library. (It's always compiled into libplot and libplotter, though.)
|
||||
|
||||
+ACLOCAL_AMFLAGS = -I .
|
||||
+
|
||||
if NO_LIBPLOTTER
|
||||
ADD_LIBPLOTTER =
|
||||
else
|
||||
--- configure.ac
|
||||
+++ configure.ac
|
||||
@@ -64,6 +64,7 @@
|
||||
+++ configure.ac 2022-09-21 12:47:06.192229777 +0000
|
||||
@@ -4,9 +4,10 @@
|
||||
|
||||
AC_INIT([GNU plotutils],[2.6],[bug-plotutils@gnu.org])
|
||||
AC_PREREQ(2.59)
|
||||
+AC_CONFIG_MACRO_DIRS([.])
|
||||
AC_CONFIG_SRCDIR(graph/graph.c)
|
||||
-AM_INIT_AUTOMAKE([plotutils],[2.6])
|
||||
-AM_CONFIG_HEADER(config.h:config.hin)
|
||||
+AM_INIT_AUTOMAKE()
|
||||
+AC_CONFIG_HEADERS(config.h:config.hin)
|
||||
|
||||
# The following will be defined in config.h, if appropriate.
|
||||
|
||||
@@ -63,7 +64,8 @@ fi
|
||||
# AC_PROG_MAKE_SET, or equivalents, so we don't perform them explicitly.
|
||||
# Note: this can apparently alter CFLAGS, on a few platforms, e.g., on
|
||||
# SCO OpenServer 5 (i.e. *-*-sco3.2v5*), "-belf" is added.
|
||||
AC_PROG_LIBTOOL
|
||||
-AC_PROG_LIBTOOL
|
||||
+LT_INIT
|
||||
+AC_PROG_CXX
|
||||
|
||||
# Determine extension (e.g. ".exe") on executables, if any.
|
||||
AC_EXEEXT
|
||||
@@ -72,7 +74,7 @@ AC_EXEEXT
|
||||
AC_C_CONST
|
||||
AC_TYPE_SIZE_T
|
||||
AC_TYPE_PID_T
|
||||
-AC_TYPE_SIGNAL
|
||||
+AC_DEFINE(RETSIGTYPE,void,[Return type of signal handlers, but autoconf 2.70 says 'your code may safely assume C89 semantics that RETSIGTYPE is void.'])
|
||||
|
||||
# Check whether fflush(NULL) works
|
||||
AC_MSG_CHECKING(whether flushing a null FILE pointer works)
|
||||
@@ -93,10 +95,9 @@ int main()
|
||||
exit(0); }]])],[AC_MSG_RESULT(yes); AC_DEFINE(HAVE_NULL_FLUSH)],[AC_MSG_RESULT(no)],[AC_MSG_RESULT(no)])
|
||||
|
||||
# Checks for header files: ANSI C, POSIX, and nonstandard Unix headers.
|
||||
-AC_HEADER_STDC
|
||||
+AC_INCLUDES_DEFAULT
|
||||
AC_CHECK_HEADERS(string.h limits.h float.h)
|
||||
AC_CHECK_HEADERS(malloc.h pthread.h strings.h unistd.h values.h sys/select.h sys/stdtypes.h sys/time.h sys/types.h sys/wait.h)
|
||||
-AC_HEADER_TIME
|
||||
|
||||
# HP/UX needs a cpp definition for math.h to define matherr-related things
|
||||
AC_EGREP_HEADER(_HPUX_SOURCE, math.h, [AC_EGREP_HEADER(matherr, math.h, [AC_DEFINE(_HPUX_SOURCE)])])
|
||||
@@ -107,7 +108,7 @@ AC_FUNC_ALLOCA
|
||||
# Checks for programs. Automake needs AM_PROG_LEX, not AC_PROG_LEX;
|
||||
# ignore the bogus warning about AC_PROG_LEX being invoked twice.
|
||||
AC_PROG_YACC
|
||||
-AM_PROG_LEX
|
||||
+AM_PROG_LEX([noyywrap])
|
||||
|
||||
# Should libplot/libplotter support multithreading via pthread mutexes?
|
||||
# Check to see whether libc includes dummy ("weak") pthread functions, so
|
||||
--- double/Makefile.am
|
||||
+++ double/Makefile.am 2022-09-21 12:35:37.452412255 +0000
|
||||
@@ -5,4 +5,4 @@ bin_PROGRAMS = double
|
||||
double_SOURCES = double.c
|
||||
double_LDADD = ../lib/libcommon.a
|
||||
|
||||
-INCLUDES = -I$(srcdir)/../include
|
||||
+AM_CPPFLAGS = -I$(srcdir)/../include
|
||||
--- graph/Makefile.am
|
||||
+++ graph/Makefile.am 2022-09-21 12:36:11.899802000 +0000
|
||||
@@ -6,7 +6,7 @@ graph_SOURCES = graph.c misc.c linemode.
|
||||
graph_LDADD = ../lib/libcommon.a ../libplot/libplot.la
|
||||
noinst_HEADERS = extern.h
|
||||
|
||||
-INCLUDES = -I$(srcdir)/../include
|
||||
+AM_CPPFLAGS = -I$(srcdir)/../include
|
||||
|
||||
CLEANFILES = fontlist.c
|
||||
|
||||
--- hersheydemo/Makefile.am
|
||||
+++ hersheydemo/Makefile.am 2022-09-21 12:43:18.956243473 +0000
|
||||
@@ -5,4 +5,4 @@ bin_PROGRAMS = hersheydemo
|
||||
hersheydemo_SOURCES = hersheydemo.c
|
||||
hersheydemo_LDADD = ../lib/libcommon.a ../libplot/libplot.la
|
||||
|
||||
-INCLUDES = -I$(srcdir)/../include
|
||||
+AM_CPPFLAGS = -I$(srcdir)/../include
|
||||
--- lib/Makefile.am
|
||||
+++ lib/Makefile.am 2022-09-21 12:36:40.403297046 +0000
|
||||
@@ -1,7 +1,7 @@
|
||||
## Makefile.am for plotutils/lib.
|
||||
|
||||
noinst_LIBRARIES = libcommon.a
|
||||
-INCLUDES = -I$(srcdir)/../include
|
||||
+AM_CPPFLAGS = -I$(srcdir)/../include
|
||||
|
||||
libcommon_a_SOURCES = compat.c display.c getopt.c getopt1.c xmalloc.c xstrdup.c
|
||||
libcommon_a_LIBADD = @ALLOCA@
|
||||
--- libplot/Makefile.am
|
||||
+++ libplot/Makefile.am 2022-09-21 12:37:13.450711599 +0000
|
||||
@@ -6,7 +6,7 @@ EXTRA_DIST = DEDICATION HUMOR README-cgm
|
||||
|
||||
libplot_la_LDFLAGS = -version-info 4:4:2
|
||||
|
||||
-INCLUDES = $(X_CFLAGS) -I$(srcdir)/../include -DLIBPLOT
|
||||
+AM_CPPFLAGS = $(X_CFLAGS) -I$(srcdir)/../include -DLIBPLOT
|
||||
|
||||
MISRC = mi_alloc.c mi_api.c mi_arc.c mi_canvas.c mi_fllarc.c mi_fllrct.c \
|
||||
mi_fplycon.c mi_gc.c mi_ply.c mi_plycon.c mi_plygen.c mi_plypnt.c \
|
||||
--- libplotter/Makefile.am
|
||||
+++ libplotter/Makefile.am 2022-09-21 12:44:53.586572049 +0000
|
||||
@@ -4,7 +4,7 @@ lib_LTLIBRARIES = libplotter.la
|
||||
|
||||
libplotter_la_LDFLAGS = -version-info 4:4:2
|
||||
|
||||
-INCLUDES = $(X_CFLAGS) -I$(srcdir)/../include -DLIBPLOT -DLIBPLOTTER
|
||||
+AM_CPPFLAGS = $(X_CFLAGS) -I$(srcdir)/../include -DLIBPLOT -DLIBPLOTTER
|
||||
|
||||
MISRC = mi_alloc.cc mi_api.cc mi_arc.cc mi_canvas.cc mi_fllarc.cc \
|
||||
mi_fllrct.cc mi_fplycon.cc mi_gc.cc mi_ply.cc mi_plycon.cc mi_plygen.cc \
|
||||
--- ode/Makefile.am
|
||||
+++ ode/Makefile.am 2022-09-21 12:39:42.256075513 +0000
|
||||
@@ -8,6 +8,6 @@ ode_LDADD = ../lib/libcommon.a @LEXLIB@
|
||||
|
||||
AM_YFLAGS = -d
|
||||
|
||||
-INCLUDES = -I$(srcdir)/../include
|
||||
+AM_CPPFLAGS = -I$(srcdir)/../include
|
||||
|
||||
EXTRA_DIST = INTERNALS gram.h
|
||||
--- pic2plot/Makefile.am
|
||||
+++ pic2plot/Makefile.am 2022-09-21 12:40:21.235385009 +0000
|
||||
@@ -9,7 +9,7 @@ noinst_HEADERS = common.h object.h outpu
|
||||
|
||||
AM_YFLAGS = -d
|
||||
|
||||
-INCLUDES = -I$(srcdir)/../include -I$(srcdir)/include
|
||||
+AM_CPPFLAGS = -I$(srcdir)/../include -I$(srcdir)/include
|
||||
|
||||
CLEANFILES = fontlist.c
|
||||
|
||||
--- pic2plot/libgroff/Makefile.am
|
||||
+++ pic2plot/libgroff/Makefile.am 2022-09-21 12:40:36.439115681 +0000
|
||||
@@ -1,7 +1,7 @@
|
||||
## Makefile.am for plotutils/pic2plot/libgroff.
|
||||
|
||||
noinst_LIBRARIES = libgroff.a
|
||||
-INCLUDES = -I$(srcdir)/../../include -I$(srcdir)/../include
|
||||
+AM_CPPFLAGS = -I$(srcdir)/../../include -I$(srcdir)/../include
|
||||
|
||||
libgroff_a_SOURCES = assert.cc change_lf.cc cset.cc errarg.cc error.cc fatal.cc filename.cc illegal.cc itoa.cc lf.cc lineno.cc progname.cc ptable.cc string.cc strsave.cc
|
||||
|
||||
--- plot/Makefile.am
|
||||
+++ plot/Makefile.am 2022-09-21 12:41:11.990485963 +0000
|
||||
@@ -5,7 +5,7 @@ bin_PROGRAMS = plot
|
||||
plot_SOURCES = plot.c fontlist.c
|
||||
plot_LDADD = ../lib/libcommon.a ../libplot/libplot.la
|
||||
|
||||
-INCLUDES = -I$(srcdir)/../include
|
||||
+AM_CPPFLAGS = -I$(srcdir)/../include
|
||||
|
||||
CLEANFILES = fontlist.c
|
||||
|
||||
--- plotfont/Makefile.am
|
||||
+++ plotfont/Makefile.am 2022-09-21 12:41:22.314303624 +0000
|
||||
@@ -5,7 +5,7 @@ bin_PROGRAMS = plotfont
|
||||
plotfont_SOURCES = plotfont.c fontlist.c
|
||||
plotfont_LDADD = ../lib/libcommon.a ../libplot/libplot.la
|
||||
|
||||
-INCLUDES = -I$(srcdir)/../include
|
||||
+AM_CPPFLAGS = -I$(srcdir)/../include
|
||||
|
||||
CLEANFILES = fontlist.c
|
||||
|
||||
--- spline/Makefile.am
|
||||
+++ spline/Makefile.am 2022-09-21 12:41:35.106077697 +0000
|
||||
@@ -3,6 +3,6 @@
|
||||
bin_PROGRAMS = spline
|
||||
spline_SOURCES = spline.c
|
||||
|
||||
-INCLUDES = -I$(srcdir)/../include
|
||||
+AM_CPPFLAGS = -I$(srcdir)/../include
|
||||
|
||||
spline_LDADD = ../lib/libcommon.a
|
||||
--- tek2plot/Makefile.am
|
||||
+++ tek2plot/Makefile.am 2022-09-21 12:41:47.981850287 +0000
|
||||
@@ -6,7 +6,7 @@ tek2plot_SOURCES = tek2plot.c Tektable.c
|
||||
tek2plot_LDADD = ../lib/libcommon.a ../libplot/libplot.la
|
||||
noinst_HEADERS = Tekparse.h
|
||||
|
||||
-INCLUDES = -I$(srcdir)/../include
|
||||
+AM_CPPFLAGS = -I$(srcdir)/../include
|
||||
|
||||
CLEANFILES = fontlist.c
|
||||
|
||||
|
@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 21 11:53:33 UTC 2022 - Dr. Werner Fink <werner@suse.de>
|
||||
|
||||
- Go from http to https
|
||||
- Split doc package off
|
||||
- Some modern rpm macros
|
||||
- Skip obsolete rpm macros
|
||||
- Extend patch plotutils-autoreconf.patch
|
||||
* More changes to autobuild toolset files
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Apr 16 18:16:31 UTC 2018 - astieger@suse.com
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package plotutils
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2022 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -12,7 +12,7 @@
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
@ -20,11 +20,11 @@ Name: plotutils
|
||||
Version: 2.6
|
||||
Release: 0
|
||||
Summary: GNU Plotting Utilities
|
||||
License: GPL-2.0+ and GPL-3.0+
|
||||
License: GPL-2.0-or-later AND GPL-3.0-or-later
|
||||
Group: Productivity/Graphics/Visualization/Graph
|
||||
Url: http://www.gnu.org/software/plotutils/plotutils.html
|
||||
Source: http://ftp.gnu.org/gnu/plotutils/%{name}-%{version}.tar.gz
|
||||
Source1: http://ftp.gnu.org/gnu/plotutils/plotutils-2.6.tar.gz.sig
|
||||
URL: https://www.gnu.org/software/plotutils/plotutils.html
|
||||
Source: https://ftp.gnu.org/gnu/plotutils/%{name}-%{version}.tar.gz
|
||||
Source1: https://ftp.gnu.org/gnu/plotutils/plotutils-2.6.tar.gz.sig
|
||||
Source2: plotutils.keyring
|
||||
Patch0: plotutils-man.patch
|
||||
Patch1: plotutils-uninitialized.patch
|
||||
@ -45,16 +45,11 @@ BuildRequires: gcc-c++
|
||||
BuildRequires: libpng-devel
|
||||
BuildRequires: libtool
|
||||
BuildRequires: pkgconfig
|
||||
%if %suse_version < 1220
|
||||
BuildRequires: xorg-x11-devel
|
||||
%else
|
||||
BuildRequires: pkgconfig(x11)
|
||||
BuildRequires: pkgconfig(xaw7)
|
||||
BuildRequires: pkgconfig(xext)
|
||||
BuildRequires: pkgconfig(xt)
|
||||
%endif
|
||||
Requires(pre): %install_info_prereq
|
||||
Requires(pre): %suseconfig_fonts_prereq
|
||||
%{?reconfigure_fonts_prereq: %reconfigure_fonts_prereq}
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
@ -70,11 +65,21 @@ graphics animations under the X Window System.
|
||||
Summary: GNU Plotting Utilities
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: %{name} = %{version}
|
||||
Requires: bison
|
||||
Requires: flex
|
||||
Requires: fontpackages-devel
|
||||
Requires: gcc-c++
|
||||
Requires: libplot2 = %{version}
|
||||
Requires: libplotter2 = %{version}
|
||||
Requires: libpng-devel
|
||||
Requires: libstdc++-devel
|
||||
Requires: libtool
|
||||
Requires: libxmi0 = %{version}
|
||||
Requires: xorg-x11-libX11-devel
|
||||
Requires: pkgconfig
|
||||
Requires: pkgconfig(x11)
|
||||
Requires: pkgconfig(xaw7)
|
||||
Requires: pkgconfig(xext)
|
||||
Requires: pkgconfig(xt)
|
||||
|
||||
%description devel
|
||||
The GNU plotting utilities consist of seven command line programs: the
|
||||
@ -85,6 +90,22 @@ graphics programs are based. `Libplot' is a function library for
|
||||
device-independent two-dimensional vector graphics, including vector
|
||||
graphics animations under the X Window System.
|
||||
|
||||
%package doc
|
||||
Summary: GNU Plotting Utilities
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: %{name} = %{version}
|
||||
Provides: %{name}:%{_docdir}/%{name}/README
|
||||
BuildArch: noarch
|
||||
|
||||
%description doc
|
||||
The GNU plotting utilities consist of seven command line programs: the
|
||||
graphics programs `graph', `plot', `tek2plot', and `plotfont', and the
|
||||
mathematical programs `spline', `ode', and `double'. GNU `libplot' is
|
||||
distributed with these programs; it is the library on which the
|
||||
graphics programs are based. `Libplot' is a function library for
|
||||
device-independent two-dimensional vector graphics, including vector
|
||||
graphics animations under the X Window System.
|
||||
|
||||
%package -n libplot2
|
||||
Summary: GNU Plotting Utilities
|
||||
Group: System/Libraries
|
||||
@ -130,7 +151,7 @@ graphics animations under the X Window System.
|
||||
%patch0 -p0
|
||||
%patch1 -p0
|
||||
%patch2 -p0
|
||||
%patch3 -p0
|
||||
%patch3 -p0 -b .p3
|
||||
%patch4 -p1
|
||||
%patch5 -p0
|
||||
%patch6 -p0
|
||||
@ -146,19 +167,17 @@ autoreconf -f -i
|
||||
--disable-static\
|
||||
--enable-libplotter\
|
||||
--enable-libxmi
|
||||
# FIXME: lex/bison update break parallel build:
|
||||
#make %{?jobs:-j%jobs}
|
||||
make
|
||||
%make_build
|
||||
|
||||
%install
|
||||
%makeinstall\
|
||||
%make_install\
|
||||
libplotdatadir=%{_docdir}/%{name}/libplot\
|
||||
odedatadir=%{_docdir}/%{name}/ode\
|
||||
tek2plotdatadir=%{_docdir}/%{name}/tek2plot\
|
||||
pic2plotdatadir=%{_docdir}/%{name}/pic2plot
|
||||
#
|
||||
install -m 0644\
|
||||
AUTHORS COMPAT COPYING INSTALL.fonts KNOWN_BUGS PROBLEMS README THANKS\
|
||||
AUTHORS COMPAT INSTALL.fonts KNOWN_BUGS PROBLEMS README THANKS\
|
||||
TODO %{buildroot}%{_defaultdocdir}/%{name}
|
||||
#
|
||||
install -d %{buildroot}%{_miscfontsdir}
|
||||
@ -172,22 +191,14 @@ ln -s plotutils.1.gz %{buildroot}%{_mandir}/man1/pic2plot.1.gz
|
||||
rm -f %{buildroot}%{_libdir}/*.la
|
||||
|
||||
%post
|
||||
%install_info --info-dir=%{_infodir} %{_infodir}/plotutils.info.gz
|
||||
%reconfigure_fonts_post
|
||||
|
||||
%postun
|
||||
%install_info_delete --info-dir=%{_infodir} %{_infodir}/plotutils.info.gz
|
||||
%reconfigure_fonts_postun
|
||||
|
||||
%posttrans
|
||||
%reconfigure_fonts_posttrans
|
||||
|
||||
%post devel
|
||||
%install_info --info-dir=%{_infodir} %{_infodir}/libxmi.info.gz
|
||||
|
||||
%postun devel
|
||||
%install_info_delete --info-dir=%{_infodir} %{_infodir}/libxmi.info.gz
|
||||
|
||||
%post -n libplot2 -p /sbin/ldconfig
|
||||
|
||||
%postun -n libplot2 -p /sbin/ldconfig
|
||||
@ -203,12 +214,15 @@ rm -f %{buildroot}%{_libdir}/*.la
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%license COPYING
|
||||
%doc %{_docdir}/%{name}
|
||||
%{_bindir}/*
|
||||
%doc %{_infodir}/plotutils*.info*
|
||||
%doc %{_mandir}/man?/*.*
|
||||
%{_miscfontsdir}
|
||||
|
||||
%files doc
|
||||
%defattr(-,root,root)
|
||||
%doc %{_docdir}/%{name}
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/lib*.so
|
||||
|
Loading…
x
Reference in New Issue
Block a user