/[pkgs]/devel/Macaulay2/Macaulay2.spec
ViewVC logotype

Contents of /devel/Macaulay2/Macaulay2.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.54 - (show annotations) (download)
Wed Sep 23 01:02:40 2009 UTC (2 months ago) by rdieter
Branch: MAIN
CVS Tags: F-12-split, Macaulay2-1_2-6_fc12, HEAD
Changes since 1.53: +2 -0 lines
install-info scriptlet deps too
1
2 #define pre 20090202svn
3
4 %define emacs_sitelisp %{_datadir}/emacs/site-lisp/
5 %define xemacs_sitelisp %{_datadir}/xemacs/site-packages/lisp/
6
7 Summary: System for algebraic geometry and commutative algebra
8 Name: Macaulay2
9 Version: 1.2
10 Release: 6%{?dist}
11
12 License: GPLv2
13 Group: Applications/Engineering
14 URL: http://www.math.uiuc.edu/Macaulay2/
15 Source0: http://www.math.uiuc.edu/Macaulay2/Downloads/SourceCode/Macaulay2-%{version}-src.tar.bz2
16 #Source0: Macaulay2-%{version}-%{pre}.tar.bz2
17 Source1: Macaulay2-svn_checkout.sh
18 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
19
20 # http://bugzilla.redhat.com/253847
21 ExcludeArch: ppc64
22
23 Source10: Macaulay2.png
24 Source11: Macaulay2.desktop
25 Source20: etags.sh
26
27 Patch0: Macaulay2-1.1-optflags.patch
28 Patch1: Macaulay2-1.2-xdg_open.patch
29 Patch2: Macaulay2-1.2-pari.patch
30 Patch7: Macaulay2-1.2-prefix.patch
31 Patch201739: Macaulay2-0.9.95-bz201739.patch
32
33 BuildRequires: autoconf
34 BuildRequires: bison
35 BuildRequires: blas-devel
36 BuildRequires: desktop-file-utils
37 # etags
38 BuildRequires: emacs-common
39 BuildRequires: flex
40 BuildRequires: gawk
41 BuildRequires: gc-devel
42 BuildRequires: gcc-gfortran
43 BuildRequires: gdbm-devel
44 BuildRequires: info
45 BuildRequires: factory-devel >= 3.1
46 BuildRequires: libfac-devel >= 3.1
47 BuildRequires: lapack-devel
48 BuildRequires: mpfr-devel
49 BuildRequires: ntl-devel >= 5.4.1
50 BuildRequires: pari-devel
51 BuildRequires: readline-devel ncurses-devel
52 BuildRequires: time
53
54 Obsoletes: Macaulay2-common < %{version}-%{release}
55 Provides: Macaulay2-common = %{version}-%{release}
56 Obsoletes: Macaulay2-doc < %{version}-%{release}
57 Provides: Macaulay2-doc = %{version}-%{release}
58 Obsoletes: Macaulay2-emacs < %{version}-%{release}
59 Provides: Macaulay2-emacs = %{version}-%{release}
60
61 Provides: macaulay2 = %{version}-%{release}
62
63 # M2-help
64 Requires: xdg-utils
65 Requires(post): /sbin/install-info
66 Requires(preun): /sbin/install-info
67
68 %description
69 Macaulay 2 is a new software system devoted to supporting research in
70 algebraic geometry and commutative algebra written by Daniel R. Grayson
71 and Michael E. Stillman
72
73
74 %prep
75 %setup -q
76
77 install -p -m755 %{SOURCE20} ./etags
78
79 %patch0 -p1 -b .optflags
80 %patch1 -p1 -b .xdg_open
81 %patch2 -p1 -b .pari
82 #patch7 -p1 -b .prefix
83 %patch201739 -p1 -b .bz201739
84
85 [ -f configure -a -f include/config.h ] || make
86
87
88 %build
89
90 # We need /sbin:. in PATH to find install-info,etags
91 PATH=/sbin:$(pwd):$PATH; export PATH
92
93 ## configure macro currently broken, probably fixable -- Rex
94 CFLAGS="%{optflags}" \
95 CXXFLAGS="%{optflags}" \
96 ./configure \
97 --prefix=%{_prefix} \
98 --libdir="\${prefix}/%{_lib}" \
99 --disable-dumpdata \
100 --enable-shared \
101 --disable-strip \
102 --disable-building \
103 --disable-frobby
104
105 # Not smp-safe
106 make
107
108
109 %check
110 make -k check ||:
111
112
113 %install
114 rm -rf %{buildroot}
115
116 # FIXME/TODO: a few examples fail on 64bit/mock, mostly harmless, but still...
117 make install DESTDIR=%{buildroot} \
118 IgnoreExampleErrors=true
119
120 # app img
121 install -p -m644 -D %{SOURCE10} \
122 %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/Macaulay2.png
123
124 desktop-file-install \
125 --dir=%{buildroot}%{_datadir}/applications \
126 --vendor="fedora" \
127 %{SOURCE11}
128
129 # Make a new home for emacs files
130 mkdir -p %{buildroot}%{_datadir}/Macaulay2/emacs
131 mv %{buildroot}%{emacs_sitelisp}/M2*.el $RPM_BUILD_ROOT%{_datadir}/Macaulay2/emacs/
132
133 for dir in %{emacs_sitelisp} %{xemacs_sitelisp} ; do
134 install -d -m755 %{buildroot}$dir
135 pushd %{buildroot}%{_datadir}/Macaulay2/emacs
136 for file in M2*.el ; do
137 ln -s %{_datadir}/Macaulay2/emacs/$file %{buildroot}$dir
138 touch %{buildroot}$dir/`basename $file .el`.elc
139 done
140 popd
141 done
142
143 # unpackaged files
144 rm -f %{buildroot}%{_infodir}/dir
145
146
147 %clean
148 rm -rf %{buildroot}
149
150
151 %post
152 touch --no-create %{_datadir}/icons/hicolor ||:
153 for info_file in \
154 BGG Benchmark BoijSoederberg Browse Bruns ChainComplexExtras Classic ConwayPolynomials Depth Dmodules EdgeIdeals Elimination FirstPackage FourTiTwo FourierMotzkin GenericInitialIdeal HyperplaneArrangements IntegralClosure InvolutiveBases LLLBases LexIdeals LocalRings Macaulay2Doc Markov NoetherNormalization Normaliz PackageTemplate Parsing PieriMaps Points Polyhedra Polymake PrimaryDecomposition ReesAlgebra Regularity Schubert2 SchurFunctors SchurRings SimpleDoc SimplicialComplexes StatePolytope Style SymmetricPolynomials TangentCone Text gfanInterface \
155 ; do
156 /sbin/install-info --quiet %{_infodir}/${info_file}.info %{_infodir}/dir ||:
157 done
158
159 %preun
160 if [ $1 -eq 0 ]; then
161 for info_file in \
162 BGG Benchmark BoijSoederberg Browse Bruns ChainComplexExtras Classic ConwayPolynomials Depth Dmodules EdgeIdeals Elimination FirstPackage FourTiTwo FourierMotzkin GenericInitialIdeal HyperplaneArrangements IntegralClosure InvolutiveBases LLLBases LexIdeals LocalRings Macaulay2Doc Markov NoetherNormalization Normaliz PackageTemplate Parsing PieriMaps Points Polyhedra Polymake PrimaryDecomposition ReesAlgebra Regularity Schubert2 SchurFunctors SchurRings SimpleDoc SimplicialComplexes StatePolytope Style SymmetricPolynomials TangentCone Text gfanInterface \
163 ; do
164 /sbin/install-info --delete --quiet %{_infodir}/${info_file}.info %{_infodir}/dir ||:
165 done
166 fi
167
168 %postun
169 if [ $1 -eq 0 ] ; then
170 touch --no-create %{_datadir}/icons/hicolor ||:
171 gtk-update-icon-cache -q %{_datadir}/icons/hicolor > /dev/null 2>&1 ||:
172 fi
173
174 %posttrans
175 gtk-update-icon-cache -q %{_datadir}/icons/hicolor > /dev/null 2>&1 ||:
176
177 %triggerin -- emacs-common
178 if [ -d %{emacs_sitelisp} ]; then
179 for file in %{_datadir}/Macaulay2/emacs/M2*.el ; do
180 ln -sf $file %{emacs_sitelisp}/ ||:
181 done
182 fi
183
184 %triggerin -- xemacs-common
185 if [ -d %{xemacs_sitelisp} ]; then
186 for file in %{_datadir}/Macaulay2/emacs/M2*.el ; do
187 ln -sf $file %{xemacs_sitelisp}/ ||:
188 done
189 fi
190
191 %triggerun -- emacs-common
192 [ $2 -eq 0 ] && rm -f %{emacs_sitelisp}/M2*.el* || :
193
194 %triggerun -- xemacs-common
195 [ $2 -eq 0 ] && rm -f %{xemacs_sitelisp}/M2*.el* || :
196
197
198 %files
199 %defattr(-,root,root,-)
200 %doc Macaulay2/COPYING Macaulay2/README
201 %{_bindir}/M2
202 %{_datadir}/applications/*Macaulay2.desktop
203 %{_datadir}/icons/hicolor/*/*/*
204 %{_datadir}/Macaulay2/
205 %{_docdir}/Macaulay2/
206 %{_infodir}/*.info*
207 %{_libdir}/Macaulay2/
208 %{_mandir}/man1/*
209 %ghost %{emacs_sitelisp}
210 %ghost %{xemacs_sitelisp}
211
212
213 %changelog
214 * Tue Sep 22 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.2-6
215 - fixup/optimize scriplets
216
217 * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-5
218 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
219
220 * Fri Apr 17 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.2-4
221 - rebuild for ntl-devel (shared)
222
223 * Wed Feb 25 2009 Rex Dieter <rdieter@fedoraproject.org> - 1.2-3
224 - BR: libfac-devel,factory-devel >= 3.1
225 - restore ExcludeArch: ppc64 (#253847)
226
227 * Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-2
228 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
229
230 * Fri Feb 13 2009 Rex Dieter <rdieter@fedoraproject.org> 1.2-1
231 - Macaulay-1.2
232
233 * Thu Oct 02 2008 Rex Dieter <rdieter@fedoraproject.org> 1.1-2
234 - respin (factory/libfac)
235
236 * Tue Mar 11 2008 Rex Dieter <rdieter@fedoraproject.org> 1.1-1
237 - Macaulay2-1.1
238 - Obsoletes/Provides: Macaulay2-common (upstream compatibility)
239 - re-enable ppc64 (#253847)
240 - IgnoreExampleErrors=true
241
242 * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.9.95-10
243 - Autorebuild for GCC 4.3
244
245 * Tue Dec 18 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.9.95-9
246 - Provides: macaulay2
247 - respin against new(er) factory,libfac,ntl
248
249 * Wed Aug 22 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.9.95-8
250 - ExcludeArch: ppc64 (#253847)
251
252 * Tue Aug 21 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.9.95-7
253 - BR: gawk
254
255 * Tue Aug 21 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.9.95-6
256 - gc-7.0 patches
257
258 * Sat Aug 11 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.9.95-5
259 - License: GPLv2
260
261 * Mon Jan 15 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.9.95-4
262 - Ob/Pr: Macaulay2-doc, not -docs (#222609)
263
264 * Sat Jan 06 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.9.95-3
265 - re-enable ppc build (#201739)
266
267 * Tue Jan 02 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 0.9.95-2
268 - ./configure --disable-strip, for usable -debuginfo (#220893)
269
270 * Mon Dec 18 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.95-1
271 - Macaulay2-0.9.95
272
273 * Wed Nov 22 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.20-0.5.20060808svn
274 - .desktop Categories: -Application,Scientific,X-Fedora +ConsoleOnly
275
276 * Tue Aug 29 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.20-0.4.20060808svn
277 - fc6 respin
278
279 * Tue Aug 08 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.20-0.3.20060808svn
280 - ExcludeArch: ppc (bug #201739)
281 - %ghost (x)emacs site-lisp bits (using hints from fedora-rpmdevtools)
282
283 * Tue Aug 08 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.20-0.2.20060808svn
284 - 20060808 snapshot
285
286 * Mon Jul 24 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.20-0.1.20060724svn
287 - 2006-07-15-0.9.20
288
289 * Wed Jul 12 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.10-0.6.20060710svn
290 - 0.9.10
291
292 -* Mon Jul 10 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.8-0.6.cvs20060327
293 - BR: ncurses-devel
294
295 * Fri May 05 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.8-0.4.cvs20060327
296 - 64bit patch (#188709)
297
298 * Wed Apr 12 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.8-0.3.cvs20060327
299 - omit x86_64, for now (#188709)
300
301 * Tue Apr 11 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.8-0.2.cvs20060327
302 - 0.9.8 (cvs, no tarball yet)
303 - drop -doc subpkg (in main now)
304
305 * Mon Apr 10 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.2-22
306 - fix icon location (#188384)
307
308 * Thu Mar 30 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.2-21
309 - really disable %%check (fails on fc5+ anyway)
310
311 * Fri Jan 20 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.9.2-20
312 - .desktop: drop Category=Development
313 - app icon: follow icon spec
314 - drop -emacs subpkg (in main now)
315
316 * Fri Sep 16 2005 Rex Dieter <rexdieter[AT]users.sf.net> - 0.9.2-19
317 - disable 'make check' (fc5/buildsystem error), besides, we get a
318 good consistency check when M2 builds all the doc examples.
319
320 * Wed Sep 14 2005 Rex Dieter <rexdieter[AT]users.sf.net> - 0.9.2-18
321 - rebuild against gc-6.6
322
323 * Thu May 26 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 0.9.2-17
324 - rebuild (build system x86_64 repository access failed for 0.9.2-16)
325 - fix build for GCC 4 (#156223)
326
327 * Thu Apr 7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> - 0.9.2-15
328 - rebuilt
329
330 * Mon Feb 21 2005 Rex Dieter <rexdieter[AT]users.sf.net> 0:0.9.2-14
331 - x86_64 issues (%%_libdir -> %%_prefix/lib )
332 - remove desktop_file macro usage
333
334 * Sat Oct 23 2004 Rex Dieter <rexdieter at sf.net> 0:0.9.2-0.fdr.13
335 - BR: time (again)
336 - omit m2_dir/setup (not needed/wanted)
337
338 * Mon Oct 18 2004 Rex Dieter <rexdieter at sf.net> 0:0.9.2-0.fdr.12
339 - actually *apply* gcc34 patch this time.
340
341 * Mon Oct 18 2004 Rex Dieter <rexdieter at sf.net> 0:0.9.2-0.fdr.11
342 - gcc34 patch
343
344 * Fri Oct 1 2004 Rex Dieter <rexdieter at sf.net> 0:0.9.2-0.fdr.10
345 - explicit BR versions for gc-devel, libfac-devel, factory-devel
346
347 * Tue Aug 10 2004 Rex Dieter <rexdieter at sf.net> 0:0.9.2-0.fdr.9
348 - BR: time
349
350 * Thu Jun 03 2004 Rex Dieter <rexdieter at sf.net> 0:0.9.2-0.fdr.8
351 - .desktop: remove Terminaloptions to be desktop agnostic
352 - .desktop: Categories += Education;Math;Development (Devel only
353 added so it shows *somewhere* in gnome menus)
354
355 * Tue Jun 01 2004 Rex Dieter <rexdieter at sf.net> 0:0.9.2-0.fdr.7
356 - disable default 'make check' (util/screen fails on fc2)
357
358 * Tue Mar 30 2004 Rex Dieter <rexdieter at sf.net> 0:0.9.2-0.fdr.6
359 - desktop-file is now on by default
360 - use separate (not inline) .desktop file
361
362 * Mon Jan 05 2004 Rex Dieter <rexdieter at sf.net> 0:0.9.2-0.fdr.5
363 - fix BuildRequires: desktop-file-utils to satisfy rpmlint.
364 - put emacs files in emacs subdir too (to follow supplied docs)
365 - *really* nuke .cvsignore files
366 - fix desktop-file-install --add-cateagories usage
367
368 * Tue Dec 23 2003 Rex Dieter <rexdieter at sf.net> 0:0.9.2-0.fdr.4
369 - -emacs: use %%defattr
370 - -emacs: fix M2-init.el
371
372 * Mon Nov 17 2003 Rex Dieter <rexdieter at sf.net> 0:0.9.2-0.fdr.3
373 - update/simplify macros
374 - desktop_file support.
375 - emacs subpkg.
376 - relax Req's on subpkgs to just: Requires: %%name = %%epoch:%%version
377 - use non-versioned BuildRequires
378 - remove redundant BuildRequires: gmp-devel
379 - remove gc patch, no longer needed.
380 - delete/not-package a bunch of unuseful files.
381 - use --disable-strip when debug_package is in use.
382
383 * Thu Nov 13 2003 Rex Dieter <rexdieter at sf.net> 0:0.9.2-0.fdr.2
384 - no longer explictly Requires: emacs
385
386 * Wed Nov 05 2003 Rex Dieter <rexdieter at sf.net> 0:0.9.2-0.fdr.1
387 - missing Epoch: 0
388
389 * Fri Sep 12 2003 Rex Dieter <rexdieter at sf.net> 0.9.2-0.fdr.0
390 - fedora'ize
391

admin@fedoraproject.org
ViewVC Help
Powered by ViewVC 1.1.2