]>
Commit | Line | Data |
---|---|---|
83f0a899 ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without php # build PHP Binding | |
4 | ||
81a84306 | 5 | %include /usr/lib/rpm/macros.perl |
e137629a | 6 | Summary: Ming - an SWF output library |
420f4188 | 7 | Summary(pl.UTF-8): Ming - biblioteka do produkcji plików SWF |
81a84306 | 8 | Name: ming |
252f5752 | 9 | Version: 0.4.5 |
6130255e | 10 | Release: 9 |
e137629a | 11 | License: LGPL |
e7b6717f | 12 | Group: Libraries |
f568d8d7 | 13 | Source0: http://downloads.sourceforge.net/ming/%{name}-%{version}.tar.gz |
252f5752 JR |
14 | # Source0-md5: a35735a1c4f51681b96bcbfba58db2a0 |
15 | Patch0: %{name}-perl-shared.patch | |
16 | Patch1: am.patch | |
b91bbdeb | 17 | Patch2: %{name}-giflib.patch |
b04ba89a | 18 | Patch3: tcl-libx32.patch |
da7e6517 | 19 | URL: http://ming.sourceforge.net/ |
0e1601b9 AM |
20 | BuildRequires: autoconf |
21 | BuildRequires: automake | |
ad4d7c2c | 22 | BuildRequires: bison |
23 | BuildRequires: flex | |
462c48df | 24 | BuildRequires: freetype-devel |
06d3cd21 | 25 | BuildRequires: giflib-devel |
ad4d7c2c | 26 | BuildRequires: libpng-devel |
462c48df | 27 | BuildRequires: libstdc++-devel |
28 | BuildRequires: libtool | |
e0f7f807 | 29 | BuildRequires: python-devel >= 1:2.4 |
81a84306 | 30 | BuildRequires: rpm-perlprov >= 4.0.2-24 |
de383548 | 31 | BuildRequires: rpm-pythonprov |
f568d8d7 | 32 | BuildRequires: rpmbuild(macros) >= 1.344 |
462c48df | 33 | BuildRequires: swig |
34 | BuildRequires: swig-tcl | |
35 | BuildRequires: tcl | |
36 | BuildRequires: tcl-devel | |
8d5b5075 | 37 | BuildRequires: zlib-devel |
83f0a899 ER |
38 | %if %{with php} |
39 | BuildRequires: %{php_name}-cli | |
40 | BuildRequires: %{php_name}-devel >= 4:5.3 | |
41 | %endif | |
e137629a | 42 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
93b9c492 AF |
43 | |
44 | %description | |
81a84306 | 45 | Ming is a C library for generating SWF ("Flash") format movies, plus a |
e137629a JB |
46 | set of wrappers for using the library from c++ and popular scripting |
47 | languages like PHP, Python, and Ruby. | |
93b9c492 | 48 | |
78c38071 JR |
49 | %description -l pl.UTF-8 |
50 | Ming jest biblioteką w C do generowania animacji w formacie SWF | |
51 | ("Flash") wraz z zestawem wrapperów do używania jej z C++ i | |
52 | popularnymi językami skryptowymi, takimi jak PHP, Python i Ruby. | |
81a84306 JB |
53 | |
54 | %package devel | |
55 | Summary: Ming development files | |
420f4188 | 56 | Summary(pl.UTF-8): Pliki dla programistów Ming |
81a84306 | 57 | Group: Development/Libraries |
a8a8a1c5 | 58 | Requires: %{name} = %{version}-%{release} |
b01d4d69 | 59 | Requires: giflib-devel |
81a84306 JB |
60 | |
61 | %description devel | |
62 | Header files for ming library (C and C++). | |
63 | ||
78c38071 JR |
64 | %description devel -l pl.UTF-8 |
65 | Pliki nagłówkowe dla biblioteki ming (do C i C++). | |
81a84306 | 66 | |
da7e6517 | 67 | %package static |
aaa85863 JB |
68 | Summary: Ming static library |
69 | Summary(pl.UTF-8): Statyczna biblioteka Ming | |
da7e6517 ER |
70 | Group: Development/Libraries |
71 | Requires: %{name}-devel = %{version}-%{release} | |
3f096cc8 | 72 | |
da7e6517 | 73 | %description static |
aaa85863 JB |
74 | Static Ming library. |
75 | ||
76 | %description static -l pl.UTF-8 | |
77 | Statyczna biblioteka Ming. | |
3f096cc8 | 78 | |
81a84306 JB |
79 | %package utils |
80 | Summary: Ming utilities | |
420f4188 | 81 | Summary(pl.UTF-8): Narzędzia Ming |
81a84306 | 82 | Group: Applications/File |
81a84306 JB |
83 | |
84 | %description utils | |
85 | Ming utilities: | |
86 | - listswf - swf format disassembler | |
87 | - listfdb - show contents of fdb font file | |
88 | - makefdb - rip fdb font definition files out of a generator template | |
89 | file | |
90 | - swftophp - attempt to make a php/ming script out of an swf file | |
91 | ||
78c38071 JR |
92 | %description utils -l pl.UTF-8 |
93 | Narzędzia Ming: | |
94 | - listswf - disasembler plików swf | |
95 | - listfdb - pokazuje zawartość plików fontów fdb | |
96 | - makefdb - wyciąga pliki definicji fontów fdb z pliku generatora | |
97 | - swftophp - próbuje zrobić skrypt php/ming z pliku swf | |
81a84306 | 98 | |
de383548 | 99 | %package -n perl-ming |
f568d8d7 JB |
100 | Summary: Ming Perl module |
101 | Summary(pl.UTF-8): Moduł Perla Ming | |
de383548 JB |
102 | Group: Development/Languages/Perl |
103 | Requires: %{name} = %{version}-%{release} | |
104 | Obsoletes: ming-perl | |
105 | ||
106 | %description -n perl-ming | |
107 | Ming perl module - perl wrapper for Ming library. | |
108 | ||
109 | %description -n perl-ming -l pl.UTF-8 | |
110 | Moduł perla Ming - perlowy wrapper do biblioteki Ming. | |
111 | ||
83f0a899 | 112 | %package -n %{php_name}-ming |
f568d8d7 JB |
113 | Summary: Ming module for PHP |
114 | Summary(pl.UTF-8): Moduł Ming dla PHP | |
83f0a899 | 115 | Group: Development/Languages/PHP |
f568d8d7 | 116 | Requires: %{name} = %{version}-%{release} |
f568d8d7 JB |
117 | %{?requires_php_extension} |
118 | ||
83f0a899 | 119 | %description -n %{php_name}-ming |
f568d8d7 JB |
120 | PHP interface to Ming SWF generating library. |
121 | ||
83f0a899 | 122 | %description -n %{php_name}-ming -l pl.UTF-8 |
f568d8d7 JB |
123 | Interfejs PHP do biblioteki Ming generującej pliki SWF. |
124 | ||
de383548 JB |
125 | %package -n python-ming |
126 | Summary: Ming Python module | |
127 | Summary(pl.UTF-8): Moduł biblioteki Ming dla języka Python | |
128 | Group: Development/Languages/Perl | |
129 | Requires: %{name} = %{version}-%{release} | |
83f0a899 | 130 | Requires: python-libs |
de383548 JB |
131 | |
132 | %description -n python-ming | |
133 | Ming Python module. | |
134 | ||
135 | %description -n python-ming -l pl.UTF-8 | |
136 | Moduł biblioteki Ming dla języka Python. | |
137 | ||
f568d8d7 JB |
138 | %package -n tcl-ming |
139 | Summary: Ming module for Tcl | |
140 | Summary(pl.UTF-8): Moduł Ming dla Tcl-a | |
83f0a899 | 141 | Group: Development/Languages/Tcl |
f568d8d7 JB |
142 | Requires: %{name} = %{version}-%{release} |
143 | Requires: tcl | |
144 | ||
145 | %description -n tcl-ming | |
146 | Tcl interface to Ming SWF generating library. | |
147 | ||
148 | %description -n tcl-ming -l pl.UTF-8 | |
149 | Interfejs Tcl do biblioteki Ming generującej pliki SWF. | |
150 | ||
93b9c492 | 151 | %prep |
c5338c67 | 152 | %setup -q |
81a84306 | 153 | %patch0 -p1 |
06d3cd21 | 154 | %patch1 -p1 |
b91bbdeb | 155 | %patch2 -p1 |
b04ba89a | 156 | %patch3 -p1 |
f568d8d7 | 157 | |
93b9c492 | 158 | %build |
0e1601b9 AM |
159 | %{__libtoolize} |
160 | %{__aclocal} -I macros | |
161 | %{__autoconf} | |
162 | %{__automake} | |
c5338c67 PS |
163 | %configure \ |
164 | --enable-perl \ | |
83f0a899 | 165 | %{?with_php:--enable-php} \ |
462c48df | 166 | --enable-python \ |
83f0a899 ER |
167 | --enable-tcl \ |
168 | --disable-silent-rules | |
93b9c492 | 169 | |
f568d8d7 JB |
170 | %{__make} -j1 \ |
171 | mingc_ladir=%{_libdir}/tclming | |
de383548 | 172 | |
93b9c492 | 173 | %install |
e137629a | 174 | rm -rf $RPM_BUILD_ROOT |
8458c7d9 | 175 | %{__make} install \ |
f568d8d7 JB |
176 | DESTDIR=$RPM_BUILD_ROOT \ |
177 | mingc_ladir=%{_libdir}/tclming | |
de383548 | 178 | |
83f0a899 | 179 | %if %{with php} |
f568d8d7 JB |
180 | install -d $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d |
181 | cat <<'EOF' > $RPM_BUILD_ROOT%{php_sysconfdir}/conf.d/ming.ini | |
182 | ; Enable ming extension module | |
183 | extension=ming.so | |
184 | EOF | |
83f0a899 | 185 | %endif |
f568d8d7 JB |
186 | |
187 | %{__rm} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/SWF/.packlist | |
83f0a899 | 188 | %{__rm} $RPM_BUILD_ROOT%{perl_archlib}/perllocal.pod |
f568d8d7 JB |
189 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/ming*.py |
190 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/tclming/*.{la,a} | |
de383548 | 191 | |
93b9c492 | 192 | %clean |
e137629a | 193 | rm -rf $RPM_BUILD_ROOT |
93b9c492 | 194 | |
81a84306 JB |
195 | %post -p /sbin/ldconfig |
196 | %postun -p /sbin/ldconfig | |
197 | ||
93b9c492 | 198 | %files |
e137629a | 199 | %defattr(644,root,root,755) |
0e1601b9 | 200 | %doc README TODO |
fb9b3080 | 201 | %attr(755,root,root) %{_libdir}/libming.so.*.*.* |
0e1601b9 | 202 | %attr(755,root,root) %ghost %{_libdir}/libming.so.1 |
81a84306 JB |
203 | |
204 | %files devel | |
205 | %defattr(644,root,root,755) | |
206 | %attr(755,root,root) %{_libdir}/libming.so | |
0e1601b9 | 207 | %{_libdir}/libming.la |
93b9c492 | 208 | %{_includedir}/ming.h |
81a84306 | 209 | %{_includedir}/mingpp.h |
0e1601b9 | 210 | %{_pkgconfigdir}/libming.pc |
93b9c492 | 211 | |
da7e6517 | 212 | %files static |
3f096cc8 | 213 | %defattr(644,root,root,755) |
da7e6517 | 214 | %{_libdir}/libming.a |
3f096cc8 | 215 | |
81a84306 JB |
216 | %files utils |
217 | %defattr(644,root,root,755) | |
3f096cc8 | 218 | %doc util/{README,TODO} |
da7e6517 ER |
219 | %attr(755,root,root) %{_bindir}/dbl2png |
220 | %attr(755,root,root) %{_bindir}/gif2dbl | |
221 | %attr(755,root,root) %{_bindir}/gif2mask | |
222 | %attr(755,root,root) %{_bindir}/listaction | |
223 | %attr(755,root,root) %{_bindir}/listaction_d | |
224 | %attr(755,root,root) %{_bindir}/listfdb | |
225 | %attr(755,root,root) %{_bindir}/listjpeg | |
226 | %attr(755,root,root) %{_bindir}/listmp3 | |
227 | %attr(755,root,root) %{_bindir}/listswf | |
228 | %attr(755,root,root) %{_bindir}/listswf_d | |
229 | %attr(755,root,root) %{_bindir}/makefdb | |
230 | %attr(755,root,root) %{_bindir}/makeswf | |
231 | %attr(755,root,root) %{_bindir}/ming-config | |
232 | %attr(755,root,root) %{_bindir}/png2dbl | |
da7e6517 | 233 | %attr(755,root,root) %{_bindir}/raw2adpcm |
0e1601b9 | 234 | %attr(755,root,root) %{_bindir}/swftocxx |
da7e6517 ER |
235 | %attr(755,root,root) %{_bindir}/swftoperl |
236 | %attr(755,root,root) %{_bindir}/swftophp | |
237 | %attr(755,root,root) %{_bindir}/swftopython | |
0e1601b9 | 238 | %attr(755,root,root) %{_bindir}/swftotcl |
de383548 JB |
239 | |
240 | %files -n perl-ming | |
241 | %defattr(644,root,root,755) | |
242 | %doc perl_ext/{README,TODO} | |
243 | %{perl_vendorarch}/SWF.pm | |
244 | %{perl_vendorarch}/SWF | |
245 | %dir %{perl_vendorarch}/auto/SWF | |
de383548 JB |
246 | %attr(755,root,root) %{perl_vendorarch}/auto/SWF/SWF.so |
247 | %{_mandir}/man3/SWF* | |
248 | ||
83f0a899 ER |
249 | %if %{with php} |
250 | %files -n %{php_name}-ming | |
f568d8d7 JB |
251 | %defattr(644,root,root,755) |
252 | %config(noreplace) %verify(not md5 mtime size) %{php_sysconfdir}/conf.d/ming.ini | |
253 | %attr(755,root,root) %{php_extensiondir}/ming.so | |
83f0a899 | 254 | %endif |
f568d8d7 | 255 | |
de383548 JB |
256 | %files -n python-ming |
257 | %defattr(644,root,root,755) | |
258 | %doc py_ext/{README,TODO} | |
259 | %attr(755,root,root) %{py_sitedir}/_mingc.so | |
260 | %{py_sitedir}/ming*.py[co] | |
e0f7f807 | 261 | %if "%{py_ver}" > "2.4" |
de383548 | 262 | %{py_sitedir}/mingc-*.egg-info |
e0f7f807 | 263 | %endif |
f568d8d7 JB |
264 | |
265 | %files -n tcl-ming | |
266 | %defattr(644,root,root,755) | |
267 | %doc tcl_ext/README | |
268 | %dir %{_libdir}/tclming | |
269 | %attr(755,root,root) %{_libdir}/tclming/mingc.so |