]>
Commit | Line | Data |
---|---|---|
f9f53625 JB |
1 | Summary: An optimized implementation of the JPEG-LS standard |
2 | Summary(pl.UTF-8): Zoptymalizowana implementacja standardu JPEG-LS | |
3 | Name: CharLS | |
4 | Version: 1.0 | |
c3997b2a | 5 | Release: 2 |
f9f53625 JB |
6 | License: BSD |
7 | Group: Libraries | |
8 | # to download, open this URL in fully JS-capable browser (elinks doesn't suffice) | |
9 | # and manually accept BSD(!) license | |
10 | #Source0Download: http://charls.codeplex.com/releases/view/55406 | |
11 | Source0: %{name}-source-%{version}.zip | |
12 | # Source0-md5: 4694f02fbe2c4e1897ff2188d6e3cefc | |
13 | Patch0: %{name}-add_cmake_install_target.patch | |
14 | Patch1: %{name}-add_sharedlib_soname.patch | |
15 | Patch2: %{name}-fix_tests.patch | |
16 | URL: http://charls.codeplex.com/ | |
17 | BuildRequires: cmake >= 2.6 | |
18 | BuildRequires: libstdc++-devel | |
19 | BuildRequires: rpmbuild(macros) >= 1.566 | |
20 | BuildRequires: sed >= 4.0 | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | An optimized implementation of the JPEG-LS standard for loss less and | |
25 | near loss less image compression. JPEG-LS is a low-complexity standard | |
26 | that matches JPEG 2000 compression ratios. In terms of speed, CharLS | |
27 | outperforms open source and commercial JPEG LS implementations. | |
28 | ||
29 | %description -l pl.UTF-8 | |
30 | Zoptymalizowana implementacja standardu JPEG-LS bezstratnej i prawie | |
31 | bezstratnej kompresji obrazu. JPEG-LS to mało skomplikowany standard | |
32 | osiągający współczynniki kompresji standardu JPEG 2000. Pod względem | |
33 | szybkości CharLS jest wydajniejszy niż inne implementacje JPEG LS o | |
34 | otwartych źródłach, a także komercyjne. | |
35 | ||
36 | %package devel | |
37 | Summary: Header files for CharLS library | |
38 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki CharLS | |
39 | Group: Development/Libraries | |
40 | Requires: %{name} = %{version}-%{release} | |
41 | Requires: libstdc++-devel | |
42 | ||
43 | %description devel | |
44 | Header files for CharLS library. | |
45 | ||
46 | %description devel -l pl.UTF-8 | |
47 | Pliki nagłówkowe biblioteki CharLS. | |
48 | ||
49 | %prep | |
50 | %setup -q -c | |
51 | ||
52 | %undos CMakeLists.txt defaulttraits.h | |
53 | ||
54 | %patch0 -p1 | |
55 | %patch1 -p1 | |
56 | %patch2 -p1 | |
57 | ||
58 | %build | |
59 | %cmake . \ | |
60 | -Dcharls_BUILD_SHARED_LIBS=ON \ | |
61 | -DBUILD_TESTING=ON | |
62 | %{__make} | |
63 | ||
64 | %install | |
65 | rm -rf $RPM_BUILD_ROOT | |
66 | ||
67 | %{__make} install \ | |
68 | DESTDIR=$RPM_BUILD_ROOT | |
69 | ||
70 | %clean | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %post -p /sbin/ldconfig | |
74 | %postun -p /sbin/ldconfig | |
75 | ||
76 | %files | |
77 | %defattr(644,root,root,755) | |
78 | %doc License.txt | |
79 | %attr(755,root,root) %{_libdir}/libCharLS.so.*.* | |
80 | %attr(755,root,root) %ghost %{_libdir}/libCharLS.so.1 | |
81 | ||
82 | %files devel | |
83 | %defattr(644,root,root,755) | |
84 | %attr(755,root,root) %{_libdir}/libCharLS.so | |
85 | %{_includedir}/CharLS |