packages: pdtoolkit/pdtoolkit.spec (NEW) - new

qboosh qboosh at pld-linux.org
Thu Jan 6 10:33:08 CET 2011


Author: qboosh                       Date: Thu Jan  6 09:33:08 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

---- Files affected:
packages/pdtoolkit:
   pdtoolkit.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/pdtoolkit/pdtoolkit.spec
diff -u /dev/null packages/pdtoolkit/pdtoolkit.spec:1.1
--- /dev/null	Thu Jan  6 10:33:08 2011
+++ packages/pdtoolkit/pdtoolkit.spec	Thu Jan  6 10:33:03 2011
@@ -0,0 +1,199 @@
+# $Revision$, $Date$
+Summary:	Program Database Toolkit - source code analysis tools
+Summary(pl.UTF-8):	Program Database Toolkit - narzędzia do analizy kodu źródłowego
+Name:		pdtoolkit
+Version:	3.16
+Release:	0.1
+License:	BSD-like (DUCTAPE), GPL v2+ (modified gfortran compiler), other (C++/F9x frontends)
+Group:		Development/Tools
+# "pdtoolkit" tarball contains more (not needed) precompiled binaries than "pdt"
+Source0:	http://www.cs.uoregon.edu/research/paracomp/pdtoolkit/Download/pdt-%{version}.tar.gz
+# Source0-md5:	3f528e18d569bcefe46ed3aa83c6c608
+URL:		http://www.cs.uoregon.edu/research/paracomp/pdtoolkit/
+BuildRequires:	libstdc++-devel
+ExclusiveArch:	%{ix86} %{x8664} ia64
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		pdtroot	%{_libdir}/pdtoolkit
+
+%description
+The Program Database Toolkit (PDT) is a tool infrastructure that
+provides access to the high-level interface of source code for
+analysis tools and applications. Currently, the toolkit consists of
+the C/C++ and Fortran 77/90/95 IL (Intermediate Language) Analyzers,
+and DUCTAPE (C++ program Database Utilities and Conversion Tools
+APplication Environment) library and applications. The EDG C++ (or
+Mutek Fortran 90) Front End first parses a source file, and produces
+an intermediate language file. The appropriate IL Analyzer processes
+this IL file, and creates a "program database" (PDB) file consisting
+of the high-level interface of the original source.  Use of the 
+DUCTAPE library then makes the contents of the PDB file accessible to
+applications. This release also includes the Flint F95 parser from
+Cleanscape Inc.
+
+The main package contains DUCTAPE utilities.
+
+%description -l pl.UTF-8
+Program Database Toolkit (PDT) to zestaw narzędzi dających dostęp dla
+narzędzi i aplikacji analizujących do interfejsu wysokiego poziomu
+kodu źródłowego. Obecnie zestaw składa się z analizatorów IL
+(Intermediate Language tj. języka pośredniego) dla C/C++ i Fortrana
+77/90/95 oraz biblioteki i aplikacji DUCTAPE (C++ program Database
+Utilities and Conversion Tools APplication Environment - środowiska
+aplikacji narzędzi do bazy danych i konwersji programów w C++).
+Najpierw frontend EDG C++ (lub Mutek Fortran 90) analizuje plik
+źródłowy i tworzy plik w języku pośrednim. Odpowiedni analizator IL
+przetwarza ten plik IL i tworzy plik "bazy danych programu" (PDB)
+zawierający interfejs wysokiego poziomu oryginalnych źródeł. Przy
+użyciu biblioteki DUCTAPE zawartość pliku PDB jest dostępna dla
+aplikacji. Dostępny jest także analizator Flint F95 firmy Cleanscape
+Inc.
+
+Główny pakiet zawiera narzędzia DUCTAPE.
+
+%package parser-c++
+Summary:	EDG C++ frontend and analyzer for PDToolkit
+Summary(pl.UTF-8):	Frontend i analizator EDG C++ dla PDFToolkitu
+License:	proprietary
+Group:		Development/Tools
+Requires:	%{name} = %{version}-%{release}
+
+%description parser-c++
+EDG C++ frontend and analyzer for PDToolkit.
+
+%description parser-c++ -l pl.UTF-8
+Frontend i analizator EDG C++ dla PDFToolkitu.
+
+%package parser-fortran
+Summary:	Fortran 90/95 frontends and analyzers for PDToolkit
+Summary(pl.UTF-8):	Frontendy i analizatory Fortrana 90/95 dla PDFToolkitu
+License:	proprietary
+Group:		Development/Tools
+Requires:	%{name} = %{version}-%{release}
+
+%description parser-fortran
+Mutek Fortran 90 and Cleanscape Flint F95 frontends and analyzers for
+PDToolkit.
+
+%description parser-fortran -l pl.UTF-8
+Frontend i analizator Mutek Fortran 90 oraz Flint F95 dla PDFToolkitu.
+
+%package parser-gfortran
+Summary:	GNU Fortran frontend for PDToolkit
+Summary(pl.UTF-8):	Frontend GNU Fortran dla PDFToolkitu
+License:	GPL v2+
+Group:		Development/Tools
+Requires:	%{name} = %{version}-%{release}
+
+%description parser-gfortran
+GNU Fortran frontend for PDToolkit.
+
+%description parser-gfortran -l pl.UTF-8
+Frontend GNU Fortran dla PDFToolkitu.
+
+%package devel
+Summary:	Header files and static DUCTAPE library
+Summary(pl.UTF-8):	Pliki nagłówkowe i statyczna biblioteka DUCTAPE
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+Header files and static DUCTAPE library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe i statyczna biblioteka DUCTAPE.
+
+%prep
+%setup -q
+
+%build
+install -d build/linux/bin
+path_gxx="%{__cxx}" \
+./configure \
+	-gnu \
+	-prefix=$(pwd)/build \
+	-useropt="%{rpmcflags}"
+%{__make} \
+	PDT_GXX="%{__cxx}"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{pdtroot}/etc,%{_bindir},%{_libdir},%{_includedir}}
+
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+cp -a build/linux/{bin,include,lib} $RPM_BUILD_ROOT%{pdtroot}
+cp -a build/etc/flint.* $RPM_BUILD_ROOT%{pdtroot}/etc
+ln -sf %{pdtroot}/libpdb.a $RPM_BUILD_ROOT%{_libdir}/libpdb.a
+ln -sf %{pdtroot}/include $RPM_BUILD_ROOT%{_includedir}/pdtoolkit
+
+for f in cparse cxxparse f90parse f95parse gfparse ; do
+	sed -i -e "s,^BINDIR=.*,BINDIR=%{pdtroot}/bin,;
+		   s,^PDTDIR=.*,PDTDIR=%{pdtroot}," $RPM_BUILD_ROOT%{pdtroot}/bin/$f
+done
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CREDITS LICENSE README
+%dir %{pdtroot}
+%dir %{pdtroot}/bin
+%attr(755,root,root) %{pdtroot}/bin/pdbcomment
+%attr(755,root,root) %{pdtroot}/bin/pdbconv
+%attr(755,root,root) %{pdtroot}/bin/pdbhtml
+%attr(755,root,root) %{pdtroot}/bin/pdbmerge
+%attr(755,root,root) %{pdtroot}/bin/pdbstmt
+%attr(755,root,root) %{pdtroot}/bin/pdbtree
+%attr(755,root,root) %{pdtroot}/bin/tau_instrumentor
+%attr(755,root,root) %{pdtroot}/bin/xmlgen
+%dir %{pdtroot}/etc
+%dir %{pdtroot}/include
+%{pdtroot}/include/kai
+
+%files parser-c++
+%defattr(644,root,root,755)
+%attr(755,root,root) %{pdtroot}/bin/cparse
+%attr(755,root,root) %{pdtroot}/bin/cxxparse
+%attr(755,root,root) %{pdtroot}/bin/edgcpfe
+%attr(755,root,root) %{pdtroot}/bin/taucpdisp
+
+%files parser-fortran
+%defattr(644,root,root,755)
+%attr(755,root,root) %{pdtroot}/bin/f90fe
+%attr(755,root,root) %{pdtroot}/bin/f90parse
+%attr(755,root,root) %{pdtroot}/bin/f95parse
+%attr(755,root,root) %{pdtroot}/bin/pdtf90disp
+%attr(755,root,root) %{pdtroot}/bin/pdtflint
+%{pdtroot}/etc/flint.cfg
+%{pdtroot}/etc/flint.err
+%{pdtroot}/etc/flint.hls
+
+%files parser-gfortran
+%defattr(644,root,root,755)
+%attr(755,root,root) %{pdtroot}/bin/gfparse
+%dir %{pdtroot}/bin/pdt_gfortran
+# TODO: build from pdt-gfortran tarball?
+%attr(755,root,root) %{pdtroot}/bin/pdt_gfortran/cc1
+%attr(755,root,root) %{pdtroot}/bin/pdt_gfortran/f951
+%attr(755,root,root) %{pdtroot}/bin/pdt_gfortran/gfortran
+
+%files devel
+%defattr(644,root,root,755)
+%{_libdir}/libpdb.a
+%{_includedir}/pdtoolkit
+%{pdtroot}/include/pdb*.h
+%{pdtroot}/include/pdb*.inl
+%{pdtroot}/lib
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2011/01/06 09:33:03  qboosh
+- new
+
================================================================


More information about the pld-cvs-commit mailing list