]> git.pld-linux.org Git - packages/babl.git/blob - babl.spec
- dropped elfutils-devel BR (caused by broken glib2 build)
[packages/babl.git] / babl.spec
1 #
2 # Conditional build:
3 %bcond_without  introspection   # API introspection
4 %bcond_without  vala            # Vala API
5 #
6 %if %{without introspection}
7 %undefine       with_vala
8 %endif
9 Summary:        Library for pixel-format agnosticism
10 Summary(pl.UTF-8):      Biblioteka niezależności od formatu piksela
11 Name:           babl
12 Version:        0.1.10
13 Release:        0.1
14 License:        LGPL v3+
15 Group:          Libraries
16 Source0:        ftp://ftp.gimp.org/pub/babl/0.1/%{name}-%{version}.tar.bz2
17 # Source0-md5:  9e1542ab5c0b12ea3af076a9a2f02d79
18 Patch0:         %{name}-as-needed.patch
19 Patch1:         %{name}-gir-fix.patch
20 URL:            http://www.gegl.org/babl/
21 BuildRequires:  autoconf >= 2.54
22 BuildRequires:  automake >= 1:1.11
23 %{?with_introspection:BuildRequires:    gobject-introspection-devel >= 0.10}
24 BuildRequires:  libtool >= 2:2.2
25 %{?with_vala:BuildRequires:     vala}
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
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
40 %package devel
41 Summary:        Header files for babl library
42 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki babl
43 Group:          Development/Libraries
44 Requires:       %{name} = %{version}-%{release}
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
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
77 %prep
78 %setup -q
79 %patch0 -p1
80 %patch1 -p1
81
82 %build
83 %{__libtoolize}
84 %{__aclocal} -I m4
85 %{__autoconf}
86 %{__autoheader}
87 %{__automake}
88 %configure \
89         %{?with_introspection:--enable-introspection} \
90         --disable-silent-rules \
91         --enable-static \
92         %{!?with_vala:--without-vala}
93 %{__make}
94
95 %install
96 rm -rf $RPM_BUILD_ROOT
97
98 %{__make} install \
99         DESTDIR=$RPM_BUILD_ROOT
100
101 %{__rm} $RPM_BUILD_ROOT%{_libdir}/babl-0.1/*.{la,a}
102
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)
111 %doc AUTHORS ChangeLog NEWS README TODO
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
115 %attr(755,root,root) %{_libdir}/babl-0.1/*.so
116 %{?with_introspection:%{_libdir}/girepository-1.0/Babl-0.1.typelib}
117
118 %files devel
119 %defattr(644,root,root,755)
120 %doc docs/{*.html,*.css}
121 %attr(755,root,root) %{_libdir}/libbabl-0.1.so
122 %{_libdir}/libbabl-0.1.la
123 %{_includedir}/babl-0.1
124 %{?with_introspection:%{_datadir}/gir-1.0/Babl-0.1.gir}
125 %{_pkgconfigdir}/babl.pc
126
127 %files static
128 %defattr(644,root,root,755)
129 %{_libdir}/libbabl-0.1.a
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
This page took 0.058583 seconds and 3 git commands to generate.