]>
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 |
da7e6517 | 5 | Version: 0.3.0 |
66157124 | 6 | Release: 10 |
e137629a | 7 | License: LGPL |
e7b6717f | 8 | Group: Libraries |
da7e6517 ER |
9 | Source0: http://dl.sourceforge.net/ming/%{name}-%{version}.tar.gz |
10 | # Source0-md5: 56b29eeb4fdd0b98c9ee62e25d14841d | |
de383548 | 11 | Source1: http://dl.sourceforge.net/ming/%{name}-perl-%{version}.tar.gz |
69de7db8 | 12 | # Source1-md5: 506acca9ca42066a97fc0b6abad6d57a |
de383548 | 13 | Source2: http://dl.sourceforge.net/ming/%{name}-py-%{version}.tar.gz |
69de7db8 | 14 | # Source2-md5: 96d3f42f13d020d907287a640b39ec46 |
da7e6517 | 15 | Patch0: %{name}-DESTDIR.patch |
06d3cd21 | 16 | Patch1: %{name}-build.patch |
de383548 | 17 | Patch2: %{name}-perl-shared.patch |
c958df3f | 18 | Patch3: %{name}-libpng.patch |
66157124 | 19 | Patch4: %{name}-build_fix.patch |
da7e6517 | 20 | URL: http://ming.sourceforge.net/ |
06d3cd21 | 21 | BuildRequires: giflib-devel |
e0f7f807 | 22 | BuildRequires: python-devel >= 1:2.4 |
81a84306 | 23 | BuildRequires: rpm-perlprov >= 4.0.2-24 |
de383548 | 24 | BuildRequires: rpm-pythonprov |
8d5b5075 | 25 | BuildRequires: zlib-devel |
e137629a | 26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
93b9c492 AF |
27 | |
28 | %description | |
81a84306 | 29 | Ming is a C library for generating SWF ("Flash") format movies, plus a |
e137629a JB |
30 | set of wrappers for using the library from c++ and popular scripting |
31 | languages like PHP, Python, and Ruby. | |
93b9c492 | 32 | |
78c38071 JR |
33 | %description -l pl.UTF-8 |
34 | Ming jest biblioteką w C do generowania animacji w formacie SWF | |
35 | ("Flash") wraz z zestawem wrapperów do używania jej z C++ i | |
36 | popularnymi językami skryptowymi, takimi jak PHP, Python i Ruby. | |
81a84306 JB |
37 | |
38 | %package devel | |
39 | Summary: Ming development files | |
420f4188 | 40 | Summary(pl.UTF-8): Pliki dla programistów Ming |
81a84306 | 41 | Group: Development/Libraries |
a8a8a1c5 | 42 | Requires: %{name} = %{version}-%{release} |
b01d4d69 | 43 | Requires: giflib-devel |
81a84306 JB |
44 | |
45 | %description devel | |
46 | Header files for ming library (C and C++). | |
47 | ||
78c38071 JR |
48 | %description devel -l pl.UTF-8 |
49 | Pliki nagłówkowe dla biblioteki ming (do C i C++). | |
81a84306 | 50 | |
da7e6517 | 51 | %package static |
aaa85863 JB |
52 | Summary: Ming static library |
53 | Summary(pl.UTF-8): Statyczna biblioteka Ming | |
da7e6517 ER |
54 | Group: Development/Libraries |
55 | Requires: %{name}-devel = %{version}-%{release} | |
3f096cc8 | 56 | |
da7e6517 | 57 | %description static |
aaa85863 JB |
58 | Static Ming library. |
59 | ||
60 | %description static -l pl.UTF-8 | |
61 | Statyczna biblioteka Ming. | |
3f096cc8 | 62 | |
81a84306 JB |
63 | %package utils |
64 | Summary: Ming utilities | |
420f4188 | 65 | Summary(pl.UTF-8): Narzędzia Ming |
81a84306 | 66 | Group: Applications/File |
81a84306 JB |
67 | |
68 | %description utils | |
69 | Ming utilities: | |
70 | - listswf - swf format disassembler | |
71 | - listfdb - show contents of fdb font file | |
72 | - makefdb - rip fdb font definition files out of a generator template | |
73 | file | |
74 | - swftophp - attempt to make a php/ming script out of an swf file | |
75 | ||
78c38071 JR |
76 | %description utils -l pl.UTF-8 |
77 | Narzędzia Ming: | |
78 | - listswf - disasembler plików swf | |
79 | - listfdb - pokazuje zawartość plików fontów fdb | |
80 | - makefdb - wyciąga pliki definicji fontów fdb z pliku generatora | |
81 | - swftophp - próbuje zrobić skrypt php/ming z pliku swf | |
81a84306 | 82 | |
de383548 JB |
83 | %package -n perl-ming |
84 | Summary: Ming perl module | |
85 | Summary(pl.UTF-8): Moduł perla Ming | |
86 | Group: Development/Languages/Perl | |
87 | Requires: %{name} = %{version}-%{release} | |
88 | Obsoletes: ming-perl | |
89 | ||
90 | %description -n perl-ming | |
91 | Ming perl module - perl wrapper for Ming library. | |
92 | ||
93 | %description -n perl-ming -l pl.UTF-8 | |
94 | Moduł perla Ming - perlowy wrapper do biblioteki Ming. | |
95 | ||
96 | %package -n python-ming | |
97 | Summary: Ming Python module | |
98 | Summary(pl.UTF-8): Moduł biblioteki Ming dla języka Python | |
99 | Group: Development/Languages/Perl | |
100 | Requires: %{name} = %{version}-%{release} | |
101 | %pyrequires_eq python-libs | |
102 | ||
103 | %description -n python-ming | |
104 | Ming Python module. | |
105 | ||
106 | %description -n python-ming -l pl.UTF-8 | |
107 | Moduł biblioteki Ming dla języka Python. | |
108 | ||
93b9c492 | 109 | %prep |
de383548 | 110 | %setup -q -b1 -b2 |
81a84306 | 111 | %patch0 -p1 |
06d3cd21 | 112 | %patch1 -p1 |
de383548 | 113 | %patch2 -p1 |
a3123902 | 114 | %patch3 -p1 |
66157124 | 115 | %patch4 -p1 |
93b9c492 | 116 | |
9a402019 ER |
117 | ln -s src/ming.h |
118 | ||
93b9c492 | 119 | %build |
da7e6517 ER |
120 | %configure |
121 | %{__make} -j1 | |
93b9c492 | 122 | |
de383548 JB |
123 | cd perl_ext |
124 | %{__perl} Makefile.PL \ | |
125 | INSTALLDIRS=vendor | |
126 | %{__make} \ | |
9a402019 | 127 | CC="%{__cc}" \ |
de383548 JB |
128 | OPTIMIZE="%{rpmcflags}" |
129 | cd .. | |
130 | ||
131 | %{__make} -C py_ext \ | |
132 | CC="%{__cc}" \ | |
133 | CFLAGS="%{rpmcflags}" \ | |
134 | PYINCDIR=%{py_incdir} | |
135 | ||
93b9c492 | 136 | %install |
e137629a | 137 | rm -rf $RPM_BUILD_ROOT |
9a402019 | 138 | install -d $RPM_BUILD_ROOT%{_libdir} |
25286fae | 139 | |
8458c7d9 | 140 | %{__make} install \ |
8458c7d9 | 141 | DESTDIR=$RPM_BUILD_ROOT |
4b94833d | 142 | chmod +x $RPM_BUILD_ROOT%{_libdir}/libming.so.0.3.0 |
81a84306 | 143 | |
de383548 JB |
144 | %{__make} -C perl_ext pure_install \ |
145 | DESTDIR=$RPM_BUILD_ROOT | |
146 | ||
147 | %{__make} -C py_ext install \ | |
148 | PREFIX="--optimize=2 --root=$RPM_BUILD_ROOT" | |
149 | ||
150 | rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/SWF/.cvsignore | |
151 | rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/SWF/.packlist | |
9a402019 ER |
152 | rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/SWF/include/libming.a |
153 | rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/SWF/include/ming.h | |
154 | rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/SWF/include/perl_swf.h | |
de383548 JB |
155 | rm -f $RPM_BUILD_ROOT%{py_sitedir}/ming*.py |
156 | ||
93b9c492 | 157 | %clean |
e137629a | 158 | rm -rf $RPM_BUILD_ROOT |
93b9c492 | 159 | |
81a84306 JB |
160 | %post -p /sbin/ldconfig |
161 | %postun -p /sbin/ldconfig | |
162 | ||
93b9c492 | 163 | %files |
e137629a | 164 | %defattr(644,root,root,755) |
da7e6517 | 165 | %doc CREDITS README TODO |
fb9b3080 JB |
166 | %attr(755,root,root) %{_libdir}/libming.so.*.*.* |
167 | %attr(755,root,root) %ghost %{_libdir}/libming.so.0 | |
81a84306 JB |
168 | |
169 | %files devel | |
170 | %defattr(644,root,root,755) | |
171 | %attr(755,root,root) %{_libdir}/libming.so | |
93b9c492 | 172 | %{_includedir}/ming.h |
81a84306 | 173 | %{_includedir}/mingpp.h |
da7e6517 | 174 | %{_includedir}/ming_config.h |
93b9c492 | 175 | |
da7e6517 | 176 | %files static |
3f096cc8 | 177 | %defattr(644,root,root,755) |
da7e6517 | 178 | %{_libdir}/libming.a |
3f096cc8 | 179 | |
81a84306 JB |
180 | %files utils |
181 | %defattr(644,root,root,755) | |
3f096cc8 | 182 | %doc util/{README,TODO} |
da7e6517 ER |
183 | %attr(755,root,root) %{_bindir}/dbl2png |
184 | %attr(755,root,root) %{_bindir}/gif2dbl | |
185 | %attr(755,root,root) %{_bindir}/gif2mask | |
186 | %attr(755,root,root) %{_bindir}/listaction | |
187 | %attr(755,root,root) %{_bindir}/listaction_d | |
188 | %attr(755,root,root) %{_bindir}/listfdb | |
189 | %attr(755,root,root) %{_bindir}/listjpeg | |
190 | %attr(755,root,root) %{_bindir}/listmp3 | |
191 | %attr(755,root,root) %{_bindir}/listswf | |
192 | %attr(755,root,root) %{_bindir}/listswf_d | |
193 | %attr(755,root,root) %{_bindir}/makefdb | |
194 | %attr(755,root,root) %{_bindir}/makeswf | |
195 | %attr(755,root,root) %{_bindir}/ming-config | |
196 | %attr(755,root,root) %{_bindir}/png2dbl | |
197 | %attr(755,root,root) %{_bindir}/png2swf | |
198 | %attr(755,root,root) %{_bindir}/raw2adpcm | |
199 | %attr(755,root,root) %{_bindir}/swftoperl | |
200 | %attr(755,root,root) %{_bindir}/swftophp | |
201 | %attr(755,root,root) %{_bindir}/swftopython | |
202 | %{_mandir}/man1/makeswf.1* | |
de383548 JB |
203 | |
204 | %files -n perl-ming | |
205 | %defattr(644,root,root,755) | |
206 | %doc perl_ext/{README,TODO} | |
207 | %{perl_vendorarch}/SWF.pm | |
208 | %{perl_vendorarch}/SWF | |
209 | %dir %{perl_vendorarch}/auto/SWF | |
210 | %{perl_vendorarch}/auto/SWF/SWF.bs | |
211 | %attr(755,root,root) %{perl_vendorarch}/auto/SWF/SWF.so | |
212 | %{_mandir}/man3/SWF* | |
213 | ||
214 | %files -n python-ming | |
215 | %defattr(644,root,root,755) | |
216 | %doc py_ext/{README,TODO} | |
217 | %attr(755,root,root) %{py_sitedir}/_mingc.so | |
218 | %{py_sitedir}/ming*.py[co] | |
e0f7f807 | 219 | %if "%{py_ver}" > "2.4" |
de383548 | 220 | %{py_sitedir}/mingc-*.egg-info |
e0f7f807 | 221 | %endif |