]>
Commit | Line | Data |
---|---|---|
e7f613e6 | 1 | %define rel 2 |
cb695bf1 JB |
2 | Summary: Candl - Data Dependence Analysis Tool in the Polyhedral Model |
3 | Summary(pl.UTF-8): Candl - narzędzie do analizy zależności danych w modelu wielościennym | |
4 | Name: candl | |
5 | Version: 0.6.2 | |
65a2ccbc | 6 | %define snap 20140806 |
8952844f | 7 | Release: 1.%{snap}.%{rel} |
cb695bf1 JB |
8 | License: LGPL v3+ |
9 | Group: Libraries | |
10 | Source0: http://web.cse.ohio-state.edu/~pouchet/software/pocc/download/modules/%{name}-%{version}.tar.gz | |
11 | # Source0-md5: 4e86392fa46a514b03532f93d9c83f8d | |
65a2ccbc JB |
12 | # git clone git://repo.or.cz/candl.git |
13 | # git diff 0.6.2 | |
14 | Patch0: %{name}-git.patch | |
15 | Patch1: %{name}-isl.patch | |
16 | Patch2: %{name}-info.patch | |
17 | Patch3: %{name}-system-libs.patch | |
cb695bf1 | 18 | URL: http://icps.u-strasbg.fr/people/bastoul/public_html/development/candl/ |
65a2ccbc JB |
19 | BuildRequires: autoconf >= 2.53 |
20 | BuildRequires: automake >= 1:1.9 | |
cb695bf1 JB |
21 | BuildRequires: gmp-devel |
22 | # 0.12.x originally, 0.13 with isl patch | |
23 | BuildRequires: isl-devel >= 0.13 | |
65a2ccbc JB |
24 | BuildRequires: libtool |
25 | BuildRequires: osl-devel | |
cb695bf1 | 26 | BuildRequires: piplib-devel |
cb695bf1 JB |
27 | BuildRequires: texinfo |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %description | |
31 | Candl (Chunky ANalyzer for Dependences in Loops) is a free software | |
32 | and a library devoted to data dependences computation. | |
33 | ||
34 | %description -l pl.UTF-8 | |
35 | Candl (Chunky ANalyzer for Dependences in Loops - blokowy analizator | |
36 | zależności w pętlach) to wolnodostępne oprogramowanie i biblioteka | |
37 | służące do obliczeń zależności danych. | |
38 | ||
39 | %package devel | |
40 | Summary: Header files for Candl library | |
41 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Candl | |
42 | Group: Development/Libraries | |
43 | Requires: %{name} = %{version}-%{release} | |
44 | Requires: gmp-devel | |
45 | Requires: isl-devel >= 0.13 | |
65a2ccbc | 46 | Requires: osl-devel |
cb695bf1 | 47 | Requires: piplib-devel |
cb695bf1 JB |
48 | |
49 | %description devel | |
50 | Header files for Candl library. | |
51 | ||
52 | %description devel -l pl.UTF-8 | |
53 | Pliki nagłówkowe biblioteki Candl. | |
54 | ||
55 | %package static | |
56 | Summary: Static Candl library | |
57 | Summary(pl.UTF-8): Statyczna biblioteka Candl | |
58 | Group: Development/Libraries | |
59 | Requires: %{name}-devel = %{version}-%{release} | |
60 | ||
61 | %description static | |
62 | Static Candl library. | |
63 | ||
64 | %description static -l pl.UTF-8 | |
65 | Statyczna biblioteka Candl. | |
66 | ||
67 | %prep | |
68 | %setup -q | |
65a2ccbc JB |
69 | # clean after make dist to allow git patch |
70 | %{__rm} include/candl/candl.h | |
cb695bf1 JB |
71 | %patch0 -p1 |
72 | %patch1 -p1 | |
65a2ccbc JB |
73 | %patch2 -p1 |
74 | %patch3 -p1 | |
75 | ||
76 | # because of tests subdir stripped from git patch | |
77 | > tests/Makefile.am | |
78 | ||
79 | %{__rm} osl piplib | |
80 | install -d osl piplib | |
cb695bf1 JB |
81 | |
82 | %build | |
65a2ccbc JB |
83 | %{__libtoolize} |
84 | %{__aclocal} -I m4 | |
85 | %{__autoconf} | |
86 | %{__automake} | |
cb695bf1 JB |
87 | %configure \ |
88 | --enable-mp-version \ | |
89 | --disable-silent-rules | |
90 | ||
91 | %{__make} | |
92 | ||
93 | %install | |
94 | rm -rf $RPM_BUILD_ROOT | |
95 | ||
96 | %{__make} install \ | |
97 | DESTDIR=$RPM_BUILD_ROOT | |
98 | ||
99 | %clean | |
100 | rm -rf $RPM_BUILD_ROOT | |
101 | ||
102 | %post -p /sbin/ldconfig | |
103 | %postun -p /sbin/ldconfig | |
104 | ||
105 | %post devel -p /sbin/postshell | |
106 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
107 | ||
108 | %postun devel -p /sbin/postshell | |
109 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
110 | ||
111 | %files | |
112 | %defattr(644,root,root,755) | |
113 | %doc AUTHORS ChangeLog README | |
114 | %attr(755,root,root) %{_bindir}/candl | |
115 | %attr(755,root,root) %{_libdir}/libcandl.so.*.*.* | |
116 | %attr(755,root,root) %ghost %{_libdir}/libcandl.so.0 | |
117 | ||
118 | %files devel | |
119 | %defattr(644,root,root,755) | |
120 | %attr(755,root,root) %{_libdir}/libcandl.so | |
121 | %{_libdir}/libcandl.la | |
122 | %{_includedir}/candl | |
123 | %{_infodir}/candl.info* | |
124 | ||
125 | %files static | |
126 | %defattr(644,root,root,755) | |
127 | %{_libdir}/libcandl.a |