145 lines
4.1 KiB
RPMSpec
145 lines
4.1 KiB
RPMSpec
Summary: Integer point manipulation library
|
|
Name: isl
|
|
Version: 0.16.1
|
|
License: MIT
|
|
URL: http://isl.gforge.inria.fr/
|
|
|
|
%global libmajor 15
|
|
%global libversion %{libmajor}.1.1
|
|
|
|
%global oldversion 0.14
|
|
%global oldlibmajor 13
|
|
%global oldlibversion %{oldlibmajor}.1.0
|
|
|
|
# Please set buildid below when building a private version of this rpm to
|
|
# differentiate it from the stock rpm.
|
|
#
|
|
# % global buildid .local
|
|
|
|
Release: 12%{?buildid}
|
|
|
|
BuildRequires: gcc
|
|
BuildRequires: gmp-devel
|
|
BuildRequires: pkgconfig
|
|
Provides: isl = %{oldversion}
|
|
|
|
Source0: http://isl.gforge.inria.fr/isl-%{version}.tar.xz
|
|
|
|
# Current gcc requires exactly 0.14
|
|
Source1: http://isl.gforge.inria.fr/isl-%{oldversion}.tar.xz
|
|
|
|
# update python2 src file to python3
|
|
Patch0: python3.patch
|
|
|
|
%description
|
|
isl is a library for manipulating sets and relations of integer points
|
|
bounded by linear constraints. Supported operations on sets include
|
|
intersection, union, set difference, emptiness check, convex hull,
|
|
(integer) affine hull, integer projection, computing the lexicographic
|
|
minimum using parametric integer programming, coalescing and parametric
|
|
vertex enumeration. It also includes an ILP solver based on generalized
|
|
basis reduction, transitive closures on maps (which may encode infinite
|
|
graphs), dependence analysis and bounds on piecewise step-polynomials.
|
|
|
|
%package static
|
|
Summary: static library for Integer point manipulation library
|
|
Requires: isl%{?_isa} == %{version}-%{release}
|
|
Requires: gmp-devel%{?_isa}
|
|
|
|
%description static
|
|
isl is a library for manipulating sets and relations of integer points
|
|
bounded by linear constraints. Supported operations on sets include
|
|
intersection, union, set difference, emptiness check, convex hull,
|
|
(integer) affine hull, integer projection, computing the lexicographic
|
|
minimum using parametric integer programming, coalescing and parametric
|
|
vertex enumeration. It also includes an ILP solver based on generalized
|
|
basis reduction, transitive closures on maps (which may encode infinite
|
|
graphs), dependence analysis and bounds on piecewise step-polynomials.
|
|
|
|
%package devel
|
|
Summary: Development for building integer point manipulation library
|
|
Requires: isl%{?_isa} == %{version}-%{release}
|
|
Requires: gmp-devel%{?_isa}
|
|
|
|
%description devel
|
|
isl is a library for manipulating sets and relations of integer points
|
|
bounded by linear constraints. Supported operations on sets include
|
|
intersection, union, set difference, emptiness check, convex hull,
|
|
(integer) affine hull, integer projection, computing the lexicographic
|
|
minimum using parametric integer programming, coalescing and parametric
|
|
vertex enumeration. It also includes an ILP solver based on generalized
|
|
basis reduction, transitive closures on maps (which may encode infinite
|
|
graphs), dependence analysis and bounds on piecewise step-polynomials.
|
|
|
|
%prep
|
|
%global docdir isl-%{version}
|
|
%setup -a 1 -q -n isl -c
|
|
%patch0 -p1
|
|
|
|
%build
|
|
cd isl-%{oldversion}
|
|
%configure
|
|
make %{?_smp_mflags} V=1
|
|
cd ..
|
|
|
|
cd isl-%{version}
|
|
%configure
|
|
make %{?_smp_mflags} V=1
|
|
|
|
%install
|
|
cd isl-%{oldversion}
|
|
%make_install INSTALL="install -p" install-libLTLIBRARIES
|
|
cd ..
|
|
|
|
cd isl-%{version}
|
|
%make_install INSTALL="install -p"
|
|
mkdir -p %{buildroot}/%{_datadir}
|
|
%global gdbprettydir %{_datadir}/gdb/auto-load/%{_libdir}
|
|
mkdir -p %{buildroot}/%{gdbprettydir}
|
|
mv %{buildroot}/%{_libdir}/*-gdb.py* %{buildroot}/%{gdbprettydir}
|
|
|
|
%check
|
|
cd isl-%{oldversion}
|
|
#make check
|
|
cd ..
|
|
|
|
cd isl-%{version}
|
|
#make check
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
%files
|
|
%{_libdir}/libisl.so.%{libmajor}
|
|
%{_libdir}/libisl.so.%{libversion}
|
|
%{_libdir}/libisl.so.%{oldlibmajor}
|
|
%{_libdir}/libisl.so.%{oldlibversion}
|
|
%{gdbprettydir}/*
|
|
%license %{docdir}/LICENSE
|
|
%doc %{docdir}/AUTHORS %{docdir}/ChangeLog %{docdir}/README
|
|
|
|
%files static
|
|
%{_includedir}/*
|
|
%{_libdir}/libisl.a
|
|
%{_libdir}/libisl.la
|
|
%{_libdir}/pkgconfig/isl.pc
|
|
|
|
%files devel
|
|
%{_includedir}/*
|
|
%{_libdir}/libisl.so
|
|
%{_libdir}/pkgconfig/isl.pc
|
|
%doc %{docdir}/doc/manual.pdf
|
|
|
|
|
|
%changelog
|
|
* Fri Apr 14 2023 zhoushuiqing <zhoushuiqing2@huawei.com> - 0.16.1-12
|
|
- Type:Bugfix
|
|
- ID:NA
|
|
- SUG:NA
|
|
- DESC:add isl-static
|
|
|
|
* Thu Mar 24 2022 caodongxia <caodongxia@huawei.com> - 0.16.1-11
|
|
- Delete %{?dist}
|
|
|
|
* Sat Oct 10 2020 Zhiyi Weng <zhiyi@iscas.ac.cn> - 0.16.1-10
|
|
- Initial version.
|