%define name ncbi %define major 6 %define minor 1 %define version %{major}.%{minor} %define release 2mdk %define libname %mklibname %{name} %{major} Name: %{name} Version: %{version} Release: %{release} Summary: NCBI software development toolkit Group: Sciences/Biology License: Public Domain URL: http://www.ncbi.nlm.nih.gov Source0: %{name}.tar.bz2 Source1: %{name}-man.tar.bz2 Source2: %{name}.make.bz2 Source3: %{name}.vibrate.bz2 Patch0: %{name}.build.patch.bz2 Patch1: %{name}.dblocation.patch.bz2 BuildRequires: XFree86-devel BuildRequires: lesstif-devel BuildRoot: %{_tmppath}/%{name}-buildroot %description NCBI SOFTWARE DEVELOPMENT TOOLKIT National Center for Biotechnology Information Bldg 38A, NIH 8600 Rockville Pike Bethesda, MD 20894 The NCBI Software Development Toolkit was developed for the production and distribution of GenBank, Entrez, BLAST, and related services by NCBI. We make it freely available to the public without restriction to facilitate the use of NCBI by the scientific community. However, please understand that while we feel we have done a high quality job, this is not commercial software. The documentation lags considerably behind the software and we must make any changes required by our data production needs. Nontheless, many people have found it a useful and stable basis for a number of tools and applications. %package blast Summary: Basic Local Alignment Search Tool Requires: %{libname} = %{version}-%{release} Group: Sciences/Biology %description blast The famous sequence alignment program. This is "official" NCBI version, #2. The blastall executable allows you to give a nucleotide or protein sequence to the program. It is compared against databases and a summary of matches is returned to the user. %package tools-bin Summary: NCBI text-based utilities Requires: %{libname} = %{version}-%{release} Group: Sciences/Biology %description tools-bin his package includes various utilities distributed with the NCBI C SDK. None of the programs in this package require X; you can find the X-based utilities in the ncbi-tools-x11 package. BLAST and related tools are in a separate package (ncbi-blast). %package tools-x11 Summary: NCBI X-based utilities Requires: %{libname} = %{version}-%{release} Group: Sciences/Biology %description tools-x11 This package includes some X-based utilities distributed with the NCBI C SDK: Cn3D, Network Entrez, Sequin, ddv, and udv. These programs are not part of ncbi-tools-bin because they depend on several additional library packages. %package -n %{libname} Summary: Shared library for %{name} Group: System/Libraries Provides: %{name} = %{version}-%{release} %description -n %{libname} This package provides shared library for %{name}. %package -n %{libname}-devel Summary: Development headers and libraries for %{name} Group: Development/C Requires: %{libname} = %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} %description -n %{libname}-devel This package contains the symlinks, headers and object files needed to compile and link programs which use %{name}. %prep %setup -q -n ncbi %setup -q -n ncbi -T -D -a 1 bzcat %{SOURCE2} > Makefile bzcat %{SOURCE3} > vibrate %patch0 -p1 %patch1 %build make \ NCBI_VERSION=%{version} \ NCBI_VERSION_MAJOR=%{major} \ NCBI_VERSION_MINOR=%{minor} %install rm -rf $RPM_BUILD_ROOT %makeinstall \ NCBI_VERSION=%{version} \ NCBI_VERSION_MAJOR=%{major} \ NCBI_VERSION_MINOR=%{minor} install -m 755 vibrate $RPM_BUILD_ROOT%{_bindir} %clean rm -rf $RPM_BUILD_ROOT %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig %files blast %defattr(-,root,root) %{_bindir}/bl2seq %{_bindir}/blastall %{_bindir}/blastcl3 %{_bindir}/blastclust %{_bindir}/blastpgp %{_bindir}/copymat %{_bindir}/fastacmd %{_bindir}/formatdb %{_bindir}/impala %{_bindir}/makemat %{_bindir}/megablast %{_bindir}/rpsblast %{_bindir}/seedtop %{_mandir}/man1/bl2seq.1* %{_mandir}/man1/blast.1* %{_mandir}/man1/blastall.1* %{_mandir}/man1/blastcl3.1* %{_mandir}/man1/blastclust.1* %{_mandir}/man1/blastpgp.1* %{_mandir}/man1/copymat.1* %{_mandir}/man1/fastacmd.1* %{_mandir}/man1/formatdb.1* %{_mandir}/man1/impala.1* %{_mandir}/man1/makemat.1* %{_mandir}/man1/megablast.1* %{_mandir}/man1/rpsblast.1* %{_mandir}/man1/seedtop.1* %{_datadir}/%{name} %files tools-bin %defattr(-,root,root) %{_bindir}/asn2asn %{_bindir}/asn2ff %{_bindir}/asn2xml %{_bindir}/asndhuff %{_bindir}/cdscan %{_bindir}/checksub %{_bindir}/entrcmd %{_bindir}/fa2htgs %{_bindir}/findspl %{_bindir}/fmerge %{_bindir}/getfeat %{_bindir}/getmesh %{_bindir}/getpub %{_bindir}/getseq %{_bindir}/gil2bin %{_bindir}/idfetch %{_bindir}/indexpub %{_bindir}/makeset %{_bindir}/tbl2asn %{_bindir}/vecscreen %{_bindir}/vibrate %{_mandir}/man1/asn2asn.1* %{_mandir}/man1/asn2ff.1* %{_mandir}/man1/asn2xml.1* %{_mandir}/man1/asndhuff.1* %{_mandir}/man1/cdscan.1* %{_mandir}/man1/checksub.1* %{_mandir}/man1/entrcmd.1* %{_mandir}/man1/fa2htgs.1* %{_mandir}/man1/findspl.1* %{_mandir}/man1/fmerge.1* %{_mandir}/man1/getfeat.1* %{_mandir}/man1/getmesh.1* %{_mandir}/man1/getpub.1* %{_mandir}/man1/getseq.1* %{_mandir}/man1/gil2bin.1* %{_mandir}/man1/idfetch.1* %{_mandir}/man1/indexpub.1* %{_mandir}/man1/makeset.1* %{_mandir}/man1/tbl2asn.1* %{_mandir}/man1/vecscreen.1* %{_mandir}/man1/vibrate.1* %files tools-x11 %defattr(-,root,root) %doc doc/* %{_bindir}/Cn3D %{_bindir}/Nentrez %{_bindir}/Psequin %{_bindir}/ddv %{_bindir}/netentcf %{_bindir}/udv %{_mandir}/man1/Cn3D.1* %{_mandir}/man1/Nentrez.1* %{_mandir}/man1/Psequin.1* %{_mandir}/man1/ddv.1* %{_mandir}/man1/netentcf.1* %{_mandir}/man1/udv.1* %files -n %{libname} %defattr(-,root,root) %{_libdir}/*.so.* %files -n %{libname}-devel %defattr(-,root,root) %{_bindir}/asntool %{_bindir}/errhdr %{_libdir}/*.so %{_libdir}/*.a %{_includedir}/ncbi %{_mandir}/man1/asntool.1* %{_mandir}/man1/errhdr.1* %changelog * Fri Jul 09 2004 Guillaume Rousse <guillomovitch@mandrake.org> 6.1-2mdk - rebuild to get rid of QA rants * Wed Jun 09 2004 Guillaume Rousse <guillomovitch@mandrake.org> 6.1-1mdk - used real version - stolen debian build makefile - stolen debian man pages - stolen debian subpackage distribution - stolen debian library preloader - yeah, debian rulez * Fri Feb 28 2003 Guillaume Rousse <g.rousse@linux-mandrake.com> 2.2.5-1mdk - first release