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