a406291
# TODO:
a406291
# fix jemboss and enable it
a406291
a406291
%define emhome %{_datadir}/EMBOSS
a406291
a406291
Name:           EMBOSS
a406291
Version:        6.1.0
8df943e
Release:        6%{?dist}
a406291
Summary:        The European Molecular Biology Open Software Suite
a406291
a406291
Group:          Applications/Engineering
a406291
License:        GPLv2+
a406291
URL:            http://emboss.sf.net/
a406291
Source0:        ftp://emboss.open-bio.org/pub/EMBOSS/%{name}-%{version}.tar.gz
a406291
Source1:        README.fixes
8df943e
Source2:        jemboss.desktop
a406291
#Upstream patch
8df943e
Patch0:         ftp://emboss.open-bio.org/pub/EMBOSS/fixes/patches/patch-1-3.gz
a406291
#Use system-wide pcre. Sent upstream.
a406291
Patch1:         %{name}-system-pcre.patch
a406291
#Fedora-specific. Not sent upstream.
a406291
Patch2:         %{name}-fedora.patch
8df943e
#Remove extra destdir. Sent upstream.
a406291
Patch3:         %{name}-6.1.0-destdir.patch
8df943e
#Patch ensuring jemboss rebuild backported from CVS
8df943e
Patch4:         %{name}-6.1.0-rebuild.patch
a406291
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
a406291
8df943e
BuildRequires:  ant
8df943e
BuildRequires:  desktop-file-utils
a406291
BuildRequires:  gd-devel
8df943e
BuildRequires:  java-devel >= 1:1.6.0
8df943e
BuildRequires:  jpackage-utils
a406291
BuildRequires:  pam-devel
a406291
BuildRequires:  pcre-devel
8df943e
BuildRequires:  axis jaf javamail jakarta-commons-discovery jakarta-commons-logging
8df943e
BuildRequires:  log4j regexp servlet xerces-j2 wsdl4j
a406291
a406291
%description
a406291
EMBOSS is a new, free Open Source software analysis package specially
a406291
developed for the needs of the molecular biology (e.g. EMBnet) user community.
a406291
The software automatically copes with data in a variety of formats and even
a406291
allows transparent retrieval of sequence data from the web. Also, as extensive
a406291
libraries are provided with the package, it is a platform to allow other
a406291
scientists to develop and release software in true open source spirit.
a406291
EMBOSS also integrates a range of currently available packages and tools for
a406291
sequence analysis into a seamless whole.
a406291
a406291
Reference for EMBOSS: Rice,P. Longden,I. and Bleasby,A.
a406291
"EMBOSS: The European Molecular Biology Open Software Suite"
a406291
Trends in Genetics June 2000, vol 16, No 6. pp.276-277
a406291
a406291
a406291
%package devel
a406291
Summary:        Development tools for programs which will use the %{name} library
a406291
Group:          Development/Libraries
a406291
Requires:       %{name}-libs = %{version}-%{release}
a406291
a406291
%description devel
a406291
The %{name}-devel package includes the header files and static libraries
a406291
necessary for developing programs which will use the %{name} library.
a406291
a406291
a406291
%package libs
a406291
Summary:        Shared libraries for %{name}
a406291
Group:          System Environment/Libraries
a406291
a406291
%description libs
a406291
The %{name}-libs package includes the dynamic libraries
a406291
necessary for %{name}.
a406291
a406291
8df943e
#%package -n jemboss
a406291
#Summary:        Java interface to %{name}
a406291
#Group:          Applications/Engineering
a406291
#Requires:       %{name} = %{version}-%{release}
8df943e
#Requires:       java >= 1:1.6.0
8df943e
#Requires:       jpackage-utils    
8df943e
#Requires:       axis jaf javamail jakarta-commons-discovery jakarta-commons-logging
8df943e
#Requires:       log4j regexp servlet xerces-j2 wsdl4j
a406291
8df943e
#%description -n jemboss
a406291
#Jemboss is a Java interface to EMBOSS, developed at
a406291
#the HGMP-RC and in close collaboration with the EMBOSS
a406291
#development team. It is distributed as part of the EMBOSS
a406291
#software.
a406291
a406291
#Documentation on Jemboss can be found at:
a406291
#http://www.hgmp.mrc.ac.uk/Software/EMBOSS/Jemboss/
a406291
a406291
a406291
%prep
a406291
%setup -q
a406291
%patch0 -p1
a406291
%patch1 -p1 -b .pcre
a406291
%patch2 -p0 -b .fedora
a406291
%patch3 -p0 -b .destdir
8df943e
%patch4 -p0 -b .jemboss-rebuild
a406291
a406291
#install the patch readme
a406291
install -pm 644 %{SOURCE1} README.fixes
a406291
a406291
#these files were executable for some reason
a406291
chmod 644 emboss/prettyplot.c emboss/polydot.c emboss/supermatcher.c
a406291
8df943e
#use newer log4j version
8df943e
sed -i "s@log4j-1.2.8@log4j-1.2.14@" \
8df943e
    jemboss/lib/axis/Makefile.am \
8df943e
    jemboss/lib/axis/Makefile.in \
8df943e
    jemboss/utils/makeFileManagerJNLP.sh \
8df943e
    jemboss/utils/makeJNLP.sh
8df943e
a406291
#use system java libraries
8df943e
rm jemboss/lib/{activation,client,jakarta-regexp-1.2,mail,xerces}.jar
8df943e
build-jar-repository -s -p jemboss/lib activation regexp javamail xerces-j2
8df943e
mv jemboss/lib/regexp.jar jemboss/lib/jakarta-regexp-1.2.jar
8df943e
mv jemboss/lib/javamail.jar jemboss/lib/mail.jar
8df943e
mv jemboss/lib/xerces-j2.jar jemboss/lib/xerces.jar
8df943e
rm jemboss/lib/axis/*.jar
8df943e
build-jar-repository -s -p jemboss/lib/axis axis/axis-ant axis/axis axis/jaxrpc axis/saaj commons-discovery commons-logging log4j-1.2.14 servlet wsdl4j
8df943e
for i in axis axis-ant jaxrpc saaj;
8df943e
do
8df943e
mv jemboss/lib/axis/axis_$i.jar jemboss/lib/axis/$i.jar;
8df943e
done
a406291
a406291
a406291
%build
a406291
%configure \
a406291
  --disable-static \
a406291
  --with-x \
a406291
  --with-auth \
a406291
  --with-thread \
a406291
  --includedir=%{_includedir}/EMBOSS \
a406291
%ifarch ppc64 sparc64 x86_64
a406291
  --enable-64 \
a406291
%endif
8df943e
  --with-java=/usr/lib/jvm/java/include \
8df943e
  --with-javaos=/usr/lib/jvm/java/include/linux \
8df943e
a406291
a406291
%{__make} %{?_smp_mflags}
a406291
a406291
a406291
%install
a406291
rm -rf $RPM_BUILD_ROOT
a406291
a406291
%{__make} install DESTDIR=$RPM_BUILD_ROOT
a406291
a406291
install -m 755 -d $RPM_BUILD_ROOT/%{_sysconfdir}/profile.d
a406291
cat << __EOF__ >> $RPM_BUILD_ROOT/%{_sysconfdir}/profile.d/emboss.sh
a406291
export PLPLOT_LIB=%{emhome}
a406291
export EMBOSS_ACDROOT=%{emhome}/acd
a406291
export EMBOSS_DOCROOT=%{emhome}/doc
a406291
export EMBOSS_DATABASE_DIR=%{emhome}/data
a406291
export EMBOSS_DATA=%{emhome}/data
a406291
__EOF__
a406291
a406291
cat << __EOF__ >> $RPM_BUILD_ROOT/%{_sysconfdir}/profile.d/emboss.csh
a406291
setenv PLPLOT_LIB %{emhome}
a406291
setenv EMBOSS_ACDROOT %{emhome}/acd
a406291
setenv EMBOSS_DOCROOT %{emhome}/doc
a406291
setenv EMBOSS_DATABASE_DIR %{emhome}/data
a406291
setenv EMBOSS_DATA %{emhome}/data
a406291
__EOF__
a406291
a406291
rm $RPM_BUILD_ROOT%{_libdir}/*.la
a406291
a406291
#this file has zero length, so kill it
a406291
rm $RPM_BUILD_ROOT%{_datadir}/EMBOSS/test/data/dna.aln
a406291
a406291
#fix executable permissions
a406291
pushd $RPM_BUILD_ROOT%{_datadir}/EMBOSS/jemboss/utils
a406291
chmod +x install-jemboss-server.sh keys.sh makeFileManagerJNLP.sh makeJar.csh \
a406291
     makeJNLP.sh
a406291
popd
a406291
pushd $RPM_BUILD_ROOT%{_datadir}/EMBOSS/jemboss/api
a406291
chmod +x getClasses.pl makeDocs.csh
a406291
popd
a406291
a406291
#rename conflicting binaries
a406291
mv $RPM_BUILD_ROOT%{_bindir}/chaos $RPM_BUILD_ROOT%{_bindir}/em_chaos
a406291
8df943e
#install the desktop file
8df943e
#desktop-file-install                                    \
8df943e
#--dir=${RPM_BUILD_ROOT}%{_datadir}/applications         \
8df943e
#%{SOURCE2}
8df943e
a406291
a406291
%clean
a406291
rm -rf $RPM_BUILD_ROOT
a406291
a406291
a406291
%post libs -p /sbin/ldconfig
a406291
a406291
a406291
%postun libs -p /sbin/ldconfig
a406291
a406291
a406291
%files
a406291
%defattr(-,root,root,-)
a406291
%doc AUTHORS ChangeLog COPYING FAQ INSTALL LICENSE NEWS README README.fixes THANKS
a406291
%{_bindir}/*
a406291
%exclude %{_bindir}/runJemboss.csh
a406291
%exclude %{_bindir}/jembossctl
a406291
%{_datadir}/EMBOSS
a406291
%exclude %{_datadir}/EMBOSS/jemboss
a406291
%config %{_sysconfdir}/profile.d/*
a406291
a406291
a406291
%files devel
a406291
%defattr(-,root,root,-)
a406291
%{_libdir}/*.so
a406291
%{_includedir}/EMBOSS
a406291
8df943e
a406291
%files libs
a406291
%defattr(-,root,root,-)
a406291
%{_libdir}/*.so.*
a406291
a406291
8df943e
#%files -n jemboss
a406291
#%defattr(-,root,root,-)
a406291
#%doc jemboss/README jemboss/resources jemboss/api
a406291
#%{_bindir}/runJemboss.csh
a406291
#%{_bindir}/jembossctl
8df943e
#%{_datadir}/applications/jemboss.desktop
a406291
#%{_datadir}/EMBOSS/jemboss
a406291
a406291
a406291
%changelog
8df943e
* Sun Dec 13 2009 Julian Sikorski <belegdol@fedoraproject.org> - 6.1.0-6
8df943e
- Added the upstream 1-3 patch
8df943e
- Fixed bogus Patch3 description
8df943e
- Jemboss is still disabled, but some improvements have been made
8df943e
  - Backported patch enabling jemboss rebuild from CVS
8df943e
  - Added ant and jpackage-utils to BuildRequires
8df943e
  - Made java-devel dependency versioned
8df943e
  - Switched to build-jar-repository to fill the dependencies
8df943e
  - Replaced versioned log4j calls with latest version
8df943e
  - Renamed EMBOSS-java to jemboss
8df943e
  - Added a desktop entry for jemboss from Debian
8df943e
a406291
* Sat Oct 17 2009 Julian Sikorski <belegdol@fedoraproject.org> - 6.1.0-5
a406291
- Added comments explaining the purpose of each patch
a406291
a406291
* Mon Oct 05 2009 Julian Sikorski <belegdol@fedoraproject.org> - 6.1.0-4
a406291
- Renamed conflicting binaries
a406291
- Disabled jemboss
a406291
a406291
* Tue Sep 29 2009 Julian Sikorski <belegdol@fedoraproject.org> - 6.1.0-3
a406291
- Re-enabled system pcre usage
a406291
- Initial attempt at using system-wide .jar files
a406291
a406291
* Tue Sep 22 2009 Julian Sikorski <belegdol@fedoraproject.org> - 6.1.0-2
a406291
- Added the upstream 1-2 patch
a406291
a406291
* Wed Jul 29 2009 Julian Sikorski <belegdol@fedoraproject.org> - 6.1.0-1
a406291
- Updated to 6.1.0
a406291
- Dropped pcre-devel from BuildRequires for the time being
a406291
- Ditto --with-java and --with-javaos
a406291
- Patched jemboss/Makefile.am not to include DESTDIR in runJemboss.sh
a406291
- Install the header files in EMBOSS subdir
a406291
- Added the missing executable bits
a406291
a406291
* Fri Jun 12 2009 Julian Sikorski <belegdol@fedoraproject.org> - 6.0.1-3
a406291
- Updated the upstream patch to 1-12
a406291
- Added the patch readme to %%doc
a406291
a406291
* Thu Apr 16 2009 Julian Sikorski <belegdol@fedoraproject.org> - 6.0.1-2
a406291
- Own %%{_datadir}/EMBOSS
a406291
- Don't use %%{name} macro in %%files
a406291
- Updated the upstream patch to 1-7
a406291
- Use dist instead of dist_tag
a406291
- Adjusted whitespaces
a406291
- Added pcre-devel to BuildRequires
a406291
- Fixed spurious executable permissions
a406291
- Removed the empty dna.aln file
a406291
- Patched jemboss.properties to include the paths this package uses
a406291
- Made the -java package require the main one
a406291
a406291
* Mon Sep 29 2008 Dominik Mierzejewski <rpm@greysector.net> 6.0.1-1
a406291
- updated to 6.0.1
a406291
- applied upstream patch 1-1
a406291
- patched to use system pcre
a406291
a406291
* Tue Jan 08 2008 Dominik Mierzejewski <rpm@greysector.net> 5.0.0-1
a406291
- Cleaned up BioRPMs' spec
a406291
- Updated to 5.0.0
a406291
a406291
* Thu Mar 17 2005 Bent Terp <Bent.Terp@biosci.ki.se>
a406291
- Upped to 2.10.0
a406291
a406291
* Fri Jul 16 2004 Bent Terp <Bent.Terp@biosci.ki.se>
a406291
- Had forgotten the emboss_database_dir env var
a406291
a406291
* Wed Feb 18 2004 Bent Terp <Bent.Terp@biosci.ki.se>
a406291
- Tried to make the building more dynamic. Added Requires and BuildRequires
a406291
a406291
* Thu Dec 04 2003 Luc Ducazu <luc@biolinux.org>
a406291
- Build for EMBOSS 2.8.0
a406291
- subpackage jemboss
a406291
a406291
* Wed Jun 11 2003 Luc Ducazu <luc@biolinux.org>
a406291
- Build for EMBOSS 2.7.1
a406291
a406291
* Tue Jan 28 2003 Luc Ducazu <luc@biolinux.org>
a406291
- Build for EMBOSS 2.6.0
a406291
- Programs moved to /usr/local/bin
a406291
- Adopted many ideas from Guillaume Rousse <g.rousse@linux-mandrake.com>
a406291
a406291
* Wed Nov 27 2002 Luc Ducazu <luc@biolinux.org>
a406291
- Initial build for EMBOSS 2.5.1