]>
Commit | Line | Data |
---|---|---|
3862f048 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with ffmpeg # avcodec support (needs some unidentified ffmpeg version) | |
ca39fcba | 4 | |
3862f048 JB |
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 | |
ca39fcba | 9 | Release: 8 |
3862f048 JB |
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 | |
5bdb22df | 15 | Patch0: %{name}-ac.patch |
3862f048 JB |
16 | URL: http://unicap-imaging.org/ |
17 | BuildRequires: alsa-lib-devel >= 0.9 | |
a9f3002a | 18 | BuildRequires: autoconf >= 2.59 |
5bdb22df | 19 | BuildRequires: automake |
3862f048 | 20 | %{?with_ffmpeg:BuildRequires: ffmpeg-devel >= ? < ?} |
0dd75149 | 21 | BuildRequires: gettext-tools |
3862f048 JB |
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 | |
ca39fcba | 28 | BuildRequires: libtool |
3862f048 JB |
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 | |
ca39fcba ER |
82 | %if "%{_rpmversion}" >= "5" |
83 | BuildArch: noarch | |
84 | %endif | |
3862f048 JB |
85 | |
86 | %description apidocs | |
87 | API documentation for ucil library. | |
88 | ||
89 | %description apidocs -l pl.UTF-8 | |
90 | Dokumentacja API biblioteki ucil. | |
91 | ||
92 | %prep | |
93 | %setup -q | |
5bdb22df | 94 | %patch0 -p1 |
3862f048 JB |
95 | |
96 | %build | |
97 | # --enable-gpl allows to use some GPL gstreamer modules | |
98 | # (doesn't affect libucil license, as it's GPLed anyway) | |
99 | %{?with_ffmpeg:CPPFLAGS="%{rpmcppflags} -I/usr/include/libavcodec -I/usr/include/libavutil"} | |
5bdb22df AG |
100 | %{__gettextize} |
101 | %{__libtoolize} | |
102 | %{__aclocal} | |
103 | %{__autoconf} | |
104 | %{__autoheader} | |
105 | %{__automake} | |
3862f048 JB |
106 | %configure \ |
107 | --enable-gpl \ | |
108 | %{?with_ffmpeg:--enable-ucil-avcodec} \ | |
109 | --with-html-dir=%{_gtkdocdir} | |
110 | %{__make} | |
111 | ||
112 | %install | |
113 | rm -rf $RPM_BUILD_ROOT | |
114 | ||
115 | %{__make} install \ | |
116 | DESTDIR=$RPM_BUILD_ROOT | |
117 | ||
118 | %clean | |
119 | rm -rf $RPM_BUILD_ROOT | |
120 | ||
121 | %post -p /sbin/ldconfig | |
122 | %postun -p /sbin/ldconfig | |
123 | ||
124 | %files | |
125 | %defattr(644,root,root,755) | |
126 | %doc AUTHORS ChangeLog README | |
127 | %attr(755,root,root) %{_libdir}/libucil.so.*.*.* | |
128 | %attr(755,root,root) %ghost %{_libdir}/libucil.so.2 | |
129 | ||
130 | %files devel | |
131 | %defattr(644,root,root,755) | |
132 | %attr(755,root,root) %{_libdir}/libucil.so | |
133 | %{_libdir}/libucil.la | |
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 |