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