1 %include /usr/lib/rpm/macros.perl
2 Summary: Ming - an SWF output library
3 Summary(pl): Ming - biblioteka do produkcji plików SWF
8 Vendor: Opaque Industries
11 Group(es): Bibliotecas
14 Group(pt_BR): Bibliotecas
17 Source0: http://www.opaque.net/ming/%{name}-%{version}.tgz
18 Patch0: %{name}-dynamic-exts.patch
19 Patch1: %{name}-soname.patch
20 URL: http://www.opaque.net/ming/
21 BuildRequires: zlib-devel
22 BuildRequires: rpm-perlprov >= 4.0.2-24
23 BuildRequires: php-devel >= 4.0.6
24 #BuildRequires: python-devel
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 %define phpextdir %(php-config --extension-dir)
30 Ming is a C library for generating SWF ("Flash") format movies, plus a
31 set of wrappers for using the library from c++ and popular scripting
32 languages like PHP, Python, and Ruby.
35 Ming jest bibliotek± w C do generowania animacji w formacie SWF
36 ("Flash") wraz z zestawem wrapperów do u¿ywania jej z C++ i
37 popularnymi jêzykami skryptowymi, takimi jak PHP, Python i Ruby.
40 Summary: Ming development files
41 Summary(pl): Pliki dla programistów Ming
42 Group: Development/Libraries
43 Group(de): Entwicklung/Libraries
44 Group(es): Desarrollo/Bibliotecas
45 Group(fr): Development/Librairies
46 Group(pl): Programowanie/Biblioteki
47 Group(pt_BR): Desenvolvimento/Bibliotecas
48 Group(ru): òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
49 Group(uk): òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
50 Requires: %{name} = %{version}
53 Header files for ming library (C and C++).
55 %description devel -l pl
56 Pliki nag³ówkowe dla biblioteki ming (do C i C++).
59 Summary: Ming perl module
60 Summary(pl): Modu³ perla Ming
61 Group: Development/Languages/Perl
62 Group(de): Entwicklung/Sprachen/Perl
63 Group(pl): Programowanie/Jêzyki/Perl
64 Requires: %{name} = %{version}
67 %description -n perl-ming
68 Ming perl module - perl wrapper for Ming library.
70 %description -n perl-ming -l pl
71 Modu³ perla Ming - perlowy wrapper do biblioteki Ming.
74 Summary: Ming PHP module
75 Summary(pl): Modu³ PHP Ming
78 Group(es): Bibliotecas
81 Group(pt_BR): Bibliotecas
84 Requires: %{name} = %{version}
89 %description php -l pl
93 Summary: Ming utilities
94 Summary(pl): Narzêdzia Ming
95 Group: Applications/File
96 Group(de): Applikationen/Datei
97 Group(pl): Aplikacje/Pliki
101 - listswf - swf format disassembler
102 - listfdb - show contents of fdb font file
103 - makefdb - rip fdb font definition files out of a generator template
105 - swftophp - attempt to make a php/ming script out of an swf file
107 %description utils -l pl
109 - listswf - disasembler plików swf
110 - listfdb - pokazuje zawarto¶æ plików fontów fdb
111 - makefdb - wyci±ga pliki definicji fontów fdb z pliku generatora
112 - swftophp - próbuje zrobiæ skrypt php/ming z pliku swf
120 %{__make} CC="%{__cc}" CFLAGS="%{rpmcflags}"
122 #%{__make} -C java_ext
126 %{__make} OPTIMIZE="%{rpmcflags}"
129 ln -sf ming-4.0.6.c php_ext/ming.c
130 %{__make} CC="%{__cc} %{rpmcflags}" -C php_ext
136 %{__make} CC="%{__cc} %{rpmcflags}" \
137 listswf listaction swftophp makefdb
138 %{__cc} %{rpmcflags} -o listfdb listfdb.c
142 rm -rf $RPM_BUILD_ROOT
143 install -d $RPM_BUILD_ROOT%{_bindir}
145 %{__make} PREFIX=$RPM_BUILD_ROOT%{_prefix} install
147 %{__make} -C perl_ext install DESTDIR=$RPM_BUILD_ROOT
150 install -d $RPM_BUILD_ROOT%{phpextdir}
151 install php_ming.so $RPM_BUILD_ROOT%{phpextdir}
154 install util/{listswf,listaction,listfdb,makefdb,swftophp} $RPM_BUILD_ROOT%{_bindir}
156 gzip -9nf CHANGES CREDITS README TODO \
157 perl_ext/{README,TODO} \
159 py_ext/{README,TODO} \
164 rm -rf $RPM_BUILD_ROOT
166 %post -p /sbin/ldconfig
167 %postun -p /sbin/ldconfig
170 %defattr(644,root,root,755)
172 %attr(755,root,root) %{_libdir}/libming.so.*.*
175 %defattr(644,root,root,755)
176 %attr(755,root,root) %{_libdir}/libming.so
177 %{_includedir}/ming.h
178 %{_includedir}/mingpp.h
181 %defattr(644,root,root,755)
183 %{perl_sitearch}/SWF.pm
185 %dir %{perl_sitearch}/auto/SWF
186 %{perl_sitearch}/auto/SWF/SWF.bs
187 %attr(755,root,root) %{perl_sitearch}/auto/SWF/SWF.so
191 %defattr(644,root,root,755)
193 %attr(755,root,root) %{phpextdir}/*.so
196 %defattr(644,root,root,755)
198 %attr(755,root,root) %{_bindir}/*