]>
Commit | Line | Data |
---|---|---|
2ddcaa5b JB |
1 | # |
2 | # Conditional build: | |
bb114a76 | 3 | %bcond_without static_libs # static library |
2ddcaa5b | 4 | # |
afa57aa4 | 5 | Summary: Library for pixel-format agnosticism |
2a41f84a | 6 | Summary(pl.UTF-8): Biblioteka niezależności od formatu piksela |
afa57aa4 | 7 | Name: babl |
897a7325 | 8 | Version: 0.1.18 |
bb114a76 | 9 | Release: 1 |
84fad386 | 10 | License: LGPL v3+ |
c5542464 | 11 | Group: Libraries |
e921c3a8 | 12 | Source0: http://ftp.gimp.org/pub/babl/0.1/%{name}-%{version}.tar.bz2 |
897a7325 | 13 | # Source0-md5: 400d430e9c39b8795a65eb8a65fbe0af |
afa57aa4 | 14 | Patch0: %{name}-as-needed.patch |
15 | URL: http://www.gegl.org/babl/ | |
9a2c082b | 16 | BuildRequires: autoconf >= 2.54 |
2ddcaa5b | 17 | BuildRequires: automake >= 1:1.11 |
2ddcaa5b | 18 | BuildRequires: libtool >= 2:2.2 |
afa57aa4 | 19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
21 | %description | |
22 | Babl is a dynamic, any to any, pixel format conversion library. It | |
23 | provides conversions between the myriad of buffer types images can be | |
24 | stored in. Babl doesn't only help with existing pixel formats, but | |
25 | also facilitates creation of new and uncommon ones. | |
26 | ||
2a41f84a JB |
27 | %description -l pl.UTF-8 |
28 | Babl to biblioteka dynamicznych przekształceń między dowolnymi | |
29 | formatami pikseli. Udostępnia konwersje między wieloma różnymi typami | |
30 | buforów obrazów. Babl nie tylko pomaga przy istniejących formatach | |
31 | pikseli, ale także ułatwia tworzenie nowych i niestandardowych. | |
32 | ||
afa57aa4 | 33 | %package devel |
34 | Summary: Header files for babl library | |
35 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki babl | |
36 | Group: Development/Libraries | |
2a41f84a | 37 | Requires: %{name} = %{version}-%{release} |
afa57aa4 | 38 | |
39 | %description devel | |
40 | Header files for babl library. | |
41 | ||
42 | %description devel -l pl.UTF-8 | |
43 | Pliki nagłówkowe biblioteki babl. | |
44 | ||
45 | %package static | |
46 | Summary: Static babl library | |
47 | Summary(pl.UTF-8): Statyczna biblioteka babl | |
48 | Group: Development/Libraries | |
49 | Requires: %{name}-devel = %{version}-%{release} | |
50 | ||
51 | %description static | |
52 | Static babl library. | |
53 | ||
54 | %description static -l pl.UTF-8 | |
55 | Statyczna biblioteka babl. | |
56 | ||
2ddcaa5b JB |
57 | %package -n vala-babl |
58 | Summary: Vala API for babl library | |
59 | Summary(pl.UTF-8): API języka Vala dla biblioteki babl | |
60 | Group: Development/Libraries | |
61 | Requires: %{name}-devel = %{version}-%{release} | |
62 | Requires: vala | |
63 | ||
64 | %description -n vala-babl | |
65 | Vala API for babl library. | |
66 | ||
67 | %description -n vala-babl -l pl.UTF-8 | |
68 | API języka Vala dla biblioteki babl. | |
69 | ||
afa57aa4 | 70 | %prep |
71 | %setup -q | |
72 | %patch0 -p1 | |
73 | ||
74 | %build | |
30b4c98e JB |
75 | %{__libtoolize} |
76 | %{__aclocal} -I m4 | |
77 | %{__autoconf} | |
78 | %{__autoheader} | |
79 | %{__automake} | |
9a2c082b | 80 | %configure \ |
067734f3 | 81 | --disable-silent-rules \ |
bb114a76 | 82 | %{?with_static_libs:--enable-static} |
afa57aa4 | 83 | %{__make} |
84 | ||
85 | %install | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %{__make} install \ | |
89 | DESTDIR=$RPM_BUILD_ROOT | |
90 | ||
bb114a76 JB |
91 | # dlopened modules |
92 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/babl-0.1/*.la | |
93 | %if %{with static_libs} | |
94 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/babl-0.1/*.a | |
95 | %endif | |
067734f3 | 96 | |
afa57aa4 | 97 | %clean |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | ||
100 | %post -p /sbin/ldconfig | |
101 | %postun -p /sbin/ldconfig | |
102 | ||
103 | %files | |
104 | %defattr(644,root,root,755) | |
ffe852fb | 105 | %doc AUTHORS NEWS README TODO |
44d1c6ca AM |
106 | %attr(755,root,root) %{_libdir}/libbabl-0.1.so.*.*.* |
107 | %attr(755,root,root) %ghost %{_libdir}/libbabl-0.1.so.0 | |
108 | %dir %{_libdir}/babl-0.1 | |
35584e15 | 109 | %attr(755,root,root) %{_libdir}/babl-0.1/*.so |
9a2c082b JB |
110 | |
111 | %files devel | |
112 | %defattr(644,root,root,755) | |
113 | %doc docs/{*.html,*.css} | |
44d1c6ca AM |
114 | %attr(755,root,root) %{_libdir}/libbabl-0.1.so |
115 | %{_libdir}/libbabl-0.1.la | |
116 | %{_includedir}/babl-0.1 | |
9a2c082b JB |
117 | %{_pkgconfigdir}/babl.pc |
118 | ||
bb114a76 | 119 | %if %{with static_libs} |
9a2c082b JB |
120 | %files static |
121 | %defattr(644,root,root,755) | |
44d1c6ca | 122 | %{_libdir}/libbabl-0.1.a |
bb114a76 | 123 | %endif |
2ddcaa5b | 124 | |
bb114a76 | 125 | %if 0 |
2ddcaa5b JB |
126 | %files -n vala-babl |
127 | %defattr(644,root,root,755) | |
128 | %{_datadir}/vala/vapi/babl-0.1.vapi | |
129 | %endif |