/[pkgs]/devel/L-function/L-function.spec
ViewVC logotype

Contents of /devel/L-function/L-function.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Jul 24 15:35:24 2009 UTC (3 months, 4 weeks ago) by jkeating
Branch: MAIN
CVS Tags: F-12-split, L-function-1_2-4_fc12, HEAD
Changes since 1.1: +4 -1 lines
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
1 Name: L-function
2 Version: 1.2
3 Release: 4%{?dist}
4 Summary: L-function calculator
5 Group: Development/Libraries
6 License: GPLv2+
7 URL: http://pmmac03.math.uwaterloo.ca/~mrubinst/L_function_public/L.html
8 Source0: http://pmmac03.math.uwaterloo.ca/%7Emrubinst/L_function_public/CODE/L-%{version}.tar.gz
9 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
10
11 BuildRequires: pari-devel
12
13
14 %description
15 A library and a command-line executable that do computations on a class
16 of special functions called L-functions. Among others, this class
17 includes the Riemann zeta function and the Ramanujan tau function.
18
19
20 %package devel
21 Summary: Development files for %{name}
22 Group: Development/Libraries
23 Requires: %{name} = %{version}-%{release}
24 Provides: %{name}-static = %{version}-%{release}
25
26 %description devel
27 The %{name}-devel package contains libraries and header files for
28 developing applications that use %{name}.
29
30
31 %prep
32 %setup -q -n L-%{version}
33 rm -f .*DS_Store
34 rm -f include/.*{DS_Store,.swp}
35 rm -f src/.*{DS_Store,.swp}
36 sed -i -e 's|^[^#]*LDFLAGS2.*LDFLAGS1.*$|LDFLAGS2 = $(LDFLAGS1)|' src/Makefile
37 sed -i -e 's/\r//' src/example_programs/example.cc
38
39
40 %build
41 cd src
42 make %{?_smp_mflags} EXTRA="%{optflags} -lpari" \
43 PREPROCESSOR_DEFINE=-DINCLUDE_PARI \
44 LOCATION_PARI_H=%{_includedir}/pari \
45 LOCATION_PARI_LIBRARY=%{_libdir}
46 cd ..
47 rm -f src/example_programs/example
48
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52 mkdir -p $RPM_BUILD_ROOT%{_bindir}
53 mkdir -p $RPM_BUILD_ROOT%{_libdir}
54 install -p -m 0755 src/lcalc $RPM_BUILD_ROOT%{_bindir}/
55 install -p -m 0644 src/libLfunction.a $RPM_BUILD_ROOT%{_libdir}/
56
57 mkdir -p $RPM_BUILD_ROOT%{_includedir}/Lfunction
58 for file in include/*.h; do
59 install -p -m 0644 $file $RPM_BUILD_ROOT%{_includedir}/Lfunction/
60 done
61
62
63 %clean
64 rm -rf $RPM_BUILD_ROOT
65
66
67 %files
68 %defattr(-,root,root,-)
69 %doc README COPYING
70 %{_bindir}/lcalc
71
72
73 %files devel
74 %defattr(-,root,root,-)
75 %doc src/example_programs
76 %{_libdir}/libLfunction.a
77 %{_includedir}/Lfunction
78
79
80 %changelog
81 * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-4
82 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
83
84 * Tue Mar 17 2009 Conrad Meyer <konrad@tylerc.org> - 1.2-3
85 - Add missing BR on pari-devel.
86
87 * Sat Mar 14 2009 Conrad Meyer <konrad@tylerc.org> - 1.2-2
88 - Include headers in -devel subpackage.
89 - Include PARI support.
90
91 * Sat Nov 8 2008 Conrad Meyer <konrad@tylerc.org> - 1.2-1
92 - Initial package.

admin@fedoraproject.org
ViewVC Help
Powered by ViewVC 1.1.2