cb5db9c
%global commit 6dc0ccc404c877531f06b42881272f15f4209b17
Igor Gnatenko 54f9961
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Igor Gnatenko 54f9961
fb12699
Name:		ispc
fb12699
Version:	1.9.1
adacc39
Release:	18.git.20171023.%{shortcommit}%{?dist}
fb12699
Summary:	C-based SPMD programming language compiler
fb12699
fb12699
License:	BSD
fb12699
URL:		https://ispc.github.io/
Igor Gnatenko 54f9961
Source0:	https://github.com/%{name}/%{name}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
fb12699
fb12699
BuildRequires:	llvm-devel
fb12699
BuildRequires:	clang-devel
fb12699
BuildRequires:	gcc-c++
fb12699
BuildRequires:	make
fb12699
BuildRequires:	bison
fb12699
BuildRequires:	flex 
fb12699
BuildRequires:	ncurses-devel
2a37ea8
ExclusiveArch:	%{arm} %{ix86} x86_64
fb12699
# Hardcoded path from 32-bit glibc-devel needed to build
fb12699
# See https://github.com/ispc/ispc/wiki/Building-ispc:-Linux-and-Mac-OS-X
fb12699
%ifarch x86_64
fb12699
BuildRequires:	/usr/lib/crt1.o
fb12699
%endif
fb12699
BuildRequires:	zlib-devel
51b720d
# Conditional build for f24 and less
51b720d
%if 0%{?fedora} <= 24 || 0%{?rhel} <= 7
51b720d
BuildRequires:	python
51b720d
%endif
fb12699
# Set verbose compilation and remove -Werror on Makefile
fb12699
Patch0:		Makefile.patch
cb5db9c
Patch1:		0001-Remove-uses-of-LLVM-dump-functions.patch
fb12699
fb12699
%description
fb12699
A compiler for a variant of the C programming language, with extensions for
fb12699
"single program, multiple data" (SPMD) programming.
fb12699
fb12699
%prep
Igor Gnatenko 54f9961
%autosetup -n %{name}-%{commit}
fb12699
fb12699
fb12699
%build
fb12699
%make_build gcc OPT="%{optflags}" LDFLAGS="%{__global_ldflags}" 
fb12699
fb12699
fb12699
%install
fb12699
install -Dpm 0755 %{name} %{buildroot}%{_bindir}/%{name}
fb12699
fb12699
%files
fb12699
%license LICENSE.txt
fb12699
%{_bindir}/%{name}
fb12699
fb12699
%changelog
adacc39
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.1-18.git.20171023.6dc0ccc
adacc39
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
adacc39
cb5db9c
* Tue Oct 24 2017 Tom Stellard <tstellar@redhat.com> - 1.9.1-17.git.20171023.6dc0ccc
cb5db9c
- Rebase to more current snapshot for LLVM 5.0 support.
cb5db9c
d32952e
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.1-16.git.20170324.a618ad4
d32952e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
d32952e
d6bc217
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.1-15.git.20170324.a618ad4
d6bc217
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
d6bc217
7c0ac39
* Thu May 25 2017 Peter Robinson <pbrobinson@fedoraproject.org> 1.9.1-14.git.20170324.a618ad4
7c0ac39
- Rebuild clang/llvm-4
7c0ac39
9d0a9af
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.1-13.git.20170324.a618ad4
9d0a9af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
9d0a9af
Igor Gnatenko 54f9961
* Fri Mar 24 2017 Igor Gnatenko <ignatenko@redhat.com> - 1.9.1-12.git.20170324.a618ad4
Igor Gnatenko 54f9961
- Update to git snapshot which support LLVM4
Igor Gnatenko 54f9961
96dc29c
* Thu Mar 16 2017 Luya Tshimbalanga <luya@fedoraproject.org> - 1.9.1-11
96dc29c
- Rebuild for llvm 3.9
96dc29c
e768dc3
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.1-10
e768dc3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
e768dc3
696da60
* Sun Nov 06 2016 Luya Tshimbalanga <luya@fedoraproject.org> - 1.9.1-9
696da60
- Rebuilt agaisnt llvm
696da60
2a37ea8
* Fri Aug 26 2016 Dan HorĂ¡k <dan[at]danny.cz> 1.9.1-8
2a37ea8
- set ExclusiveArch
2a37ea8
51b720d
* Tue Aug 23 2016 Luya Tshimbalanga <luya@fedoraproject.org> 1.9.1-7
51b720d
- Added conditional build for Fedora 24- and rhel7-
51b720d
fb12699
* Tue Aug 23 2016 Luya Tshimbalanga <luya@fedoraproject.org> 1.9.1-6
fb12699
- Included OPT and LDFLAGS on build line
fb12699
fb12699
* Tue Aug 23 2016 Luya Tshimbalanga <luya@fedoraproject.org> 1.9.1-5
fb12699
- Improved patch to remove -Werror line
fb12699
- Removed unecesary CXXFLAGS and LDFLAGS on make_build line
fb12699
- Removed useless llvm-config
fb12699
fb12699
* Sat Aug 20 2016 Luya Tshimbalanga <luya_tfz@thefinalzone.net> 1.9.1-4
fb12699
- Added gcc into make_build line
fb12699
- Added patch against Makefile for verbose dialog
fb12699
- Use llvm-config
fb12699
fb12699
* Sun Aug 14 2016 Luya Tshimbalanga <luya_tfz@thefinalzone.net> 1.9.1-3
fb12699
- Fixed spec
fb12699
- Added missing cflags for build
fb12699
- Added zlib-devel for dependency
fb12699
fb12699
* Sun Aug 14 2016 Luya Tshimbalanga <luya_tfz@thefinalzone.net> 1.9.1-2
fb12699
- Remove misplaced url on BuildRequires
fb12699
- Include gcc-c++ and make for BuildRequires
fb12699
- Used proper installation method
fb12699
- Optimize build
fb12699
fb12699
* Sun Aug 14 2016 Luya Tshimbalanga <luya_tfz@thefinalzone.net> 1.9.1-1
fb12699
- Initial build