]>
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 |
7cbe63d1 | 8 | Version: 0.1.64 |
bb114a76 | 9 | Release: 1 |
84fad386 | 10 | License: LGPL v3+ |
c5542464 | 11 | Group: Libraries |
dbdee06e | 12 | Source0: https://download.gimp.org/pub/babl/0.1/%{name}-%{version}.tar.bz2 |
7cbe63d1 | 13 | # Source0-md5: 3f4a61a9ca5c78129095fed958f2995f |
afa57aa4 | 14 | URL: http://www.gegl.org/babl/ |
9a2c082b | 15 | BuildRequires: autoconf >= 2.54 |
2ddcaa5b | 16 | BuildRequires: automake >= 1:1.11 |
2ddcaa5b | 17 | BuildRequires: libtool >= 2:2.2 |
afa57aa4 | 18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
19 | ||
20 | %description | |
21 | Babl is a dynamic, any to any, pixel format conversion library. It | |
22 | provides conversions between the myriad of buffer types images can be | |
23 | stored in. Babl doesn't only help with existing pixel formats, but | |
24 | also facilitates creation of new and uncommon ones. | |
25 | ||
2a41f84a JB |
26 | %description -l pl.UTF-8 |
27 | Babl to biblioteka dynamicznych przekształceń między dowolnymi | |
28 | formatami pikseli. Udostępnia konwersje między wieloma różnymi typami | |
29 | buforów obrazów. Babl nie tylko pomaga przy istniejących formatach | |
30 | pikseli, ale także ułatwia tworzenie nowych i niestandardowych. | |
31 | ||
afa57aa4 | 32 | %package devel |
33 | Summary: Header files for babl library | |
34 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki babl | |
35 | Group: Development/Libraries | |
2a41f84a | 36 | Requires: %{name} = %{version}-%{release} |
7cbe63d1 | 37 | Obsoletes: vala-babl < 0.1.12 |
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 | |
afa57aa4 | 72 | |
73 | %build | |
30b4c98e JB |
74 | %{__libtoolize} |
75 | %{__aclocal} -I m4 | |
76 | %{__autoconf} | |
77 | %{__autoheader} | |
78 | %{__automake} | |
9a2c082b | 79 | %configure \ |
067734f3 | 80 | --disable-silent-rules \ |
bb114a76 | 81 | %{?with_static_libs:--enable-static} |
afa57aa4 | 82 | %{__make} |
83 | ||
84 | %install | |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | ||
87 | %{__make} install \ | |
88 | DESTDIR=$RPM_BUILD_ROOT | |
89 | ||
bb114a76 JB |
90 | # dlopened modules |
91 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/babl-0.1/*.la | |
92 | %if %{with static_libs} | |
93 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/babl-0.1/*.a | |
94 | %endif | |
067734f3 | 95 | |
afa57aa4 | 96 | %clean |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | ||
99 | %post -p /sbin/ldconfig | |
100 | %postun -p /sbin/ldconfig | |
101 | ||
102 | %files | |
103 | %defattr(644,root,root,755) | |
ffe852fb | 104 | %doc AUTHORS NEWS README TODO |
44d1c6ca AM |
105 | %attr(755,root,root) %{_libdir}/libbabl-0.1.so.*.*.* |
106 | %attr(755,root,root) %ghost %{_libdir}/libbabl-0.1.so.0 | |
107 | %dir %{_libdir}/babl-0.1 | |
35584e15 | 108 | %attr(755,root,root) %{_libdir}/babl-0.1/*.so |
9a2c082b JB |
109 | |
110 | %files devel | |
111 | %defattr(644,root,root,755) | |
112 | %doc docs/{*.html,*.css} | |
44d1c6ca AM |
113 | %attr(755,root,root) %{_libdir}/libbabl-0.1.so |
114 | %{_libdir}/libbabl-0.1.la | |
115 | %{_includedir}/babl-0.1 | |
9a2c082b JB |
116 | %{_pkgconfigdir}/babl.pc |
117 | ||
bb114a76 | 118 | %if %{with static_libs} |
9a2c082b JB |
119 | %files static |
120 | %defattr(644,root,root,755) | |
44d1c6ca | 121 | %{_libdir}/libbabl-0.1.a |
bb114a76 | 122 | %endif |
2ddcaa5b | 123 | |
bb114a76 | 124 | %if 0 |
2ddcaa5b JB |
125 | %files -n vala-babl |
126 | %defattr(644,root,root,755) | |
127 | %{_datadir}/vala/vapi/babl-0.1.vapi | |
128 | %endif |