Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:hpcoder1
ecolab
ecolab.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ecolab.spec of Package ecolab
# # spec file for package ecolab-devel # # Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # See also http://en.opensuse.org/openSUSE:Shared_library_packaging_policy Name: ecolab Version: 5.77 # note ticket #146 should address the nbeed for a differen soversion to version %global soversion %{version} Release: 0 Summary: C++ Agent Based Modelling Framework License: MIT Group: Development/Libraries/C and C++ Url: http://ecolab.sourceforge.net Source0: ecolab-%{version}.tar.gz BuildRequires: tcl-devel tk-devel gcc-c++ cairo-devel zlib-devel readline-devel pango-devel ctags %global solib libecolab.so.%soversion # needed for openSUSE's SONAME policy %global libname libecolab%( echo %soversion|tr . _) # required to exclude libXScrnSaver-devel on ppc64 %ifarch i586 || x86_64 || aarch64 BuildRequires: libXScrnSaver-devel %endif # bdb is used to indicate the presence of Berkley DB in the distro %define bdb BDB= ## use % dump or (eg % {echo:stuff = 0% {rhel}}) to see predefined macros #%dump #%{echo:stuff = %{?rhel}%{!?rhel:7}} %if "%{_vendor}"=="suse" BuildRequires: libdb-4_8-devel gsl-devel %define bdb BDB=1 %ifarch ppc64 || ppc64le || armv7l BuildRequires: libXss-devel %endif %endif %if "%{_vendor}"=="redhat" # the following means if centos exists and is less than 7 %if %{?centos}%{!?centos:7}<7 BuildRequires: db4-devel gsl-devel %define bdb BDB=1 %else # on RHEL<7, BDB is too old, so disable it %if %{?rhel}%{!?rhel:7} < 7 %define bdb BDB= %else %define bdb BDB=1 BuildRequires: libdb-devel gsl-devel %endif %endif %endif Requires: tcl %global ecolab_home /usr/lib/ecolab %description The %{name} package contains a bare ecolab interpreter plus TCL scripts. %package -n %libname Summary: C++ Agent Based Modelling Framework Group: Development/Libraries/C and C++ %description -n %libname The %libname package contains the dynamic libraries for the EcoLab framework %package devel Summary: C++ Agent Based Modelling Framework Requires: ecolab = %{version} Group: Development/Libraries/C and C++ %description devel The %{name} package contains libraries and header files for developing applications that use %{name}. %prep %setup -n ecolab-%{version} %build # bizarrely needed to pick up the correct versions of the dynamic libraries export LD_LIBRARY_PATH=%{_libdir}:$LD_LIBRARY_PATH echo cairo libs `ldd /usr/lib64/libcairo.so` # work around a bodgy libXss devel package on ARM if [ -f /usr/lib/libXss.so.1 ]; then mkdir -p ~/usr/lib ln -sf /usr/lib/libXss.so.1 ~/usr/lib/libXss.so fi make GCC=1 %{?_smp_mflags} PREFIX=%{ecolab_home} DYNAMIC=1 %{bdb} %install # install target in Makefile doesn't quite work, so recreate what we need here mkdir -p %{buildroot}/%{ecolab_home} for d in include bin lib; do cp -r $d %{buildroot}/%{ecolab_home} done touch %{buildroot}/%{ecolab_home}/include/*.cd mkdir -p %{buildroot}/%{_bindir} mv %{buildroot}/%{ecolab_home}/bin/ecolab %{buildroot}/%{_bindir} ldd %{buildroot}/%{_bindir}/ecolab mkdir -p %{buildroot}/%{_libdir} mv %{buildroot}/%{ecolab_home}/lib/%solib %{buildroot}/%{_libdir} ln -sf %{_libdir}/%solib %{buildroot}/%{ecolab_home}/lib/libecolab.so find %{buildroot} -name '*.la' -exec rm -f {} ';' mkdir -p %{buildroot}/%{_mandir}/man1/ cp doc/ecolab.1 %{buildroot}/%{_mandir}/man1/ %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr (-,root,root) %{_bindir}/ecolab %dir %{ecolab_home} %dir %{ecolab_home}/include %{ecolab_home}/include/*.tcl %dir %{ecolab_home}/include/Xecolab %{ecolab_home}/include/Xecolab/* %{_mandir}/man1/* %files -n %libname %defattr (-,root,root) %{_libdir}/%solib %files devel %defattr (-,root,root) %dir %{ecolab_home}/lib %dir %{ecolab_home}/bin %{ecolab_home}/include/Makefile* %{ecolab_home}/include/*.h %{ecolab_home}/include/*.cd %{ecolab_home}/include/vmap %{ecolab_home}/include/hmap %{ecolab_home}/lib/* %{ecolab_home}/bin/* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor