]> git.pld-linux.org Git - packages/babl.git/blob - babl.spec
- fixed auto* regeneration
[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 BuildRequires:  elfutils-devel
24 %{?with_introspection:BuildRequires:    gobject-introspection-devel >= 0.10}
25 BuildRequires:  libtool >= 2:2.2
26 %{?with_vala:BuildRequires:     vala}
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
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
41 %package devel
42 Summary:        Header files for babl library
43 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki babl
44 Group:          Development/Libraries
45 Requires:       %{name} = %{version}-%{release}
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
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
78 %prep
79 %setup -q
80 %patch0 -p1
81 %patch1 -p1
82
83 %build
84 %{__libtoolize}
85 %{__aclocal} -I m4
86 %{__autoconf}
87 %{__autoheader}
88 %{__automake}
89 %configure \
90         %{?with_introspection:--enable-introspection} \
91         --disable-silent-rules \
92         --enable-static \
93         %{!?with_vala:--without-vala}
94 %{__make}
95
96 %install
97 rm -rf $RPM_BUILD_ROOT
98
99 %{__make} install \
100         DESTDIR=$RPM_BUILD_ROOT
101
102 %{__rm} $RPM_BUILD_ROOT%{_libdir}/babl-0.1/*.{la,a}
103
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)
112 %doc AUTHORS ChangeLog NEWS README TODO
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
116 %attr(755,root,root) %{_libdir}/babl-0.1/*.so
117 %{?with_introspection:%{_libdir}/girepository-1.0/Babl-0.1.typelib}
118
119 %files devel
120 %defattr(644,root,root,755)
121 %doc docs/{*.html,*.css}
122 %attr(755,root,root) %{_libdir}/libbabl-0.1.so
123 %{_libdir}/libbabl-0.1.la
124 %{_includedir}/babl-0.1
125 %{?with_introspection:%{_datadir}/gir-1.0/Babl-0.1.gir}
126 %{_pkgconfigdir}/babl.pc
127
128 %files static
129 %defattr(644,root,root,755)
130 %{_libdir}/libbabl-0.1.a
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
This page took 0.051019 seconds and 4 git commands to generate.