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