]>
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 |
cceb564d JB |
4 | Version: 0.0.9 |
5 | Release: 1 | |
6f2f45d1 | 6 | License: LGPL v2.1+ |
21d5447a | 7 | Group: Libraries |
cceb564d JB |
8 | Source0: http://libopenraw.freedesktop.org/download/%{name}-%{version}.tar.bz2 |
9 | # Source0-md5: 3611d8aea870d25314665ef53093288e | |
08b26dc7 | 10 | URL: http://libopenraw.freedesktop.org/ |
76d02d11 MB |
11 | BuildRequires: autoconf >= 2.50 |
12 | BuildRequires: automake | |
14de13dc | 13 | BuildRequires: boost-devel >= 1.35.0 |
e312fd68 | 14 | BuildRequires: gdk-pixbuf2-devel >= 2.0.0 |
cceb564d | 15 | BuildRequires: glib2-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 |
cceb564d | 78 | Requires: glib2 >= 2.0.0 |
bedcd43d JB |
79 | |
80 | %description gnome | |
81 | Library for decoding RAW images - GTK+/GNOME support. | |
82 | ||
83 | %description gnome -l pl.UTF-8 | |
84 | Biblioteka dekodująca obrazy w formacie RAW - obsługa GTK+/GNOME. | |
85 | ||
86 | %package gnome-devel | |
87 | Summary: Header file for libopenrawgnome library | |
88 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki libopenrawgnome | |
89 | Group: X11/Development/Libraries | |
90 | Requires: %{name}-devel = %{version}-%{release} | |
91 | Requires: %{name}-gnome = %{version}-%{release} | |
80ec251f | 92 | Requires: gdk-pixbuf2-devel >= 2.0.0 |
cceb564d | 93 | Requires: glib2-devel >= 2.0.0 |
bedcd43d JB |
94 | |
95 | %description gnome-devel | |
96 | Header file for libopenrawgnome library. | |
97 | ||
98 | %description gnome-devel -l pl.UTF-8 | |
99 | Plik nagłówkowy biblioteki libopenrawgnome. | |
100 | ||
101 | %package gnome-static | |
102 | Summary: Static libopenrawgnome library | |
103 | Summary(pl.UTF-8): Statyczna biblioteka libopenrawgnome | |
104 | Group: X11/Development/Libraries | |
105 | Requires: %{name}-gnome-devel = %{version}-%{release} | |
106 | ||
107 | %description gnome-static | |
108 | Static libopenrawgnome library. | |
109 | ||
110 | %description gnome-static -l pl.UTF-8 | |
111 | Statyczna biblioteka libopenrawgnome. | |
112 | ||
08b26dc7 | 113 | %prep |
114 | %setup -q | |
115 | ||
116 | %build | |
76d02d11 MB |
117 | %{__aclocal} -I m4 |
118 | %{__autoconf} | |
119 | %{__autoheader} | |
120 | %{__automake} | |
08b26dc7 | 121 | %configure |
76d02d11 | 122 | %{__make} V=1 |
08b26dc7 | 123 | |
124 | %install | |
125 | rm -rf $RPM_BUILD_ROOT | |
126 | ||
e312fd68 JB |
127 | %{__make} install \ |
128 | DESTDIR=$RPM_BUILD_ROOT \ | |
129 | V=1 | |
08b26dc7 | 130 | |
e312fd68 | 131 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/gdk-pixbuf-2.0/*/loaders/*.{a,la} |
e5b0e883 | 132 | |
08b26dc7 | 133 | %clean |
134 | rm -rf $RPM_BUILD_ROOT | |
135 | ||
e312fd68 JB |
136 | %post -p /sbin/ldconfig |
137 | %postun -p /sbin/ldconfig | |
138 | ||
139 | %post gnome | |
e5b0e883 MB |
140 | /sbin/ldconfig |
141 | umask 022 | |
76d02d11 | 142 | %{_bindir}/gdk-pixbuf-query-loaders%{pqext} --update-cache |
e5b0e883 | 143 | |
e312fd68 | 144 | %postun gnome |
e5b0e883 MB |
145 | /sbin/ldconfig |
146 | umask 022 | |
147 | if [ -x %{_bindir}/gdk-pixbuf-query-loaders%{pqext} ]; then | |
76d02d11 | 148 | %{_bindir}/gdk-pixbuf-query-loaders%{pqext} --update-cache |
e5b0e883 | 149 | fi |
08b26dc7 | 150 | |
151 | %files | |
152 | %defattr(644,root,root,755) | |
153 | %doc AUTHORS ChangeLog NEWS README TODO | |
bedcd43d JB |
154 | %attr(755,root,root) %{_libdir}/libopenraw.so.*.*.* |
155 | %attr(755,root,root) %ghost %{_libdir}/libopenraw.so.1 | |
08b26dc7 | 156 | |
157 | %files devel | |
158 | %defattr(644,root,root,755) | |
bedcd43d JB |
159 | %attr(755,root,root) %{_libdir}/libopenraw.so |
160 | %{_libdir}/libopenraw.la | |
161 | %dir %{_includedir}/libopenraw-1.0 | |
162 | %{_includedir}/libopenraw-1.0/libopenraw | |
163 | %{_pkgconfigdir}/libopenraw-1.0.pc | |
08b26dc7 | 164 | |
165 | %files static | |
166 | %defattr(644,root,root,755) | |
bedcd43d JB |
167 | %{_libdir}/libopenraw.a |
168 | ||
169 | %files gnome | |
170 | %defattr(644,root,root,755) | |
171 | %attr(755,root,root) %{_libdir}/libopenrawgnome.so.*.*.* | |
172 | %attr(755,root,root) %ghost %{_libdir}/libopenrawgnome.so.1 | |
e312fd68 | 173 | %attr(755,root,root) %{_libdir}/gdk-pixbuf-2.0/*/loaders/libopenraw_pixbuf.so |
bedcd43d JB |
174 | |
175 | %files gnome-devel | |
176 | %defattr(644,root,root,755) | |
177 | %attr(755,root,root) %{_libdir}/libopenrawgnome.so | |
178 | %{_libdir}/libopenrawgnome.la | |
179 | %{_includedir}/libopenraw-1.0/libopenraw-gnome | |
180 | %{_pkgconfigdir}/libopenraw-gnome-1.0.pc | |
181 | ||
182 | %files gnome-static | |
183 | %defattr(644,root,root,755) | |
184 | %{_libdir}/libopenrawgnome.a |