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