SFEisl.spec: initial version spec-files-extra
authorloganbruns
Fri, 22 Feb 2013 06:42:46 +0000
branchspec-files-extra
changeset 10610 c1fa92f8e3d6
parent 10609 0eb37fa3f565
child 10611 66aaee08db7b
SFEisl.spec: initial version
trunk/ChangeLog
trunk/SFEisl.spec
trunk/copyright/SFEisl.copyright
--- a/trunk/ChangeLog	Fri Feb 22 00:45:12 2013 +0000
+++ b/trunk/ChangeLog	Fri Feb 22 06:42:46 2013 +0000
@@ -1,3 +1,8 @@
+2013-02-21  Logan O'Sullivan Bruns  <[email protected]>
+
+	* SFEisl.spec: initial version
+	* copyright/SFEisl.copyright
+
 2013-02-21 Ken Mays <[email protected]>
 
 	* base-specs/boost.spec: bump to 1.53.0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/trunk/SFEisl.spec	Fri Feb 22 06:42:46 2013 +0000
@@ -0,0 +1,82 @@
+#
+# spec file for package SFEisl
+#
+# This file and all modifications and additions to the pristine
+# package are under the same license as the package itself.
+#
+
+%include Solaris.inc
+%include usr-gnu.inc
+
+%define src_name   isl
+
+Name:                SFEisl
+IPS_Package_Name:    sfe/library/isl
+Summary:             isl - An Integer Set Library for the Polyhedral Model
+Version:             0.11.1
+URL:                 http://freecode.com/projects/isl
+Source:              ftp://gcc.gnu.org/pub/gcc/infrastructure/isl-%{version}.tar.bz2
+License:      	     MIT
+SUNW_Copyright:      SFEisl.copyright
+SUNW_BaseDir:        %{_basedir}
+BuildRoot:           %{_tmppath}/%{name}-%{version}-build
+%include default-depend.inc
+BuildRequires: SFEgmp-devel
+Requires: SFEgmp
+
+%package devel
+Summary:                 %{summary} - development files
+SUNW_BaseDir:            %{_basedir}
+%include default-depend.inc
+Requires:                %{name}
+
+%description
+isl is a thread-safe C library for manipulating sets and relations
+of integer points bounded by affine constraints.  The descriptions of
+the sets and relations may involve both parameters and existentially
+quantified variables.  All computations are performed in exact integer
+arithmetic using GMP.
+
+%prep
+%setup -q -n %{src_name}-%{version}
+
+%build
+CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
+if test "x$CPUS" = "x" -o $CPUS = 0; then
+     CPUS=1
+fi
+
+export CFLAGS="%optflags -I/usr/gnu/include"
+export LDFLAGS="%_ldflags -L/usr/gnu/lib -R/usr/gnu/lib"
+
+./configure --prefix=%{_prefix}
+            
+
+make -j$CPUS
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+make install DESTDIR=$RPM_BUILD_ROOT
+
+rm $RPM_BUILD_ROOT%{_libdir}/*.la
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr (-, root, bin)
+%dir %attr (0755, root, bin) %{_libdir}
+%{_libdir}/lib*.*
+
+%files devel
+%defattr (-, root, bin)
+%dir %attr (0755, root, bin) %{_includedir}
+%{_includedir}/*
+%dir %attr (0755, root, bin) %{_libdir}
+%dir %attr (0755, root, other) %{_libdir}/pkgconfig
+%{_libdir}/pkgconfig/*
+
+%changelog
+* Thu Feb 21 2013 - Logan Bruns <[email protected]>
+- initial version
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/trunk/copyright/SFEisl.copyright	Fri Feb 22 06:42:46 2013 +0000
@@ -0,0 +1,19 @@
+MIT License (MIT)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
+of the Software, and to permit persons to whom the Software is furnished to do
+so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.