]> git.pld-linux.org Git - packages/babl.git/blob - babl.spec
- updated to 0.1.6
[packages/babl.git] / babl.spec
1 #
2 # Conditional build:
3 %bcond_without  vala    # Vala API
4 #
5 Summary:        Library for pixel-format agnosticism
6 Summary(pl.UTF-8):      Biblioteka niezależności od formatu piksela
7 Name:           babl
8 Version:        0.1.6
9 Release:        1
10 License:        LGPL v3+
11 Group:          Libraries
12 Source0:        ftp://ftp.gimp.org/pub/babl/0.1/%{name}-%{version}.tar.bz2
13 # Source0-md5:  dc960981a5ec5330fc1c177be9f59068
14 Patch0:         %{name}-as-needed.patch
15 URL:            http://www.gegl.org/babl/
16 BuildRequires:  autoconf >= 2.54
17 BuildRequires:  automake >= 1:1.11
18 BuildRequires:  gobject-introspection-devel >= 0.10
19 BuildRequires:  libtool >= 2:2.2
20 %{?with_vala:BuildRequires:     vala}
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
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
35 %package devel
36 Summary:        Header files for babl library
37 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki babl
38 Group:          Development/Libraries
39 Requires:       %{name} = %{version}-%{release}
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
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
72 %prep
73 %setup -q
74 %patch0 -p1
75
76 %build
77 %{__libtoolize}
78 %{__aclocal}
79 %{__autoconf}
80 %{__autoheader}
81 %{__automake}
82 %configure \
83         --disable-silent-rules \
84         --enable-static
85 %{__make}
86
87 %install
88 rm -rf $RPM_BUILD_ROOT
89
90 %{__make} install \
91         DESTDIR=$RPM_BUILD_ROOT
92
93 %{__rm} $RPM_BUILD_ROOT%{_libdir}/babl-0.1/*.{la,a}
94
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)
103 %doc AUTHORS ChangeLog NEWS README TODO
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
107 %attr(755,root,root) %{_libdir}/babl-0.1/*.so
108 %{_libdir}/girepository-1.0/Babl-0.1.typelib
109
110 %files devel
111 %defattr(644,root,root,755)
112 %doc docs/{*.html,*.css}
113 %attr(755,root,root) %{_libdir}/libbabl-0.1.so
114 %{_libdir}/libbabl-0.1.la
115 %{_includedir}/babl-0.1
116 %{_datadir}/gir-1.0/Babl-0.1.gir
117 %{_pkgconfigdir}/babl.pc
118
119 %files static
120 %defattr(644,root,root,755)
121 %{_libdir}/libbabl-0.1.a
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
This page took 0.031461 seconds and 3 git commands to generate.