]>
Commit | Line | Data |
---|---|---|
2ddcaa5b JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without vala # Vala API | |
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 |
2ddcaa5b | 8 | Version: 0.1.6 |
afa57aa4 | 9 | Release: 1 |
84fad386 | 10 | License: LGPL v3+ |
c5542464 | 11 | Group: Libraries |
ce915584 | 12 | Source0: ftp://ftp.gimp.org/pub/babl/0.1/%{name}-%{version}.tar.bz2 |
2ddcaa5b | 13 | # Source0-md5: dc960981a5ec5330fc1c177be9f59068 |
afa57aa4 | 14 | Patch0: %{name}-as-needed.patch |
15 | URL: http://www.gegl.org/babl/ | |
9a2c082b | 16 | BuildRequires: autoconf >= 2.54 |
2ddcaa5b JB |
17 | BuildRequires: automake >= 1:1.11 |
18 | BuildRequires: gobject-introspection-devel >= 0.10 | |
19 | BuildRequires: libtool >= 2:2.2 | |
20 | %{?with_vala:BuildRequires: vala} | |
afa57aa4 | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
23 | %description | |
24 | Babl is a dynamic, any to any, pixel format conversion library. It | |
25 | provides conversions between the myriad of buffer types images can be | |
26 | stored in. Babl doesn't only help with existing pixel formats, but | |
27 | also facilitates creation of new and uncommon ones. | |
28 | ||
2a41f84a JB |
29 | %description -l pl.UTF-8 |
30 | Babl to biblioteka dynamicznych przekształceń między dowolnymi | |
31 | formatami pikseli. Udostępnia konwersje między wieloma różnymi typami | |
32 | buforów obrazów. Babl nie tylko pomaga przy istniejących formatach | |
33 | pikseli, ale także ułatwia tworzenie nowych i niestandardowych. | |
34 | ||
afa57aa4 | 35 | %package devel |
36 | Summary: Header files for babl library | |
37 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki babl | |
38 | Group: Development/Libraries | |
2a41f84a | 39 | Requires: %{name} = %{version}-%{release} |
afa57aa4 | 40 | |
41 | %description devel | |
42 | Header files for babl library. | |
43 | ||
44 | %description devel -l pl.UTF-8 | |
45 | Pliki nagłówkowe biblioteki babl. | |
46 | ||
47 | %package static | |
48 | Summary: Static babl library | |
49 | Summary(pl.UTF-8): Statyczna biblioteka babl | |
50 | Group: Development/Libraries | |
51 | Requires: %{name}-devel = %{version}-%{release} | |
52 | ||
53 | %description static | |
54 | Static babl library. | |
55 | ||
56 | %description static -l pl.UTF-8 | |
57 | Statyczna biblioteka babl. | |
58 | ||
2ddcaa5b JB |
59 | %package -n vala-babl |
60 | Summary: Vala API for babl library | |
61 | Summary(pl.UTF-8): API języka Vala dla biblioteki babl | |
62 | Group: Development/Libraries | |
63 | Requires: %{name}-devel = %{version}-%{release} | |
64 | Requires: vala | |
65 | ||
66 | %description -n vala-babl | |
67 | Vala API for babl library. | |
68 | ||
69 | %description -n vala-babl -l pl.UTF-8 | |
70 | API języka Vala dla biblioteki babl. | |
71 | ||
afa57aa4 | 72 | %prep |
73 | %setup -q | |
74 | %patch0 -p1 | |
75 | ||
76 | %build | |
9a2c082b | 77 | %{__libtoolize} |
afa57aa4 | 78 | %{__aclocal} |
79 | %{__autoconf} | |
9a2c082b | 80 | %{__autoheader} |
afa57aa4 | 81 | %{__automake} |
9a2c082b | 82 | %configure \ |
067734f3 | 83 | --disable-silent-rules \ |
9a2c082b | 84 | --enable-static |
afa57aa4 | 85 | %{__make} |
86 | ||
87 | %install | |
88 | rm -rf $RPM_BUILD_ROOT | |
89 | ||
90 | %{__make} install \ | |
91 | DESTDIR=$RPM_BUILD_ROOT | |
92 | ||
067734f3 JB |
93 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/babl-0.1/*.{la,a} |
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) | |
35584e15 | 103 | %doc AUTHORS ChangeLog 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 JB |
107 | %attr(755,root,root) %{_libdir}/babl-0.1/*.so |
108 | %{_libdir}/girepository-1.0/Babl-0.1.typelib | |
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 | |
35584e15 | 116 | %{_datadir}/gir-1.0/Babl-0.1.gir |
9a2c082b JB |
117 | %{_pkgconfigdir}/babl.pc |
118 | ||
119 | %files static | |
120 | %defattr(644,root,root,755) | |
44d1c6ca | 121 | %{_libdir}/libbabl-0.1.a |
2ddcaa5b JB |
122 | |
123 | %if %{with vala} | |
124 | %files -n vala-babl | |
125 | %defattr(644,root,root,755) | |
126 | %{_datadir}/vala/vapi/babl-0.1.vapi | |
127 | %endif |