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
%endif
%if 0%{?fedora_version}
BuildRequires:  perl-devel db4-devel
%endif
%if 0%{?suse_version}
%if 0%{?suse_version} < 1030
BuildRequires:  expat
%else
BuildRequires:  libexpat-devel
%endif
%if 0%{?suse_version} < 1100
BuildRequires:  graphviz
%endif
%else
BuildRequires:  expat-devel
%endif
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

%description
A new approach to package dependency solving

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

%build
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$CFLAGS"

CMAKE_FLAGS=
%if 0%{?fedora_version}
CMAKE_FLAGS="-DFEDORA=1"
%endif

pushd sat-solver
cmake   $CMAKE_FLAGS \
	-DMULTI_SEMANTICS=1 \
	-DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_SKIP_RPATH=1 
pushd src ; make ; popd
pushd ext ; make ; popd
popd
perl Makefile.PL
make

%install
make DESTDIR=$RPM_BUILD_ROOT install_vendor

#%perl_process_packlist
# 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 \
  %nil


%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{perl_vendorarch}/BSSolv.pm
%{perl_vendorarch}/auto/BSSolv
#Turbolinux: doesn't create /var/adm/perl-modules/* about some reason 
#/var/adm/perl-modules/*

%changelog
* 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