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