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