]>
Commit | Line | Data |
---|---|---|
7a3dd3af JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static libraries | |
4 | # | |
5 | Summary: Framewave - set of popular image and signal processing routines | |
6 | Summary(pl.UTF-8): Framewave - zestaw popularnych funkcji do przetwarzania obrazu i sygnału | |
7 | Name: framewave | |
8 | Version: 1.3.1 | |
680106bd | 9 | Release: 16 |
7a3dd3af JB |
10 | License: Apache v2.0 |
11 | Group: Libraries | |
12 | Source0: http://downloads.sourceforge.net/framewave/FRAMEWAVE_%{version}_SRC.tar.gz | |
13 | # Source0-md5: 86a28ebfbfd70be06ab54d0d8b17ebd7 | |
14 | Patch0: %{name}-system-boost.patch | |
15 | Patch1: %{name}-c++.patch | |
feac92fe | 16 | Patch2: no-forced-arch-bits.patch |
574f2b63 | 17 | Patch3: %{name}-templates.patch |
2f0fee9c JB |
18 | Patch4: %{name}-warnings.patch |
19 | Patch5: %{name}-cpuid.patch | |
5a33eaba | 20 | Patch6: %{name}-scons.patch |
680106bd | 21 | Patch7: %{name}-opt.patch |
7a3dd3af JB |
22 | URL: http://framewave.sourceforge.net/ |
23 | BuildRequires: boost-devel >= 1.34 | |
24 | BuildRequires: libstdc++-devel | |
25 | BuildRequires: rpmbuild(macros) >= 1.385 | |
5a33eaba | 26 | BuildRequires: scons >= 0.98 |
7a3dd3af | 27 | BuildRequires: sed >= 4.0 |
feac92fe | 28 | ExclusiveArch: %{ix86} %{x8664} x32 |
7a3dd3af JB |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
30 | ||
31 | %description | |
32 | Framewave(TM) is a collection of low-level software routines for x86 | |
33 | processors. Framewave (FW) is designed to aid and accelerate | |
34 | application development, debugging, and optimization. Framewave | |
35 | function capabilities extend from simple arithmetic operations to | |
36 | rich, complex domain specific tasks, such as image, video, and signal | |
37 | processing. | |
38 | ||
39 | %description -l pl.UTF-8 | |
40 | Framewave(TM) to zestaw niskopoziomowych procedur dla procesorów x86. | |
41 | Biblioteki zostały zaprojektowane tak, aby wspomóc i przyspieszyć | |
42 | tworzenie aplikacji, diagnostykę i optymalizację. Możliwości funkcji | |
43 | Framewave obejmują obszar od prostych operacji arytmetycznych po | |
44 | złożone zadania specyficzne dla dziedziny, takie jak przetwarzanie | |
45 | obrazu statycznego i ruchomego oraz sygnału. | |
46 | ||
47 | %package devel | |
48 | Summary: Header files for Framewave libraries | |
49 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Framewave | |
50 | Group: Development/Libraries | |
51 | Requires: %{name} = %{version}-%{release} | |
52 | ||
53 | %description devel | |
54 | Header files for Framewave libraries. | |
55 | ||
56 | %description devel -l pl.UTF-8 | |
57 | Pliki nagłówkowe bibliotek Framewave. | |
58 | ||
59 | %package static | |
60 | Summary: Static Framewave libraries | |
61 | Summary(pl.UTF-8): Statyczne biblioteki Framewave | |
62 | Group: Development/Libraries | |
63 | Requires: %{name}-devel = %{version}-%{release} | |
64 | ||
65 | %description static | |
66 | Static Framewave libraries. | |
67 | ||
68 | %description static -l pl.UTF-8 | |
69 | Statyczne biblioteki Framewave. | |
70 | ||
71 | %prep | |
72 | %setup -q -n FRAMEWAVE_%{version}_SRC | |
73 | %patch0 -p1 | |
74 | %patch1 -p1 | |
feac92fe | 75 | %patch2 -p1 |
574f2b63 | 76 | %patch3 -p1 |
2f0fee9c JB |
77 | %patch4 -p1 |
78 | %patch5 -p1 | |
5a33eaba | 79 | %patch6 -p1 |
680106bd | 80 | %patch7 -p1 |
7a3dd3af JB |
81 | |
82 | # kill precompiled binaries | |
83 | %{__rm} BuildTools/bin/FwHeaderConvert_* | |
84 | ||
85 | %{__sed} -i -e "s/'-O2'/'%{rpmcxxflags}'/" BuildTools/buildscripts/fwflags_gcc.py | |
86 | ||
87 | %build | |
88 | cd Framewave | |
89 | mkdir -p build/{include,tmp,bin} | |
90 | for kind in shared %{?with_static_libs:static} ; do | |
91 | %scons \ | |
feac92fe | 92 | %ifarch %{x8664} x32 |
7a3dd3af JB |
93 | bitness=64 \ |
94 | %else | |
95 | bitness=32 \ | |
96 | %endif | |
97 | libtype=$kind \ | |
98 | variant=release | |
99 | done | |
100 | ||
101 | %install | |
102 | rm -rf $RPM_BUILD_ROOT | |
103 | install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}} | |
104 | ||
105 | cp -p Framewave/build/include/*.h $RPM_BUILD_ROOT%{_includedir} | |
106 | install Framewave/build/bin/release_shared_*/lib*.so.*.*.* $RPM_BUILD_ROOT%{_libdir} | |
107 | /sbin/ldconfig -n $RPM_BUILD_ROOT%{_libdir} | |
108 | for f in $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.*.* ; do | |
109 | ln -sf $(basename $f) $(echo $f | sed -e 's/[.0-9]*$//') | |
110 | done | |
111 | %if %{with static_libs} | |
112 | install Framewave/build/bin/release_static_*/lib*.a $RPM_BUILD_ROOT%{_libdir} | |
113 | %endif | |
114 | ||
115 | %clean | |
116 | rm -rf $RPM_BUILD_ROOT | |
117 | ||
118 | %post -p /sbin/ldconfig | |
119 | %postun -p /sbin/ldconfig | |
120 | ||
121 | %files | |
122 | %defattr(644,root,root,755) | |
123 | %doc License.txt README | |
124 | %attr(755,root,root) %{_libdir}/libfwBase.so.*.*.* | |
125 | %attr(755,root,root) %ghost %{_libdir}/libfwBase.so.1 | |
126 | %attr(755,root,root) %{_libdir}/libfwImage.so.*.*.* | |
127 | %attr(755,root,root) %ghost %{_libdir}/libfwImage.so.1 | |
128 | %attr(755,root,root) %{_libdir}/libfwJPEG.so.*.*.* | |
129 | %attr(755,root,root) %ghost %{_libdir}/libfwJPEG.so.1 | |
130 | %attr(755,root,root) %{_libdir}/libfwSignal.so.*.*.* | |
131 | %attr(755,root,root) %ghost %{_libdir}/libfwSignal.so.1 | |
132 | %attr(755,root,root) %{_libdir}/libfwVideo.so.*.*.* | |
133 | %attr(755,root,root) %ghost %{_libdir}/libfwVideo.so.1 | |
134 | ||
135 | %files devel | |
136 | %defattr(644,root,root,755) | |
137 | %doc Framewave/doc/*.h | |
138 | %attr(755,root,root) %{_libdir}/libfwBase.so | |
139 | %attr(755,root,root) %{_libdir}/libfwImage.so | |
140 | %attr(755,root,root) %{_libdir}/libfwJPEG.so | |
141 | %attr(755,root,root) %{_libdir}/libfwSignal.so | |
142 | %attr(755,root,root) %{_libdir}/libfwVideo.so | |
143 | %{_includedir}/fwBase.h | |
144 | %{_includedir}/fwImage.h | |
145 | %{_includedir}/fwImage_sol.h | |
146 | %{_includedir}/fwJPEG.h | |
147 | %{_includedir}/fwSignal.h | |
148 | %{_includedir}/fwVideo.h | |
149 | ||
150 | %if %{with static_libs} | |
151 | %files static | |
152 | %defattr(644,root,root,755) | |
153 | %{_libdir}/libfwBase.a | |
154 | %{_libdir}/libfwImage.a | |
155 | %{_libdir}/libfwJPEG.a | |
156 | %{_libdir}/libfwSignal.a | |
157 | %{_libdir}/libfwVideo.a | |
158 | %endif |