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