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