SHA256
10
0
forked from pool/plplot

Accepting request 78764 from home:badshah400:branches:science

Reconfigured to enable building ada bindings (changes to .spec and rpmlintrc files; new sub-packages: plplot-ada and plplot-ada-devel)

OBS-URL: https://build.opensuse.org/request/show/78764
OBS-URL: https://build.opensuse.org/package/show/science/plplot?expand=0&rev=5
This commit is contained in:
Werner Hoch
2011-08-14 08:12:13 +00:00
committed by Git OBS Bridge
parent 12f008f259
commit e019d40291
4 changed files with 97 additions and 6 deletions
+7
View File
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Aug 8 23:56:24 UTC 2011 - badshah400@gmail.com
- Enable ada bindings
- Added plplot-gcc-ada46-libs.patch to enable compilation with
gcc-ada = 4.6
-------------------------------------------------------------------
Mon Aug 1 19:44:18 UTC 2011 - badshah400@gmail.com
+76 -6
View File
@@ -30,6 +30,8 @@ Source1: %{name}-rpmlintrc
Patch0: plplot-multiarch.patch
# PATCH-FIX-UPSTREAM plplot-strncat.patch badshah400@gmail.com -- Prevent overflow errors with strcat operations
Patch1: plplot-strncat.patch
# PATCH-FIX-UPSTERAM plplot-gcc-ada46-libs.patch badshah400@gmail.com -- Allow searching for gcc-ada46 libraries
Patch2: plplot-gcc-ada46-libs.patch
BuildRequires: cmake
BuildRequires: freefont
BuildRequires: fdupes
@@ -60,6 +62,7 @@ BuildRequires: pkgconfig(libgnomeui-2.0)
BuildRequires: pkgconfig(lua)
BuildRequires: pkgconfig(pygtk-2.0)
BuildRequires: python-devel
BuildRequires: ocaml
%if 0%{?suse_version} > 1130
BuildRequires: wxWidgets-devel
@@ -156,6 +159,56 @@ may be placed on a single page with multiple lines in each graph.
This package provides the documentation for PLplot and its associated
modules.
%package ada
Summary: Shared libraries for PLplot's AdA bindings
Group: System/Libraries
Requires: %{name} = %{version}
Requires(post): /sbin/ldconfig
%description ada
A variety of output file devices such as Postscript, png, jpeg, LaTeX
and others, as well as interactive devices such as xwin, tk, xterm and
Tektronics devices are supported. New devices can be easily added by
writing a small number of device dependent routines.
There are almost 2000 characters in the extended character set. This
includes four different fonts, the Greek alphabet and a host of
mathematical, musical, and other symbols. Some devices supports its own
way of dealing with text, such as the Postscript and LaTeX drivers, or
the png and jpeg drivers that uses the Freetype library.
This package provides the shared libraries necessary for using PLplot
with Ada.
%package ada-devel
Summary: Ada bindings for development with PLplot
Group: Development/Languages/Fortran
Requires: %{name} = %{version}
Requires: %{name}-devel = %{version}
Requires: gcc-ada
Requires: %{name}-ada = %{version}
Requires: pkgconfig
%description ada-devel
A variety of output file devices such as Postscript, png, jpeg, LaTeX
and others, as well as interactive devices such as xwin, tk, xterm and
Tektronics devices are supported. New devices can be easily added by
writing a small number of device dependent routines.
There are almost 2000 characters in the extended character set. This
includes four different fonts, the Greek alphabet and a host of
mathematical, musical, and other symbols. Some devices supports its own
way of dealing with text, such as the Postscript and LaTeX drivers, or
the png and jpeg drivers that uses the Freetype library.
This package provides the files necessary for using PLplot in Ada.
%package fortran
Summary: Shared libraries for PLplot's Fortran bindings
@@ -427,6 +480,7 @@ plotting with wxGTK.
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
for file in NEWS README.release
do
iconv -f ISO-8859-1 -t UTF-8 $file > ${file}.tmp
@@ -446,12 +500,12 @@ cmake \
-DCMAKE_BUILD_TYPE:STRING=Release \\\
-DPL_FREETYPE_FONT_PATH:PATH="%{_datadir}/fonts/truetype" \\\
-DUSE_RPATH:BOOL=OFF \\\
-DENABLE_ada:BOOL=OFF \\\
-DENABLE_ada:BOOL=ON \\\
-DENABLE_d:BOOL=ON \\\
-DENABLE_itcl:BOOL=ON \\\
-DENABLE_itk:BOOL=ON \\\
-DENABLE_lua:BOOL=ON \\\
-DENABLE_ocaml:BOOL=OFF \\\
-DENABLE_ocaml:BOOL=ON \\\
-DENABLE_tk:BOOL=ON \\\
-DHAVE_PTHREAD:BOOL=ON \\\
-DPLD_aqt:BOOL=ON \\\
@@ -529,20 +583,19 @@ chmod +x %{buildroot}%{_datadir}/%{name}%{version}/examples/tk/tk03
%postun
/sbin/ldconfig
%post -n plplot-fortran -p /sbin/ldconfig
%post -n plplot-ada -p /sbin/ldconfig
%postun -n plplot-ada -p /sbin/ldconfig
%post -n plplot-fortran -p /sbin/ldconfig
%postun -n plplot-fortran -p /sbin/ldconfig
%post -n plplot-tcltk -p /sbin/ldconfig
%postun -n plplot-tcltk -p /sbin/ldconfig
%post -n plplot-qt -p /sbin/ldconfig
%postun -n plplot-qt -p /sbin/ldconfig
%post -n plplot-wxwidgets -p /sbin/ldconfig
%postun -n plplot-wxwidgets -p /sbin/ldconfig
%files doc
@@ -616,6 +669,23 @@ chmod +x %{buildroot}%{_datadir}/%{name}%{version}/examples/tk/tk03
%{_datadir}/plplot%{version}/examples/test_diff.sh
%{_mandir}/man3/pl*.3*
%files ada
%defattr(-,root,root)
%{_libdir}/libplplotadad.so.*
%files ada-devel
%defattr(-,root,root)
%{_libdir}/libplplotadad.so
%dir %{_libdir}/ada
%dir %{_libdir}/ada/adalib
%dir %{_datadir}/ada
%dir %{_datadir}/ada/adainclude
%{_libdir}/ada/adalib/plplotadad/
%{_libdir}/pkgconfig/plplotd-ada.pc
%{_datadir}/ada/adainclude/plplotadad/
%{_datadir}/plplot%{version}/examples/ada/
%{_datadir}/plplot%{version}/examples/test_ada.sh
%files fortran
%defattr(-,root,root)
%{_libdir}/libplplotf95cd.so.*
+12
View File
@@ -0,0 +1,12 @@
--- plplot-5.9.7/cmake/modules/ada.cmake.gnat46 2010-10-03 07:11:57.000000000 -0600
+++ plplot-5.9.7/cmake/modules/ada.cmake 2011-01-24 13:10:48.733012276 -0700
@@ -43,7 +43,7 @@
endif(ENABLE_ada)
if(ENABLE_ada)
- find_library(GNAT_LIB NAMES gnat gnat-4.5 gnat-4.4 gnat-4.3 gnat-4.2 gnat-4.1)
+ find_library(GNAT_LIB NAMES gnat gnat-4.6 gnat-4.5 gnat-4.4 gnat-4.3 gnat-4.2 gnat-4.1)
if(NOT GNAT_LIB)
message(STATUS "WARNING: "
"gnat library not found. Disabling ada bindings")
+2
View File
@@ -5,4 +5,6 @@ addFilter("plplot-wxwidgets.* shlib-policy-missing-suffix")
addFilter("plplot-tcltk.* shlib-policy-missing-suffix")
addFilter("plplot-fortran.* shlib-policy-missing-suffix")
addFilter("plplot.* shlib-policy-missing-suffix")
addFilter("plplot-ada.* shlib-policy-missing-suffix")
addFilter("plplot-ada.* shlib-policy-name-error")