|
|
e4aad30 |
%if 0%{?epel} < 7
|
|
|
e4aad30 |
%{!?__global_ldflags: %global __global_ldflags -Wl,-z,relro}
|
|
|
e4aad30 |
%endif
|
|
|
e4aad30 |
|
|
|
298cb19 |
Name: wise2
|
|
|
e4aad30 |
Version: 2.4.1
|
|
|
4bc0e0b |
Release: 11%{?dist}
|
|
|
e4aad30 |
Summary: Tools for comparison of bio-polymers
|
|
|
298cb19 |
|
|
|
ef1cc37 |
## Everything is licensed under a BSD-style license except for
|
|
|
ef1cc37 |
## the HMMer2 libraries and models directory which are GPLv2+
|
|
|
ef1cc37 |
## see LICENSE files for details.
|
|
|
ef1cc37 |
License: BSD and GPLv2+
|
|
|
e4aad30 |
URL: http://www.ebi.ac.uk/~birney/%{name}/
|
|
|
e4aad30 |
Source0: http://www.ebi.ac.uk/~birney/%{name}/wise%{version}.tar.gz
|
|
|
e4aad30 |
|
|
|
e4aad30 |
## Patches from Debian package. Thanks to Philipp Benner
|
|
|
e4aad30 |
Patch0: %{name}-build.patch
|
|
|
e4aad30 |
Patch1: %{name}-isnumber.patch
|
|
|
e4aad30 |
Patch2: %{name}-glib2.patch
|
|
|
e4aad30 |
Patch3: %{name}-getline.patch
|
|
|
e4aad30 |
Patch4: %{name}-ld--as-needed.patch
|
|
|
e4aad30 |
Patch5: %{name}-mayhem.patch
|
|
|
e4aad30 |
|
|
|
d3bc51e |
BuildRequires: glib2-devel, gcc, perl
|
|
|
e4aad30 |
BuildRequires: strace
|
|
|
e4aad30 |
BuildRequires: pkgconfig
|
|
|
298cb19 |
|
|
|
298cb19 |
%description
|
|
|
e4aad30 |
Wise2 is a package focused on comparisons of bio-polymers, commonly DNA
|
|
|
298cb19 |
sequence and protein sequence. A strength of Wise2 is the
|
|
|
298cb19 |
comparison of DNA sequence at the level of its protein
|
|
|
298cb19 |
translation. This comparison allows the simultaneous prediction of
|
|
|
298cb19 |
gene structure with homology based alignment.
|
|
|
298cb19 |
|
|
|
e4aad30 |
%package doc
|
|
|
e4aad30 |
Summary: Wise2 documentation
|
|
|
e4aad30 |
BuildArch: noarch
|
|
|
e4aad30 |
%description doc
|
|
|
e4aad30 |
Wise2, Wise2api and Dynamite documentation files.
|
|
|
e4aad30 |
|
|
|
e4aad30 |
%package examples
|
|
|
e4aad30 |
Summary: Wise2 examples
|
|
|
e4aad30 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
e4aad30 |
%description examples
|
|
|
e4aad30 |
Here are some examples that you might want to try out. The
|
|
|
e4aad30 |
Wise2 executables of course should be installed before.
|
|
|
e4aad30 |
|
|
|
298cb19 |
%prep
|
|
|
298cb19 |
%setup -q -n wise%{version}
|
|
|
e4aad30 |
%patch0 -p1
|
|
|
e4aad30 |
%patch1 -p1
|
|
|
e4aad30 |
%patch2 -p1
|
|
|
e4aad30 |
%patch3 -p1
|
|
|
e4aad30 |
%patch4 -p1
|
|
|
e4aad30 |
|
|
|
e4aad30 |
# Remove spurious-executable-perm
|
|
|
e4aad30 |
chmod a-x src/external/mott/mott_api.c
|
|
|
e4aad30 |
chmod a-x src/external/mott/mott_api.h
|
|
|
e4aad30 |
chmod a-x src/external/mott/gaplib.c
|
|
|
e4aad30 |
chmod a-x src/external/mott/gapstat.h
|
|
|
298cb19 |
|
|
|
298cb19 |
## fix interpreter in examples
|
|
|
298cb19 |
sed -i 's#/usr/local/bin/perl#/usr/bin/perl#' docs/gettex.pl
|
|
|
298cb19 |
## fix perms
|
|
|
298cb19 |
chmod -x test_data/rrm.HMM
|
|
|
298cb19 |
|
|
|
298cb19 |
## pull out licenses
|
|
|
298cb19 |
for i in base dynlibsrc dyc
|
|
|
298cb19 |
do
|
|
|
298cb19 |
cp src/$i/LICENSE LICENSE.$i
|
|
|
298cb19 |
done
|
|
|
298cb19 |
cp src/models/GNULICENSE LICENSE.GPL
|
|
|
298cb19 |
|
|
|
298cb19 |
%build
|
|
|
298cb19 |
## removed "{?_smp_mflags}", does not support parallel build
|
|
|
e4aad30 |
export LDFLAGS="%{__global_ldflags}"
|
|
|
e4aad30 |
make -C src CC=gcc \
|
|
|
e4aad30 |
CFLAGS=" -c $RPM_OPT_FLAGS -pthread -D_GNU_SOURCE %(pkg-config --cflags glib-2.0) -D_POSIX_C_SOURCE=200112L" all
|
|
|
298cb19 |
|
|
|
298cb19 |
%install
|
|
|
e4aad30 |
pushd src/bin
|
|
|
e4aad30 |
mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
|
|
e4aad30 |
for i in dba dnal estwise estwisedb genewise genewisedb promoterwise scanwise scanwise_server psw pswdb
|
|
|
298cb19 |
do
|
|
|
e4aad30 |
install -pm 755 $i $RPM_BUILD_ROOT%{_bindir}
|
|
|
298cb19 |
done
|
|
|
e4aad30 |
popd
|
|
|
e4aad30 |
|
|
|
298cb19 |
# install architecture-independent data and config files
|
|
|
e4aad30 |
mkdir -p $RPM_BUILD_ROOT%{_datadir}/wise2
|
|
|
e4aad30 |
pushd wisecfg
|
|
|
e4aad30 |
install -pm 644 * $RPM_BUILD_ROOT%{_datadir}/wise2
|
|
|
e4aad30 |
popd
|
|
|
e4aad30 |
|
|
|
e4aad30 |
# install architecture-independent files to run example tests
|
|
|
e4aad30 |
mkdir -p $RPM_BUILD_ROOT%{_datadir}/wise2/examples
|
|
|
e4aad30 |
pushd test_data
|
|
|
e4aad30 |
install -pm 644 * $RPM_BUILD_ROOT%{_datadir}/wise2/examples
|
|
|
e4aad30 |
popd
|
|
|
298cb19 |
|
|
|
298cb19 |
# install scripts to automatically set the WISECONFIGDIR environment variable
|
|
|
e4aad30 |
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
|
|
|
298cb19 |
echo "export WISECONFIGDIR=%{_datadir}/wise2/" > $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/wise2.sh
|
|
|
298cb19 |
echo "setenv WISECONFIGDIR %{_datadir}/wise2/" > $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/wise2.csh
|
|
|
298cb19 |
|
|
|
e4aad30 |
%check
|
|
|
e4aad30 |
export WISECONFIGDIR=$PWD/wisecfg
|
|
|
e4aad30 |
make -C src test
|
|
|
298cb19 |
|
|
|
298cb19 |
%files
|
|
|
e4aad30 |
%doc README
|
|
|
e4aad30 |
%license LICENSE LICENSE.base LICENSE.dynlibsrc LICENSE.dyc LICENSE.GPL
|
|
|
e4aad30 |
%{_bindir}/genewisedb
|
|
|
e4aad30 |
%{_bindir}/estwisedb
|
|
|
e4aad30 |
%{_bindir}/genewise
|
|
|
e4aad30 |
%{_bindir}/estwise
|
|
|
e4aad30 |
%{_bindir}/scanwise
|
|
|
e4aad30 |
%{_bindir}/promoterwise
|
|
|
e4aad30 |
%{_bindir}/pswdb
|
|
|
e4aad30 |
%{_bindir}/dba
|
|
|
e4aad30 |
%{_bindir}/psw
|
|
|
e4aad30 |
%{_bindir}/scanwise_server
|
|
|
e4aad30 |
%{_bindir}/dnal
|
|
|
e4aad30 |
%{_datadir}/wise2/
|
|
|
298cb19 |
%config(noreplace) %{_sysconfdir}/profile.d/*
|
|
|
298cb19 |
|
|
|
e4aad30 |
%files doc
|
|
|
e4aad30 |
%license LICENSE
|
|
|
e4aad30 |
%doc docs
|
|
|
1100d51 |
|
|
|
e4aad30 |
%files examples
|
|
|
e4aad30 |
%doc test_data/README
|
|
|
e4aad30 |
%{_datadir}/wise2/examples/
|
|
|
25e0ac3 |
|
|
|
e4aad30 |
%changelog
|
|
|
4bc0e0b |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.1-11
|
|
|
4bc0e0b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
4bc0e0b |
|
|
|
dd60554 |
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.1-10
|
|
|
dd60554 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
dd60554 |
|
|
|
029ec6f |
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.1-9
|
|
|
029ec6f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
029ec6f |
|
|
|
383d887 |
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.1-8
|
|
|
383d887 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
383d887 |
|
|
|
384da2a |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.1-7
|
|
|
384da2a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
384da2a |
|
|
|
d3bc51e |
* Thu Feb 22 2018 Antonio Trande <sagitter@fedoraproject.org> - 2.4.1-6
|
|
|
d3bc51e |
- Add gcc perl BR
|
|
|
d3bc51e |
|
|
|
06a40b0 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.1-5
|
|
|
06a40b0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
06a40b0 |
|
|
|
d9b70c2 |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.1-4
|
|
|
d9b70c2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
d9b70c2 |
|
|
|
d4bc195 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.1-3
|
|
|
d4bc195 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
d4bc195 |
|
|
|
e4d46ef |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.1-2
|
|
|
e4d46ef |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
e4d46ef |
|
|
|
e4aad30 |
* Tue May 05 2015 Antonio Trande <sagitterATfedoraproject.org> - 2.4.1-1
|
|
|
e4aad30 |
- Update to 2.4.1
|
|
|
e4aad30 |
- Fix compiler flags
|
|
|
e3292c4 |
|
|
|
46bb27f |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.0-12
|
|
|
46bb27f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
46bb27f |
|
|
|
21dde59 |
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.0-11
|
|
|
21dde59 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
21dde59 |
|
|
|
1aa792a |
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.0-10
|
|
|
1aa792a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
1aa792a |
|
|
|
412b38f |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.0-9
|
|
|
412b38f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
412b38f |
|
|
|
1b9cb37 |
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.0-8
|
|
|
1b9cb37 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
1b9cb37 |
|
|
|
7dce039 |
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.0-7
|
|
|
7dce039 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
7dce039 |
|
|
|
ded913f |
* Thu Jul 16 2009 Alex Lancaster <alexlan[AT]fedoraproject org> - 2.2.0-6
|
|
|
ded913f |
- Add -D_POSIX_C_SOURCE=200112L to CFLAGS as a workaround to fix FTBFS (#511627)
|
|
|
ded913f |
|
|
|
434bab1 |
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.0-5
|
|
|
434bab1 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
434bab1 |
|
|
|
88f172e |
* Sat Feb 9 2008 Alex Lancaster <alexlan[AT]fedoraproject org> - 2.2.0-4
|
|
|
88f172e |
- rebuilt for GCC 4.3 as requested by Fedora Release Engineering
|
|
|
88f172e |
|
|
|
ef1cc37 |
* Thu Aug 16 2007 Alex Lancaster <alexl@users.sourceforge.net> 2.2.0-3
|
|
|
ef1cc37 |
- Clarify license as BSD and GPLv2+
|
|
|
ef1cc37 |
|
|
|
e4aad30 |
* Thu Apr 12 2007 Alex Lancaster <alexl@users.sourceforge.net> 2.2.0-2
|
|
|
298cb19 |
- Pass $RPM_OPT_FLAGS to compiler as per suggestion from Ralf Corsepius.
|
|
|
298cb19 |
|
|
|
e4aad30 |
* Wed Apr 11 2007 Alex Lancaster <alexl@users.sourceforge.net> 2.2.0-1
|
|
|
298cb19 |
- Initial Fedora package.
|