]>
Commit | Line | Data |
---|---|---|
08b26dc7 | 1 | Summary: A library for decoding RAW images |
21d5447a | 2 | Summary(pl.UTF-8): Biblioteka dekodująca obrazy w formacie RAW |
08b26dc7 | 3 | Name: libopenraw |
e5b0e883 | 4 | Version: 0.0.8 |
76d02d11 | 5 | Release: 4 |
6f2f45d1 | 6 | License: LGPL v2.1+ |
21d5447a | 7 | Group: Libraries |
08b26dc7 | 8 | Source0: http://libopenraw.freedesktop.org/download/%{name}-%{version}.tar.gz |
e5b0e883 | 9 | # Source0-md5: fc26f146586a4b601326130bce6ffd88 |
76d02d11 | 10 | Patch0: %{name}-loaders-location.patch |
08b26dc7 | 11 | URL: http://libopenraw.freedesktop.org/ |
76d02d11 MB |
12 | BuildRequires: autoconf >= 2.50 |
13 | BuildRequires: automake | |
14de13dc | 14 | BuildRequires: boost-devel >= 1.35.0 |
e312fd68 | 15 | BuildRequires: gdk-pixbuf2-devel >= 2.0.0 |
c2c2b2ca | 16 | BuildRequires: libjpeg-devel |
bedcd43d | 17 | BuildRequires: libxml2-devel >= 1:2.5.0 |
507265a4 | 18 | BuildRequires: pkgconfig |
08b26dc7 | 19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
e5b0e883 | 21 | %if "%{_lib}" != "lib" |
5938903d | 22 | %define libext %(lib="%{_lib}"; echo ${lib#lib}) |
5938903d | 23 | %define pqext -%{libext} |
e5b0e883 | 24 | %else |
5938903d | 25 | %define pqext %{nil} |
e5b0e883 MB |
26 | %endif |
27 | ||
08b26dc7 | 28 | %description |
29 | libopenraw is an ongoing project to provide a free software | |
30 | implementation for camera RAW files decoding. One of the main reason | |
21d5447a JB |
31 | is that dcraw is not suited for easy integration into applications, |
32 | and there is a need for an easy to use API to build free software | |
33 | digital image processing application. | |
08b26dc7 | 34 | |
b865330f | 35 | %description -l pl.UTF-8 |
36 | libopenraw jest projektem dostarczającym wolnodostępną | |
37 | implementację dekodera plików w formacie RAW obsługiwanych przez | |
38 | cyfrowe aparaty fotograficzne. Jednym z głównych powodów powstania | |
21d5447a JB |
39 | tej biblioteki jest to, że dcraw nie jest przystosowany do łatwej |
40 | integracji z aplikacjami, a istnieje potrzeba stworzenia łatwego w | |
41 | użyciu API do budowy wolnodostępnej aplikacji przetwarzania cyfrowych | |
42 | obrazów. | |
b865330f | 43 | |
08b26dc7 | 44 | %package devel |
45 | Summary: Header files for libopenraw library | |
b865330f | 46 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libopenraw |
08b26dc7 | 47 | Group: Development/Libraries |
48 | Requires: %{name} = %{version}-%{release} | |
507265a4 JB |
49 | Requires: libjpeg-devel |
50 | Requires: libstdc++-devel | |
08b26dc7 | 51 | |
52 | %description devel | |
53 | Header files for libopenraw library. | |
54 | ||
55 | %description devel -l pl.UTF-8 | |
56 | Pliki nagłówkowe biblioteki libopenraw. | |
57 | ||
58 | %package static | |
59 | Summary: Static libopenraw library | |
60 | Summary(pl.UTF-8): Statyczna biblioteka libopenraw | |
61 | Group: Development/Libraries | |
62 | Requires: %{name}-devel = %{version}-%{release} | |
63 | ||
64 | %description static | |
65 | Static libopenraw library. | |
66 | ||
67 | %description static -l pl.UTF-8 | |
68 | Statyczna biblioteka libopenraw. | |
69 | ||
bedcd43d JB |
70 | %package gnome |
71 | Summary: Library for decoding RAW images - GTK+/GNOME support | |
72 | Summary(pl.UTF-8): Biblioteka dekodująca obrazy w formacie RAW - obsługa GTK+/GNOME | |
73 | Group: X11/Libraries | |
e312fd68 JB |
74 | Requires(post,postun): /sbin/ldconfig |
75 | Requires(post,postun): gdk-pixbuf2 >= 2.0.0 | |
bedcd43d | 76 | Requires: %{name} = %{version}-%{release} |
e312fd68 | 77 | Requires: gdk-pixbuf2 >= 2.0.0 |
bedcd43d JB |
78 | |
79 | %description gnome | |
80 | Library for decoding RAW images - GTK+/GNOME support. | |
81 | ||
82 | %description gnome -l pl.UTF-8 | |
83 | Biblioteka dekodująca obrazy w formacie RAW - obsługa GTK+/GNOME. | |
84 | ||
85 | %package gnome-devel | |
86 | Summary: Header file for libopenrawgnome library | |
87 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki libopenrawgnome | |
88 | Group: X11/Development/Libraries | |
89 | Requires: %{name}-devel = %{version}-%{release} | |
90 | Requires: %{name}-gnome = %{version}-%{release} | |
80ec251f | 91 | Requires: gdk-pixbuf2-devel >= 2.0.0 |
bedcd43d JB |
92 | |
93 | %description gnome-devel | |
94 | Header file for libopenrawgnome library. | |
95 | ||
96 | %description gnome-devel -l pl.UTF-8 | |
97 | Plik nagłówkowy biblioteki libopenrawgnome. | |
98 | ||
99 | %package gnome-static | |
100 | Summary: Static libopenrawgnome library | |
101 | Summary(pl.UTF-8): Statyczna biblioteka libopenrawgnome | |
102 | Group: X11/Development/Libraries | |
103 | Requires: %{name}-gnome-devel = %{version}-%{release} | |
104 | ||
105 | %description gnome-static | |
106 | Static libopenrawgnome library. | |
107 | ||
108 | %description gnome-static -l pl.UTF-8 | |
109 | Statyczna biblioteka libopenrawgnome. | |
110 | ||
08b26dc7 | 111 | %prep |
112 | %setup -q | |
76d02d11 | 113 | %patch0 -p1 |
08b26dc7 | 114 | |
115 | %build | |
76d02d11 MB |
116 | %{__aclocal} -I m4 |
117 | %{__autoconf} | |
118 | %{__autoheader} | |
119 | %{__automake} | |
08b26dc7 | 120 | %configure |
76d02d11 | 121 | %{__make} V=1 |
08b26dc7 | 122 | |
123 | %install | |
124 | rm -rf $RPM_BUILD_ROOT | |
125 | ||
e312fd68 JB |
126 | %{__make} install \ |
127 | DESTDIR=$RPM_BUILD_ROOT \ | |
128 | V=1 | |
08b26dc7 | 129 | |
e312fd68 | 130 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gdk-pixbuf-2.0/*/loaders/*.{a,la} |
e5b0e883 | 131 | |
08b26dc7 | 132 | %clean |
133 | rm -rf $RPM_BUILD_ROOT | |
134 | ||
e312fd68 JB |
135 | %post -p /sbin/ldconfig |
136 | %postun -p /sbin/ldconfig | |
137 | ||
138 | %post gnome | |
e5b0e883 MB |
139 | /sbin/ldconfig |
140 | umask 022 | |
76d02d11 | 141 | %{_bindir}/gdk-pixbuf-query-loaders%{pqext} --update-cache |
e5b0e883 | 142 | |
e312fd68 | 143 | %postun gnome |
e5b0e883 MB |
144 | /sbin/ldconfig |
145 | umask 022 | |
146 | if [ -x %{_bindir}/gdk-pixbuf-query-loaders%{pqext} ]; then | |
76d02d11 | 147 | %{_bindir}/gdk-pixbuf-query-loaders%{pqext} --update-cache |
e5b0e883 | 148 | fi |
08b26dc7 | 149 | |
150 | %files | |
151 | %defattr(644,root,root,755) | |
152 | %doc AUTHORS ChangeLog NEWS README TODO | |
bedcd43d JB |
153 | %attr(755,root,root) %{_libdir}/libopenraw.so.*.*.* |
154 | %attr(755,root,root) %ghost %{_libdir}/libopenraw.so.1 | |
08b26dc7 | 155 | |
156 | %files devel | |
157 | %defattr(644,root,root,755) | |
bedcd43d JB |
158 | %attr(755,root,root) %{_libdir}/libopenraw.so |
159 | %{_libdir}/libopenraw.la | |
160 | %dir %{_includedir}/libopenraw-1.0 | |
161 | %{_includedir}/libopenraw-1.0/libopenraw | |
162 | %{_pkgconfigdir}/libopenraw-1.0.pc | |
08b26dc7 | 163 | |
164 | %files static | |
165 | %defattr(644,root,root,755) | |
bedcd43d JB |
166 | %{_libdir}/libopenraw.a |
167 | ||
168 | %files gnome | |
169 | %defattr(644,root,root,755) | |
170 | %attr(755,root,root) %{_libdir}/libopenrawgnome.so.*.*.* | |
171 | %attr(755,root,root) %ghost %{_libdir}/libopenrawgnome.so.1 | |
e312fd68 | 172 | %attr(755,root,root) %{_libdir}/gdk-pixbuf-2.0/*/loaders/libopenraw_pixbuf.so |
bedcd43d JB |
173 | |
174 | %files gnome-devel | |
175 | %defattr(644,root,root,755) | |
176 | %attr(755,root,root) %{_libdir}/libopenrawgnome.so | |
177 | %{_libdir}/libopenrawgnome.la | |
178 | %{_includedir}/libopenraw-1.0/libopenraw-gnome | |
179 | %{_pkgconfigdir}/libopenraw-gnome-1.0.pc | |
180 | ||
181 | %files gnome-static | |
182 | %defattr(644,root,root,755) | |
183 | %{_libdir}/libopenrawgnome.a |