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