[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Hidden dependencies trying to create just a subversion client

From: Reil B <brennanrm_at_mail.nih.gov>
Date: Thu, 23 Apr 2009 11:28:01 -0400

I have been trying to create a standalone subversion client of 1.5.6.
I have the filter-requires.sh which should drop the requirement for
subversion-perl and I have stripped down the spec file to just get a
client build but the rpms still say

error: Failed dependencies:
        perl(SVN::Core) is needed by subversion-1.5.6-3.x86_64
        perl(SVN::Ra) is needed by subversion-1.5.6-3.x86_64
    Suggested resolutions:
        /var/spool/up2datesubversion-perl-1.1.4-2.ent.x86_64.rpm

Here is the spec file. I hope someone can find whats going wrong. I
can then do the install --nodeps and the files work but I just cant get
it to drop the dependency in the build.

more svnclient.spec
# set to zero to avoid running test suite
Summary: A Modern Concurrent Version Control System
Name: subversion
Version: 1.5.6
Release: 3
License: ASL 1.1
Group: Development/Tools
URL: http://subversion.tigris.org/
Source0:
http://subversion.tigris.org/tarballs/subversion-%{version}.tar.gz
Source1: filter-requires.sh
BuildRequires: autoconf, libtool, python, python-devel, texinfo, which
BuildRequires: db4-devel >= 4.1.25, gettext
BuildRequires: neon >= 0:0.28.2, cyrus-sasl-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u}
-n)
Provides: svn = %{version}-%{release}

%description
Subversion is a concurrent version control system which enables one
or more users to collaborate in developing and maintaining a
hierarchy of files and directories while keeping a history of all
changes. Subversion only stores the differences between versions,
instead of every complete file. Subversion is intended to be a
compelling replacement for CVS.

%package devel
Group: Development/Tools
Summary: Development package for the Subversion libraries
Requires: subversion = %{version}-%{release}, apr-devel, apr-util-devel

%description devel
The subversion-devel package includes the static libraries and
include files for developers interacting with the subversion
package.

%prep
%setup -q

%build
# Regenerate the buildsystem, so that:
# 1) patches applied to configure.in take effect
# 2) the swig bindings are regenerated using the system swig
#./autogen.sh --release

# fix shebang lines, #111498
perl -pi -e 's|/usr/bin/env perl -w|/usr/bin/perl -w|'
tools/hook-scripts/*.pl.in

export CC=gcc CXX=g++ JAVA_HOME=%{jdk_path}
%configure --without-berkeley-db \
        --without-apache \
        --without-swig \
        --without-serf \
        --enable-shared \
        --with-ssl \
        --with-expat=/usr/lib64 \
        --prefix=/usr/local \
        --with-neon=/usr/local/neon-0.28.3 \
        --disable-neon-version-check
make %{?_smp_mflags} all

%install
rm -rf ${RPM_BUILD_ROOT}
make install \
        DESTDIR=$RPM_BUILD_ROOT

install -m 755 -d ${RPM_BUILD_ROOT}%{_sysconfdir}/subversion

# Add subversion.conf configuration file into httpd/conf.d directory.
#install -m 755 -d ${RPM_BUILD_ROOT}%{_sysconfdir}/httpd/conf.d
#install -m 644 $RPM_SOURCE_DIR/subversion.conf
${RPM_BUILD_ROOT}%{_sysconfdir}/httpd/conf
.d

# Remove unpackaged files
rm -rf ${RPM_BUILD_ROOT}%{_includedir}/subversion-*/*.txt \
       ${RPM_BUILD_ROOT}%{python_sitearch}/*/*.{a,la}

# Trim what goes in docdir
rm -rf tools/*/*.in tools/test-scripts

# Rename authz_svn INSTALL doc for docdir
ln -f subversion/mod_authz_svn/INSTALL mod_authz_svn-INSTALL
cp /usr/local/lib/libiconv*
/var/tmp/subversion-1.5.6-3-root-root/usr/lib64/

# Trim exported dependencies to SVN and APR libraries only:
sed -i "/^dependency_libs/{
     s, -l[^ ']*, ,g;
     s,%{_libdir}/lib[^sa][^vp][^nr].*.la, ,g;
     }" $RPM_BUILD_ROOT%{_libdir}/*.la

%find_lang %{name}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files -f %{name}.lang
%defattr(-,root,root)
%doc BUGS COMMITTERS COPYING HACKING INSTALL README CHANGES
%doc tools subversion/LICENSE mod_authz_svn-INSTALL
%doc contrib/client-side/svn_load_dirs/{*.pl,*.example,*.README}
%doc contrib/client-side/svnmerge/*.{README,py}
%doc contrib/client-side/wcgrep
%{_bindir}/*
%{_libdir}/libsvn_*.so.*
%{_libdir}/pkgconfig/apr*
%{_libdir}/apr*
%{_libdir}/libapr*
%{_libdir}/libapr*
%{_libdir}/libiconv*
%{_datadir}/man/man1/svn*
%{_datadir}/man/man5/svn*
%{_datadir}/man/man8/svn*
%{_datadir}/build-1/*
%{_includedir}/apr*
%{_includedir}/apu*
%dir %{_sysconfdir}/subversion

%files devel
%defattr(-,root,root)
%{_includedir}/subversion-1
%{_includedir}/apr*
%{_includedir}/apu*
%{_libdir}/libsvn*.*a
%{_libdir}/libsvn*.so
%{_libdir}/pkgconfig/apr*
%{_libdir}/apr*
%{_libdir}/libapr*

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1879312

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-04-23 17:32:35 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.