]> git.pld-linux.org Git - packages/CharLS.git/blame - CharLS.spec
- x32 rebuild
[packages/CharLS.git] / CharLS.spec
CommitLineData
f9f53625
JB
1Summary: An optimized implementation of the JPEG-LS standard
2Summary(pl.UTF-8): Zoptymalizowana implementacja standardu JPEG-LS
3Name: CharLS
4Version: 1.0
c3997b2a 5Release: 2
f9f53625
JB
6License: BSD
7Group: 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
11Source0: %{name}-source-%{version}.zip
12# Source0-md5: 4694f02fbe2c4e1897ff2188d6e3cefc
13Patch0: %{name}-add_cmake_install_target.patch
14Patch1: %{name}-add_sharedlib_soname.patch
15Patch2: %{name}-fix_tests.patch
16URL: http://charls.codeplex.com/
17BuildRequires: cmake >= 2.6
18BuildRequires: libstdc++-devel
19BuildRequires: rpmbuild(macros) >= 1.566
20BuildRequires: sed >= 4.0
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23%description
24An optimized implementation of the JPEG-LS standard for loss less and
25near loss less image compression. JPEG-LS is a low-complexity standard
26that matches JPEG 2000 compression ratios. In terms of speed, CharLS
27outperforms open source and commercial JPEG LS implementations.
28
29%description -l pl.UTF-8
30Zoptymalizowana implementacja standardu JPEG-LS bezstratnej i prawie
31bezstratnej kompresji obrazu. JPEG-LS to mało skomplikowany standard
32osiągający współczynniki kompresji standardu JPEG 2000. Pod względem
33szybkości CharLS jest wydajniejszy niż inne implementacje JPEG LS o
34otwartych źródłach, a także komercyjne.
35
36%package devel
37Summary: Header files for CharLS library
38Summary(pl.UTF-8): Pliki nagłówkowe biblioteki CharLS
39Group: Development/Libraries
40Requires: %{name} = %{version}-%{release}
41Requires: libstdc++-devel
42
43%description devel
44Header files for CharLS library.
45
46%description devel -l pl.UTF-8
47Pliki 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
65rm -rf $RPM_BUILD_ROOT
66
67%{__make} install \
68 DESTDIR=$RPM_BUILD_ROOT
69
70%clean
71rm -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
This page took 0.052183 seconds and 4 git commands to generate.