Projects
Eulaceura:Factory
gecode
_service:obs_scm:gecode.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:gecode.spec of Package gecode
## The RPM macro for the linker flags does not exist on EPEL %if 0%{?epel} < 7 %{!?__global_ldflags: %global __global_ldflags -Wl,-z,relro} %endif %global with_check 1 Name: gecode Version: 5.1.0 Release: 1 Summary: Generic constraint development environment License: MIT and BSL-1.0 URL: http://www.gecode.org/ Source0: http://www.gecode.org/download/%{name}-%{version}.tar.gz Patch0: gecode-4.0.0-no_examples.patch BuildRequires: automake BuildRequires: bison BuildRequires: boost-devel BuildRequires: flex >= 2.5.33 BuildRequires: gcc-c++ BuildRequires: graphviz BuildRequires: qt4-devel # for documentation BuildRequires: doxygen tex(latex) tex(dvips) %description Gecode is a toolkit for developing constraint-based systems and applications. Gecode provides a constraint solver with state-of-the-art performance while being modular and extensible. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %package doc Summary: Documentation for %{name} BuildArch: noarch %description doc The %{name}-doc package contains documentation files for %{name}. %package examples Summary: Example code for %{name} BuildArch: noarch %description examples The %{name}-examples package contains example code for %{name}. %prep %setup -q %patch0 -p1 -b .no_examples # Fix permissions find . -name '*.hh' -exec chmod 0644 '{}' \; find . -name '*.hpp' -exec chmod 0644 '{}' \; find . -name '*.cpp' -exec chmod 0644 '{}' \; chmod 0644 LICENSE misc/doxygen/*.png # Fix encoding pushd examples for file in bin-packing.cpp black-hole.cpp dominating-queens.cpp scowl.hpp word-square.cpp; do iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && \ touch -r $file $file.new && \ mv $file.new $file done popd # Remove default flags sed -e 's|-ggdb||g' -i configure gecode.m4 sed -e 's|-O3||g' -i configure gecode.m4 sed -e 's|-fvisibility=hidden||g' -i configure gecode.m4 %build autoreconf -ivf export CXXFLAGS="%{optflags}" export LDFLAGS="%{__global_ldflags} -fPIC" %configure \ --disable-examples \ --enable-float-vars \ --enable-leak-debug \ --with-boost-include=%{_includedir}/boost make %{?_smp_mflags} make doc make ChangeLog iconv --from=ISO-8859-1 --to=UTF-8 -o ChangeLog.new ChangeLog mv ChangeLog.new ChangeLog %install make install DESTDIR=$RPM_BUILD_ROOT %ldconfig_scriptlets %if 0%{?with_check} %check make test export LD_LIBRARY_PATH=$RPM_BUILD_ROOT%{_libdir}:%{_libdir} make check %endif %files %{!?_licensedir:%global license %doc} %doc ChangeLog %license LICENSE %{_libdir}/*.so.* %files devel %{_bindir}/fzn-gecode %{_bindir}/mzn-gecode %{_datadir}/%{name} %{_includedir}/%{name} %{_libdir}/*.so %files doc %{!?_licensedir:%global license %doc} %doc doc/html ChangeLog %license LICENSE %files examples %{!?_licensedir:%global license %doc} %doc examples/* %license LICENSE %changelog * Fri Mar 18 2022 tanyulong <tanyulong@kylinos.cn> - 5.1.0-1 - init package for openEuler
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2