]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Conditional build: | |
3 | %bcond_with ffmpeg # avcodec support (needs some unidentified ffmpeg version) | |
4 | ||
5 | Summary: Unicap Imaging Library - simple image processing functions | |
6 | Summary(pl.UTF-8): Unicap Imaging Library - biblioteka prostych funkcji przetwarzania obrazu | |
7 | Name: libucil | |
8 | Version: 0.9.10 | |
9 | Release: 11 | |
10 | License: GPL v2+ | |
11 | Group: Libraries | |
12 | #Source0Download: http://unicap-imaging.org/download.htm | |
13 | Source0: http://unicap-imaging.org/downloads/%{name}-%{version}.tar.gz | |
14 | # Source0-md5: 986adfd387d64726acd0267565ff9431 | |
15 | Patch0: %{name}-ac.patch | |
16 | URL: http://unicap-imaging.org/ | |
17 | BuildRequires: alsa-lib-devel >= 0.9 | |
18 | BuildRequires: autoconf >= 2.59 | |
19 | BuildRequires: automake | |
20 | %{?with_ffmpeg:BuildRequires: ffmpeg-devel >= ? < ?} | |
21 | BuildRequires: gettext-tools | |
22 | BuildRequires: glib2-devel >= 1:2.11.0 | |
23 | BuildRequires: gstreamer-devel >= 0.10 | |
24 | BuildRequires: gstreamer-plugins-base-devel >= 0.10 | |
25 | BuildRequires: gtk-doc >= 1.4 | |
26 | BuildRequires: libpng-devel | |
27 | BuildRequires: libtheora-devel | |
28 | BuildRequires: libtool | |
29 | BuildRequires: libunicap-devel | |
30 | BuildRequires: libvorbis-devel | |
31 | BuildRequires: pango-devel | |
32 | BuildRequires: pkgconfig | |
33 | Requires: glib2 >= 1:2.11.0 | |
34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
35 | ||
36 | %description | |
37 | Unicap Imaging Library is a set of simple image processing functions. | |
38 | ||
39 | %description -l pl.UTF-8 | |
40 | Unicap Imaging Library to biblioteka prostych funkcji przetwarzania | |
41 | obrazu. | |
42 | ||
43 | %package devel | |
44 | Summary: Header files for ucil library | |
45 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki ucil | |
46 | Group: Development/Libraries | |
47 | Requires: %{name} = %{version}-%{release} | |
48 | Requires: alsa-lib-devel >= 0.9 | |
49 | %{?with_ffmpeg:Requires: ffmpeg-devel} | |
50 | Requires: glib2-devel >= 1:2.11.0 | |
51 | Requires: gstreamer-devel >= 0.10 | |
52 | Requires: gstreamer-plugins-base-devel >= 0.10 | |
53 | Requires: libpng-devel | |
54 | Requires: libtheora-devel | |
55 | Requires: libunicap-devel | |
56 | Requires: libvorbis-devel | |
57 | Requires: pango-devel | |
58 | ||
59 | %description devel | |
60 | Header files for ucil library. | |
61 | ||
62 | %description devel -l pl.UTF-8 | |
63 | Pliki nagłówkowe biblioteki ucil. | |
64 | ||
65 | %package static | |
66 | Summary: Static ucil library | |
67 | Summary(pl.UTF-8): Statyczna biblioteka ucil | |
68 | Group: Development/Libraries | |
69 | Requires: %{name}-devel = %{version}-%{release} | |
70 | ||
71 | %description static | |
72 | Static ucil library. | |
73 | ||
74 | %description static -l pl.UTF-8 | |
75 | Statyczna biblioteka ucil. | |
76 | ||
77 | %package apidocs | |
78 | Summary: ucil API documentation | |
79 | Summary(pl.UTF-8): Dokumentacja API biblioteki ucil | |
80 | Group: Documentation | |
81 | Requires: gtk-doc-common | |
82 | BuildArch: noarch | |
83 | ||
84 | %description apidocs | |
85 | API documentation for ucil library. | |
86 | ||
87 | %description apidocs -l pl.UTF-8 | |
88 | Dokumentacja API biblioteki ucil. | |
89 | ||
90 | %prep | |
91 | %setup -q | |
92 | %patch0 -p1 | |
93 | ||
94 | %build | |
95 | # --enable-gpl allows to use some GPL gstreamer modules | |
96 | # (doesn't affect libucil license, as it's GPLed anyway) | |
97 | %{?with_ffmpeg:CPPFLAGS="%{rpmcppflags} -I/usr/include/libavcodec -I/usr/include/libavutil"} | |
98 | %{__gettextize} | |
99 | %{__libtoolize} | |
100 | %{__aclocal} | |
101 | %{__autoconf} | |
102 | %{__autoheader} | |
103 | %{__automake} | |
104 | %configure \ | |
105 | --enable-gpl \ | |
106 | %{?with_ffmpeg:--enable-ucil-avcodec} \ | |
107 | --with-html-dir=%{_gtkdocdir} | |
108 | %{__make} | |
109 | ||
110 | %install | |
111 | rm -rf $RPM_BUILD_ROOT | |
112 | ||
113 | %{__make} install \ | |
114 | DESTDIR=$RPM_BUILD_ROOT | |
115 | ||
116 | # obsoleted by pkg-config | |
117 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libucil.la | |
118 | ||
119 | %clean | |
120 | rm -rf $RPM_BUILD_ROOT | |
121 | ||
122 | %post -p /sbin/ldconfig | |
123 | %postun -p /sbin/ldconfig | |
124 | ||
125 | %files | |
126 | %defattr(644,root,root,755) | |
127 | %doc AUTHORS ChangeLog README | |
128 | %attr(755,root,root) %{_libdir}/libucil.so.*.*.* | |
129 | %attr(755,root,root) %ghost %{_libdir}/libucil.so.2 | |
130 | ||
131 | %files devel | |
132 | %defattr(644,root,root,755) | |
133 | %attr(755,root,root) %{_libdir}/libucil.so | |
134 | %{_includedir}/unicap/ucil*.h | |
135 | %{_pkgconfigdir}/libucil.pc | |
136 | ||
137 | %files static | |
138 | %defattr(644,root,root,755) | |
139 | %{_libdir}/libucil.a | |
140 | ||
141 | %files apidocs | |
142 | %defattr(644,root,root,755) | |
143 | %{_gtkdocdir}/libucil |