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