]> git.pld-linux.org Git - packages/framewave.git/blame - framewave.spec
- release 2 (by relup.sh)
[packages/framewave.git] / framewave.spec
CommitLineData
7a3dd3af
JB
1#
2# Conditional build:
3%bcond_without static_libs # don't build static libraries
4#
5Summary: Framewave - set of popular image and signal processing routines
6Summary(pl.UTF-8): Framewave - zestaw popularnych funkcji do przetwarzania obrazu i sygnału
7Name: framewave
8Version: 1.3.1
a7d56028 9Release: 2
7a3dd3af
JB
10License: Apache v2.0
11Group: Libraries
12Source0: http://downloads.sourceforge.net/framewave/FRAMEWAVE_%{version}_SRC.tar.gz
13# Source0-md5: 86a28ebfbfd70be06ab54d0d8b17ebd7
14Patch0: %{name}-system-boost.patch
15Patch1: %{name}-c++.patch
16URL: http://framewave.sourceforge.net/
17BuildRequires: boost-devel >= 1.34
18BuildRequires: libstdc++-devel
19BuildRequires: rpmbuild(macros) >= 1.385
20BuildRequires: scons
21BuildRequires: sed >= 4.0
22ExclusiveArch: %{ix86} %{x8664}
23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25%description
26Framewave(TM) is a collection of low-level software routines for x86
27processors. Framewave (FW) is designed to aid and accelerate
28application development, debugging, and optimization. Framewave
29function capabilities extend from simple arithmetic operations to
30rich, complex domain specific tasks, such as image, video, and signal
31processing.
32
33%description -l pl.UTF-8
34Framewave(TM) to zestaw niskopoziomowych procedur dla procesorów x86.
35Biblioteki zostały zaprojektowane tak, aby wspomóc i przyspieszyć
36tworzenie aplikacji, diagnostykę i optymalizację. Możliwości funkcji
37Framewave obejmują obszar od prostych operacji arytmetycznych po
38złożone zadania specyficzne dla dziedziny, takie jak przetwarzanie
39obrazu statycznego i ruchomego oraz sygnału.
40
41%package devel
42Summary: Header files for Framewave libraries
43Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Framewave
44Group: Development/Libraries
45Requires: %{name} = %{version}-%{release}
46
47%description devel
48Header files for Framewave libraries.
49
50%description devel -l pl.UTF-8
51Pliki nagłówkowe bibliotek Framewave.
52
53%package static
54Summary: Static Framewave libraries
55Summary(pl.UTF-8): Statyczne biblioteki Framewave
56Group: Development/Libraries
57Requires: %{name}-devel = %{version}-%{release}
58
59%description static
60Static Framewave libraries.
61
62%description static -l pl.UTF-8
63Statyczne 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
76cd Framewave
77mkdir -p build/{include,tmp,bin}
78for 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
87done
88
89%install
90rm -rf $RPM_BUILD_ROOT
91install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}}
92
93cp -p Framewave/build/include/*.h $RPM_BUILD_ROOT%{_includedir}
94install Framewave/build/bin/release_shared_*/lib*.so.*.*.* $RPM_BUILD_ROOT%{_libdir}
95/sbin/ldconfig -n $RPM_BUILD_ROOT%{_libdir}
96for f in $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.*.* ; do
97 ln -sf $(basename $f) $(echo $f | sed -e 's/[.0-9]*$//')
98done
99%if %{with static_libs}
100install Framewave/build/bin/release_static_*/lib*.a $RPM_BUILD_ROOT%{_libdir}
101%endif
102
103%clean
104rm -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
This page took 0.044253 seconds and 4 git commands to generate.