]>
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 |
5296e85b | 8 | Version: 0.1.62 |
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 |
5296e85b | 13 | # Source0-md5: 28fa9d43549378ceebe2871d7721dd46 |
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} |
afa57aa4 | 37 | |
38 | %description devel | |
39 | Header files for babl library. | |
40 | ||
41 | %description devel -l pl.UTF-8 | |
42 | Pliki nagłówkowe biblioteki babl. | |
43 | ||
44 | %package static | |
45 | Summary: Static babl library | |
46 | Summary(pl.UTF-8): Statyczna biblioteka babl | |
47 | Group: Development/Libraries | |
48 | Requires: %{name}-devel = %{version}-%{release} | |
49 | ||
50 | %description static | |
51 | Static babl library. | |
52 | ||
53 | %description static -l pl.UTF-8 | |
54 | Statyczna biblioteka babl. | |
55 | ||
2ddcaa5b JB |
56 | %package -n vala-babl |
57 | Summary: Vala API for babl library | |
58 | Summary(pl.UTF-8): API języka Vala dla biblioteki babl | |
59 | Group: Development/Libraries | |
60 | Requires: %{name}-devel = %{version}-%{release} | |
61 | Requires: vala | |
62 | ||
63 | %description -n vala-babl | |
64 | Vala API for babl library. | |
65 | ||
66 | %description -n vala-babl -l pl.UTF-8 | |
67 | API języka Vala dla biblioteki babl. | |
68 | ||
afa57aa4 | 69 | %prep |
70 | %setup -q | |
afa57aa4 | 71 | |
72 | %build | |
30b4c98e JB |
73 | %{__libtoolize} |
74 | %{__aclocal} -I m4 | |
75 | %{__autoconf} | |
76 | %{__autoheader} | |
77 | %{__automake} | |
9a2c082b | 78 | %configure \ |
067734f3 | 79 | --disable-silent-rules \ |
bb114a76 | 80 | %{?with_static_libs:--enable-static} |
afa57aa4 | 81 | %{__make} |
82 | ||
83 | %install | |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | ||
86 | %{__make} install \ | |
87 | DESTDIR=$RPM_BUILD_ROOT | |
88 | ||
bb114a76 JB |
89 | # dlopened modules |
90 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/babl-0.1/*.la | |
91 | %if %{with static_libs} | |
92 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/babl-0.1/*.a | |
93 | %endif | |
067734f3 | 94 | |
afa57aa4 | 95 | %clean |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | ||
98 | %post -p /sbin/ldconfig | |
99 | %postun -p /sbin/ldconfig | |
100 | ||
101 | %files | |
102 | %defattr(644,root,root,755) | |
ffe852fb | 103 | %doc AUTHORS NEWS README TODO |
44d1c6ca AM |
104 | %attr(755,root,root) %{_libdir}/libbabl-0.1.so.*.*.* |
105 | %attr(755,root,root) %ghost %{_libdir}/libbabl-0.1.so.0 | |
106 | %dir %{_libdir}/babl-0.1 | |
35584e15 | 107 | %attr(755,root,root) %{_libdir}/babl-0.1/*.so |
9a2c082b JB |
108 | |
109 | %files devel | |
110 | %defattr(644,root,root,755) | |
111 | %doc docs/{*.html,*.css} | |
44d1c6ca AM |
112 | %attr(755,root,root) %{_libdir}/libbabl-0.1.so |
113 | %{_libdir}/libbabl-0.1.la | |
114 | %{_includedir}/babl-0.1 | |
9a2c082b JB |
115 | %{_pkgconfigdir}/babl.pc |
116 | ||
bb114a76 | 117 | %if %{with static_libs} |
9a2c082b JB |
118 | %files static |
119 | %defattr(644,root,root,755) | |
44d1c6ca | 120 | %{_libdir}/libbabl-0.1.a |
bb114a76 | 121 | %endif |
2ddcaa5b | 122 | |
bb114a76 | 123 | %if 0 |
2ddcaa5b JB |
124 | %files -n vala-babl |
125 | %defattr(644,root,root,755) | |
126 | %{_datadir}/vala/vapi/babl-0.1.vapi | |
127 | %endif |