]>
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 |
40dddec8 JB |
4 | Version: 0.2.3 |
5 | Release: 1 | |
6f2f45d1 | 6 | License: LGPL v2.1+ |
21d5447a | 7 | Group: Libraries |
eb6179ee | 8 | Source0: https://libopenraw.freedesktop.org/download/%{name}-%{version}.tar.xz |
40dddec8 | 9 | # Source0-md5: 6081f678f8c06216dfb10af24bbfc85f |
75d9a064 JB |
10 | # cd libopenraw-%{version} |
11 | # cargo vendor --manifest-path lib/mp4/Cargo.toml --sync lib/mp4/mp4parse_capi/Cargo.toml --sync lib/mp4/mp4parse/Cargo.toml --no-delete --versioned-dirs | |
12 | # cd .. | |
13 | # tar cJf libopenraw-%{version}-vendor.tar.xz libopenraw-%{version}/vendor libopenraw-%{version}/lib/mp4/Cargo.lock libopenraw-%{version}/lib/mp4/mp4parse_capi/Cargo.lock libopenraw-%{version}/lib/mp4/mp4parse/Cargo.lock | |
14 | Source1: %{name}-%{version}-vendor.tar.xz | |
15 | # Source1-md5: 1d51cd2d97ab62335d92f82c21a54f35 | |
40dddec8 JB |
16 | Patch0: %{name}-pc.patch |
17 | Patch1: %{name}-link.patch | |
4c9f1cf8 | 18 | URL: https://libopenraw.freedesktop.org/ |
76d02d11 MB |
19 | BuildRequires: autoconf >= 2.50 |
20 | BuildRequires: automake | |
14de13dc | 21 | BuildRequires: boost-devel >= 1.35.0 |
40dddec8 | 22 | BuildRequires: cargo |
e312fd68 | 23 | BuildRequires: gdk-pixbuf2-devel >= 2.0.0 |
cceb564d | 24 | BuildRequires: glib2-devel >= 2.0.0 |
c2c2b2ca | 25 | BuildRequires: libjpeg-devel |
3c89413c | 26 | BuildRequires: libstdc++-devel >= 6:4.8 |
40dddec8 | 27 | BuildRequires: libtool >= 1:1.4.2 |
3c89413c | 28 | # required for testsuite |
bedcd43d | 29 | BuildRequires: libxml2-devel >= 1:2.5.0 |
507265a4 | 30 | BuildRequires: pkgconfig |
40dddec8 JB |
31 | BuildRequires: rust |
32 | ExclusiveArch: %{ix86} %{x8664} x32 aarch64 | |
08b26dc7 | 33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
34 | ||
e5b0e883 | 35 | %if "%{_lib}" != "lib" |
5938903d | 36 | %define libext %(lib="%{_lib}"; echo ${lib#lib}) |
5938903d | 37 | %define pqext -%{libext} |
e5b0e883 | 38 | %else |
5938903d | 39 | %define pqext %{nil} |
e5b0e883 MB |
40 | %endif |
41 | ||
08b26dc7 | 42 | %description |
43 | libopenraw is an ongoing project to provide a free software | |
44 | implementation for camera RAW files decoding. One of the main reason | |
21d5447a JB |
45 | is that dcraw is not suited for easy integration into applications, |
46 | and there is a need for an easy to use API to build free software | |
47 | digital image processing application. | |
08b26dc7 | 48 | |
b865330f | 49 | %description -l pl.UTF-8 |
50 | libopenraw jest projektem dostarczającym wolnodostępną | |
51 | implementację dekodera plików w formacie RAW obsługiwanych przez | |
52 | cyfrowe aparaty fotograficzne. Jednym z głównych powodów powstania | |
21d5447a JB |
53 | tej biblioteki jest to, że dcraw nie jest przystosowany do łatwej |
54 | integracji z aplikacjami, a istnieje potrzeba stworzenia łatwego w | |
55 | użyciu API do budowy wolnodostępnej aplikacji przetwarzania cyfrowych | |
56 | obrazów. | |
b865330f | 57 | |
08b26dc7 | 58 | %package devel |
59 | Summary: Header files for libopenraw library | |
b865330f | 60 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libopenraw |
08b26dc7 | 61 | Group: Development/Libraries |
62 | Requires: %{name} = %{version}-%{release} | |
507265a4 JB |
63 | Requires: libjpeg-devel |
64 | Requires: libstdc++-devel | |
08b26dc7 | 65 | |
66 | %description devel | |
67 | Header files for libopenraw library. | |
68 | ||
69 | %description devel -l pl.UTF-8 | |
70 | Pliki nagłówkowe biblioteki libopenraw. | |
71 | ||
72 | %package static | |
73 | Summary: Static libopenraw library | |
74 | Summary(pl.UTF-8): Statyczna biblioteka libopenraw | |
75 | Group: Development/Libraries | |
76 | Requires: %{name}-devel = %{version}-%{release} | |
77 | ||
78 | %description static | |
79 | Static libopenraw library. | |
80 | ||
81 | %description static -l pl.UTF-8 | |
82 | Statyczna biblioteka libopenraw. | |
83 | ||
bedcd43d JB |
84 | %package gnome |
85 | Summary: Library for decoding RAW images - GTK+/GNOME support | |
86 | Summary(pl.UTF-8): Biblioteka dekodująca obrazy w formacie RAW - obsługa GTK+/GNOME | |
87 | Group: X11/Libraries | |
e312fd68 JB |
88 | Requires(post,postun): /sbin/ldconfig |
89 | Requires(post,postun): gdk-pixbuf2 >= 2.0.0 | |
bedcd43d | 90 | Requires: %{name} = %{version}-%{release} |
e312fd68 | 91 | Requires: gdk-pixbuf2 >= 2.0.0 |
cceb564d | 92 | Requires: glib2 >= 2.0.0 |
bedcd43d JB |
93 | |
94 | %description gnome | |
95 | Library for decoding RAW images - GTK+/GNOME support. | |
96 | ||
97 | %description gnome -l pl.UTF-8 | |
98 | Biblioteka dekodująca obrazy w formacie RAW - obsługa GTK+/GNOME. | |
99 | ||
100 | %package gnome-devel | |
101 | Summary: Header file for libopenrawgnome library | |
102 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki libopenrawgnome | |
103 | Group: X11/Development/Libraries | |
104 | Requires: %{name}-devel = %{version}-%{release} | |
105 | Requires: %{name}-gnome = %{version}-%{release} | |
80ec251f | 106 | Requires: gdk-pixbuf2-devel >= 2.0.0 |
cceb564d | 107 | Requires: glib2-devel >= 2.0.0 |
bedcd43d JB |
108 | |
109 | %description gnome-devel | |
110 | Header file for libopenrawgnome library. | |
111 | ||
112 | %description gnome-devel -l pl.UTF-8 | |
113 | Plik nagłówkowy biblioteki libopenrawgnome. | |
114 | ||
115 | %package gnome-static | |
116 | Summary: Static libopenrawgnome library | |
117 | Summary(pl.UTF-8): Statyczna biblioteka libopenrawgnome | |
118 | Group: X11/Development/Libraries | |
119 | Requires: %{name}-gnome-devel = %{version}-%{release} | |
120 | ||
121 | %description gnome-static | |
122 | Static libopenrawgnome library. | |
123 | ||
124 | %description gnome-static -l pl.UTF-8 | |
125 | Statyczna biblioteka libopenrawgnome. | |
126 | ||
08b26dc7 | 127 | %prep |
75d9a064 | 128 | %setup -q -b1 |
40dddec8 JB |
129 | %patch0 -p1 |
130 | %patch1 -p1 | |
08b26dc7 | 131 | |
75d9a064 JB |
132 | install -d .cargo |
133 | cat >.cargo/config <<EOF | |
134 | [source.crates-io] | |
135 | replace-with = 'vendored-sources' | |
136 | ||
137 | [source.vendored-sources] | |
138 | directory = '$PWD/vendor' | |
139 | EOF | |
140 | ||
08b26dc7 | 141 | %build |
75d9a064 JB |
142 | export CARGO_HOME="$(pwd)/.cargo" |
143 | ||
40dddec8 | 144 | %{__libtoolize} |
76d02d11 MB |
145 | %{__aclocal} -I m4 |
146 | %{__autoconf} | |
147 | %{__autoheader} | |
148 | %{__automake} | |
4c9f1cf8 JB |
149 | %configure \ |
150 | --disable-silent-rules | |
40dddec8 | 151 | |
4c9f1cf8 | 152 | %{__make} |
08b26dc7 | 153 | |
154 | %install | |
155 | rm -rf $RPM_BUILD_ROOT | |
156 | ||
e312fd68 | 157 | %{__make} install \ |
4c9f1cf8 | 158 | DESTDIR=$RPM_BUILD_ROOT |
08b26dc7 | 159 | |
7a4330e1 JB |
160 | # obsoleted by pkg-config |
161 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libopenraw*.la | |
162 | # dynamic modules | |
e312fd68 | 163 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gdk-pixbuf-2.0/*/loaders/*.{a,la} |
e5b0e883 | 164 | |
08b26dc7 | 165 | %clean |
166 | rm -rf $RPM_BUILD_ROOT | |
167 | ||
e312fd68 JB |
168 | %post -p /sbin/ldconfig |
169 | %postun -p /sbin/ldconfig | |
170 | ||
171 | %post gnome | |
e5b0e883 MB |
172 | /sbin/ldconfig |
173 | umask 022 | |
76d02d11 | 174 | %{_bindir}/gdk-pixbuf-query-loaders%{pqext} --update-cache |
e5b0e883 | 175 | |
e312fd68 | 176 | %postun gnome |
e5b0e883 MB |
177 | /sbin/ldconfig |
178 | umask 022 | |
179 | if [ -x %{_bindir}/gdk-pixbuf-query-loaders%{pqext} ]; then | |
76d02d11 | 180 | %{_bindir}/gdk-pixbuf-query-loaders%{pqext} --update-cache |
e5b0e883 | 181 | fi |
08b26dc7 | 182 | |
183 | %files | |
184 | %defattr(644,root,root,755) | |
185 | %doc AUTHORS ChangeLog NEWS README TODO | |
bedcd43d | 186 | %attr(755,root,root) %{_libdir}/libopenraw.so.*.*.* |
40dddec8 | 187 | %attr(755,root,root) %ghost %{_libdir}/libopenraw.so.8 |
08b26dc7 | 188 | |
189 | %files devel | |
190 | %defattr(644,root,root,755) | |
bedcd43d | 191 | %attr(755,root,root) %{_libdir}/libopenraw.so |
40dddec8 JB |
192 | %dir %{_includedir}/libopenraw-0.2 |
193 | %{_includedir}/libopenraw-0.2/libopenraw | |
194 | %{_pkgconfigdir}/libopenraw-0.2.pc | |
08b26dc7 | 195 | |
196 | %files static | |
197 | %defattr(644,root,root,755) | |
bedcd43d JB |
198 | %{_libdir}/libopenraw.a |
199 | ||
200 | %files gnome | |
201 | %defattr(644,root,root,755) | |
202 | %attr(755,root,root) %{_libdir}/libopenrawgnome.so.*.*.* | |
40dddec8 | 203 | %attr(755,root,root) %ghost %{_libdir}/libopenrawgnome.so.8 |
e312fd68 | 204 | %attr(755,root,root) %{_libdir}/gdk-pixbuf-2.0/*/loaders/libopenraw_pixbuf.so |
bedcd43d JB |
205 | |
206 | %files gnome-devel | |
207 | %defattr(644,root,root,755) | |
208 | %attr(755,root,root) %{_libdir}/libopenrawgnome.so | |
40dddec8 JB |
209 | %{_includedir}/libopenraw-0.2/libopenraw-gnome |
210 | %{_pkgconfigdir}/libopenraw-gnome-0.2.pc | |
bedcd43d JB |
211 | |
212 | %files gnome-static | |
213 | %defattr(644,root,root,755) | |
214 | %{_libdir}/libopenrawgnome.a |