]>
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 |
c5338c67 | 5 | Version: 0.4.3 |
9c319ffc | 6 | Release: 1 |
e137629a | 7 | License: LGPL |
e7b6717f | 8 | Group: Libraries |
da7e6517 | 9 | Source0: http://dl.sourceforge.net/ming/%{name}-%{version}.tar.gz |
c5338c67 PS |
10 | # Source0-md5: 9578ec38d973adabd9e8a534982da0b9 |
11 | Patch0: %{name}-build.patch | |
12 | Patch1: %{name}-perl-shared.patch | |
13 | Patch2: %{name}-libpng.patch | |
da7e6517 | 14 | URL: http://ming.sourceforge.net/ |
0e1601b9 AM |
15 | BuildRequires: libtool |
16 | BuildRequires: autoconf | |
17 | BuildRequires: automake | |
ad4d7c2c | 18 | BuildRequires: bison |
19 | BuildRequires: flex | |
06d3cd21 | 20 | BuildRequires: giflib-devel |
ad4d7c2c | 21 | BuildRequires: libpng-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 |
c5338c67 | 110 | %setup -q |
81a84306 | 111 | %patch0 -p1 |
06d3cd21 | 112 | %patch1 -p1 |
de383548 | 113 | %patch2 -p1 |
9a402019 | 114 | |
93b9c492 | 115 | %build |
0e1601b9 AM |
116 | %{__libtoolize} |
117 | %{__aclocal} -I macros | |
118 | %{__autoconf} | |
119 | %{__automake} | |
c5338c67 PS |
120 | %configure \ |
121 | --enable-perl \ | |
122 | --enable-python | |
93b9c492 | 123 | |
c5338c67 | 124 | %{__make} -j1 |
de383548 | 125 | |
0e1601b9 | 126 | |
93b9c492 | 127 | %install |
e137629a | 128 | rm -rf $RPM_BUILD_ROOT |
9a402019 | 129 | install -d $RPM_BUILD_ROOT%{_libdir} |
25286fae | 130 | |
8458c7d9 | 131 | %{__make} install \ |
8458c7d9 | 132 | DESTDIR=$RPM_BUILD_ROOT |
de383548 | 133 | |
c5338c67 PS |
134 | rm $RPM_BUILD_ROOT%{perl_vendorarch}/auto/SWF/.packlist |
135 | rm $RPM_BUILD_ROOT%{py_sitedir}/ming*.py | |
de383548 | 136 | |
93b9c492 | 137 | %clean |
e137629a | 138 | rm -rf $RPM_BUILD_ROOT |
93b9c492 | 139 | |
81a84306 JB |
140 | %post -p /sbin/ldconfig |
141 | %postun -p /sbin/ldconfig | |
142 | ||
93b9c492 | 143 | %files |
e137629a | 144 | %defattr(644,root,root,755) |
0e1601b9 | 145 | %doc README TODO |
fb9b3080 | 146 | %attr(755,root,root) %{_libdir}/libming.so.*.*.* |
0e1601b9 | 147 | %attr(755,root,root) %ghost %{_libdir}/libming.so.1 |
81a84306 JB |
148 | |
149 | %files devel | |
150 | %defattr(644,root,root,755) | |
151 | %attr(755,root,root) %{_libdir}/libming.so | |
0e1601b9 | 152 | %{_libdir}/libming.la |
93b9c492 | 153 | %{_includedir}/ming.h |
81a84306 | 154 | %{_includedir}/mingpp.h |
0e1601b9 | 155 | %{_pkgconfigdir}/libming.pc |
93b9c492 | 156 | |
da7e6517 | 157 | %files static |
3f096cc8 | 158 | %defattr(644,root,root,755) |
da7e6517 | 159 | %{_libdir}/libming.a |
3f096cc8 | 160 | |
81a84306 JB |
161 | %files utils |
162 | %defattr(644,root,root,755) | |
3f096cc8 | 163 | %doc util/{README,TODO} |
da7e6517 ER |
164 | %attr(755,root,root) %{_bindir}/dbl2png |
165 | %attr(755,root,root) %{_bindir}/gif2dbl | |
166 | %attr(755,root,root) %{_bindir}/gif2mask | |
167 | %attr(755,root,root) %{_bindir}/listaction | |
168 | %attr(755,root,root) %{_bindir}/listaction_d | |
169 | %attr(755,root,root) %{_bindir}/listfdb | |
170 | %attr(755,root,root) %{_bindir}/listjpeg | |
171 | %attr(755,root,root) %{_bindir}/listmp3 | |
172 | %attr(755,root,root) %{_bindir}/listswf | |
173 | %attr(755,root,root) %{_bindir}/listswf_d | |
174 | %attr(755,root,root) %{_bindir}/makefdb | |
175 | %attr(755,root,root) %{_bindir}/makeswf | |
176 | %attr(755,root,root) %{_bindir}/ming-config | |
177 | %attr(755,root,root) %{_bindir}/png2dbl | |
da7e6517 | 178 | %attr(755,root,root) %{_bindir}/raw2adpcm |
0e1601b9 | 179 | %attr(755,root,root) %{_bindir}/swftocxx |
da7e6517 ER |
180 | %attr(755,root,root) %{_bindir}/swftoperl |
181 | %attr(755,root,root) %{_bindir}/swftophp | |
182 | %attr(755,root,root) %{_bindir}/swftopython | |
0e1601b9 | 183 | %attr(755,root,root) %{_bindir}/swftotcl |
de383548 JB |
184 | |
185 | %files -n perl-ming | |
186 | %defattr(644,root,root,755) | |
187 | %doc perl_ext/{README,TODO} | |
188 | %{perl_vendorarch}/SWF.pm | |
189 | %{perl_vendorarch}/SWF | |
190 | %dir %{perl_vendorarch}/auto/SWF | |
191 | %{perl_vendorarch}/auto/SWF/SWF.bs | |
192 | %attr(755,root,root) %{perl_vendorarch}/auto/SWF/SWF.so | |
193 | %{_mandir}/man3/SWF* | |
194 | ||
195 | %files -n python-ming | |
196 | %defattr(644,root,root,755) | |
197 | %doc py_ext/{README,TODO} | |
198 | %attr(755,root,root) %{py_sitedir}/_mingc.so | |
199 | %{py_sitedir}/ming*.py[co] | |
e0f7f807 | 200 | %if "%{py_ver}" > "2.4" |
de383548 | 201 | %{py_sitedir}/mingc-*.egg-info |
e0f7f807 | 202 | %endif |