LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File perl-BSSolv.spec of Package perl-BSSolv (Project home:ylinux:OBS)

Name:           perl-BSSolv
Version:        0.1
Release:        6.6
License:        BSD 3-Clause
Url:            git://git.opensuse.org/projects/zypp/sat-solver.git
Source:         %(cd %_sourcedir; echo satsolver-*.tar*)
Source1:        Makefile.PL
Source2:        BSSolv.pm
Source3:        BSSolv.xs
Source4:        typemap
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Group:          Development/Libraries/C and C++

Patch0:         sqort_r.patch

BuildRequires:  doxygen
%if 0%{?mandriva_version}
# force this version on mandriva
BuildRequires:  libneon0.26-devel
%if 0%{?fedora_version}
BuildRequires:  perl-devel db4-devel
%if 0%{?suse_version}
%if 0%{?suse_version} < 1030
BuildRequires:  expat
BuildRequires:  libexpat-devel
%if 0%{?suse_version} < 1100
BuildRequires:  graphviz
BuildRequires:  expat-devel
BuildRequires:  cmake rpm-devel gcc-c++ ruby-devel swig perl python-devel
BuildRequires:  zlib-devel
# the testsuite uses the check framework
BuildRequires:  check-devel
Summary:        A new approach to package dependency solving

A new approach to package dependency solving

%setup -c
%patch0 -p0
ln -s satsolver-* sat-solver
cp %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} .


%if 0%{?fedora_version}

pushd sat-solver
cmake   $CMAKE_FLAGS \
pushd src ; make ; popd
pushd ext ; make ; popd
perl Makefile.PL

make DESTDIR=$RPM_BUILD_ROOT install_vendor

# Turbolinux
mkdir -p $RPM_BUILD_ROOT/var/adm/perl-modules \
test -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod && { sed -e "s@$RPM_BUILD_ROOT@@g" < $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod > $RPM_BUILD_ROOT/var/adm/perl-modules/%{-n:%{-n*}}%{!-n:%{name}} ; } ; \
  test -n "$RPM_BUILD_ROOT" -a -d $RPM_BUILD_ROOT/%perl_sitearch/auto && find $RPM_BUILD_ROOT/%perl_sitearch/auto -name .packlist -print0 | xargs -0 -r perl -spi -e "s@$RPM_BUILD_ROOT@@g" ; \
  test -n "$RPM_BUILD_ROOT" -a -d $RPM_BUILD_ROOT/%perl_vendorarch/auto && find $RPM_BUILD_ROOT/%perl_vendorarch/auto -name .packlist -print0 | xargs -0 -r perl -spi -e "s@$RPM_BUILD_ROOT@@g" ; \
  rm -f $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod \


#Turbolinux: doesn't create /var/adm/perl-modules/* about some reason 

* Tue Jan 26 2010 Jian Lee <jian.li@turbolinux.com.cn>
- Replaced the %perl_process_packlist with suse scripts
- Does not package /var/adm/perl-modules/*
* Mon Dec 21 2009 mls@suse.de
- add dod changes
- fix bug in debian dep parsing
- add support for whatprovides/whatrequires
* Fri Oct 23 2009 mls@suse.de
- strip trailing spaces in dep2id
* Wed Oct 21 2009 mls@suse.de
- add pkg2sizek
* Wed Oct  7 2009 mls@suse.de
- update BSSolv.xs
* Tue Oct  6 2009 mls@suse.de
- initial version