]> git.pld-linux.org Git - packages/openjpeg.git/blame - openjpeg.spec
- pl
[packages/openjpeg.git] / openjpeg.spec
CommitLineData
4e6e3abc 1%define fver %(echo %{version} | tr . _)
0262a74e 2Summary: An open-source JPEG 2000 codec
4e6e3abc 3Summary(pl.UTF-8): Biblioteka kodująca i dekodująca format JPEG 2000
0262a74e
KK
4Name: openjpeg
5Version: 1.3
1cd486ba 6Release: 3
0262a74e
KK
7License: BSD
8Group: Libraries
4e6e3abc
JB
9Source0: http://openjpeg.googlecode.com/files/%{name}_v%{fver}.tar.gz
10# Source0-md5: f9a3ccfa91ac34b589e9bf7577ce8ff9
11Patch0: %{name}-install.patch
0262a74e 12URL: http://www.openjpeg.org/
51bd02bf 13BuildRequires: sed >= 4.0
0262a74e
KK
14BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16%description
17The OpenJPEG library is an open-source JPEG 2000 codec written in C
18language. It has been developed in order to promote the use of JPEG
2fff9e54 192000, the new still-image compression standard from the Joint
0262a74e
KK
20Photographic Experts Group (JPEG).
21
4e6e3abc
JB
22%description -l pl.UTF-8
23OpenJPEG to mająca otwarte źródła biblioteka kodująca i dekodująca
24format JPEG 2000, napisana w języku C. Powstała w celu promowania
25użycia formatu JPEG 2000 - nowego standardu obrazów nieruchomych
26stworzonego przez grupę JPEG (Joint Photographic Experts Group).
27
0262a74e 28%package devel
4e6e3abc
JB
29Summary: Header file for OpenJPEG library
30Summary(pl.UTF-8): Plik nagłówkowy biblioteki OpenJPEG
0262a74e 31Group: Development/Libraries
4e6e3abc 32Requires: %{name} = %{version}-%{release}
0262a74e
KK
33
34%description devel
4e6e3abc
JB
35This package contains the header file needed for developing programs
36using the OpenJPEG library.
37
38%description devel -l pl.UTF-8
39Ten pakiet zawiera plik nagłówkowy potrzebny do tworzenia programów
40wykorzystujących bibliotekę OpenJPEG.
41
42%package static
43Summary: Static OpenJPEG library
44Summary(pl.UTF-8): Statyczna biblioteka OpenJPEG
45Group: Development/Libraries
46Requires: %{name}-devel = %{version}-%{release}
47
48%description static
49Static OpenJPEG library.
50
51%description static -l pl.UTF-8
52Statyczna biblioteka OpenJPEG.
0262a74e
KK
53
54%prep
4e6e3abc 55%setup -q -n OpenJPEG_v%{fver}
0262a74e 56%patch0 -p1
6f4d0275 57
51bd02bf 58sed 's/$(CC) -s/$(CC) $(CFLAGS) $(LDFLAGS)/' -i Makefile
6f4d0275 59sed 's/-lstdc++/-lm/' -i Makefile
0262a74e
KK
60
61%build
51bd02bf 62%{__make} \
3eabfef4 63 CC="%{__cc}" \
6f4d0275 64 CFLAGS="%{rpmcflags} %{rpmcppflags} -fPIC" \
51bd02bf 65 LDFLAGS="%{rpmldflags}"
0262a74e
KK
66
67%install
68rm -rf $RPM_BUILD_ROOT
51bd02bf 69%{__make} install \
70 DESTDIR=$RPM_BUILD_ROOT \
71 INSTALL_LIBDIR=%{_libdir} \
72 INSTALL_INCLUDE=%{_includedir}
73
0262a74e
KK
74cd $RPM_BUILD_ROOT%{_libdir}
75ln -sf libopenjpeg.so.? libopenjpeg.so
76
77%clean
78rm -rf $RPM_BUILD_ROOT
79
80%post -p /sbin/ldconfig
81%postun -p /sbin/ldconfig
82
83%files
84%defattr(644,root,root,755)
85%attr(755,root,root) %{_libdir}/libopenjpeg-*.*.*.*.so
4e6e3abc 86%attr(755,root,root) %ghost %{_libdir}/libopenjpeg.so.2
0262a74e
KK
87
88%files devel
89%defattr(644,root,root,755)
4e6e3abc 90%attr(755,root,root) %{_libdir}/libopenjpeg.so
0262a74e 91%{_includedir}/%{name}.h
4e6e3abc
JB
92
93%files static
94%defattr(644,root,root,755)
0262a74e 95%{_libdir}/libopenjpeg.a
This page took 0.085212 seconds and 4 git commands to generate.