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