]> git.pld-linux.org Git - packages/ming.git/blame - ming.spec
- rel 2
[packages/ming.git] / ming.spec
CommitLineData
81a84306 1%include /usr/lib/rpm/macros.perl
e137629a 2Summary: Ming - an SWF output library
420f4188 3Summary(pl.UTF-8): Ming - biblioteka do produkcji plików SWF
81a84306 4Name: ming
da7e6517 5Version: 0.3.0
9684f0fa 6Release: 2
e137629a 7License: LGPL
e7b6717f 8Group: Libraries
da7e6517
ER
9Source0: http://dl.sourceforge.net/ming/%{name}-%{version}.tar.gz
10# Source0-md5: 56b29eeb4fdd0b98c9ee62e25d14841d
de383548 11Source1: http://dl.sourceforge.net/ming/%{name}-perl-%{version}.tar.gz
69de7db8 12# Source1-md5: 506acca9ca42066a97fc0b6abad6d57a
de383548 13Source2: http://dl.sourceforge.net/ming/%{name}-py-%{version}.tar.gz
69de7db8 14# Source2-md5: 96d3f42f13d020d907287a640b39ec46
da7e6517 15Patch0: %{name}-DESTDIR.patch
06d3cd21 16Patch1: %{name}-build.patch
de383548 17Patch2: %{name}-perl-shared.patch
da7e6517 18URL: http://ming.sourceforge.net/
06d3cd21 19BuildRequires: giflib-devel
de383548 20BuildRequires: python-devel >= 1:2.5
81a84306 21BuildRequires: rpm-perlprov >= 4.0.2-24
de383548 22BuildRequires: rpm-pythonprov
8d5b5075 23BuildRequires: zlib-devel
e137629a 24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
93b9c492
AF
25
26%description
81a84306 27Ming is a C library for generating SWF ("Flash") format movies, plus a
e137629a
JB
28set of wrappers for using the library from c++ and popular scripting
29languages like PHP, Python, and Ruby.
93b9c492 30
78c38071
JR
31%description -l pl.UTF-8
32Ming jest biblioteką w C do generowania animacji w formacie SWF
33("Flash") wraz z zestawem wrapperów do używania jej z C++ i
34popularnymi językami skryptowymi, takimi jak PHP, Python i Ruby.
81a84306
JB
35
36%package devel
37Summary: Ming development files
420f4188 38Summary(pl.UTF-8): Pliki dla programistów Ming
81a84306 39Group: Development/Libraries
a8a8a1c5 40Requires: %{name} = %{version}-%{release}
81a84306
JB
41
42%description devel
43Header files for ming library (C and C++).
44
78c38071
JR
45%description devel -l pl.UTF-8
46Pliki nagłówkowe dla biblioteki ming (do C i C++).
81a84306 47
da7e6517 48%package static
aaa85863
JB
49Summary: Ming static library
50Summary(pl.UTF-8): Statyczna biblioteka Ming
da7e6517
ER
51Group: Development/Libraries
52Requires: %{name}-devel = %{version}-%{release}
3f096cc8 53
da7e6517 54%description static
aaa85863
JB
55Static Ming library.
56
57%description static -l pl.UTF-8
58Statyczna biblioteka Ming.
3f096cc8 59
81a84306
JB
60%package utils
61Summary: Ming utilities
420f4188 62Summary(pl.UTF-8): Narzędzia Ming
81a84306 63Group: Applications/File
81a84306
JB
64
65%description utils
66Ming 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
74Narzę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
81Summary: Ming perl module
82Summary(pl.UTF-8): Moduł perla Ming
83Group: Development/Languages/Perl
84Requires: %{name} = %{version}-%{release}
85Obsoletes: ming-perl
86
87%description -n perl-ming
88Ming perl module - perl wrapper for Ming library.
89
90%description -n perl-ming -l pl.UTF-8
91Moduł perla Ming - perlowy wrapper do biblioteki Ming.
92
93%package -n python-ming
94Summary: Ming Python module
95Summary(pl.UTF-8): Moduł biblioteki Ming dla języka Python
96Group: Development/Languages/Perl
97Requires: %{name} = %{version}-%{release}
98%pyrequires_eq python-libs
99
100%description -n python-ming
101Ming Python module.
102
103%description -n python-ming -l pl.UTF-8
104Moduł 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
116cd perl_ext
117%{__perl} Makefile.PL \
118 INSTALLDIRS=vendor
119%{__make} \
120 OPTIMIZE="%{rpmcflags}"
121cd ..
122
123%{__make} -C py_ext \
124 CC="%{__cc}" \
125 CFLAGS="%{rpmcflags}" \
126 PYINCDIR=%{py_incdir}
127
93b9c492 128%install
e137629a 129rm -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
140rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/SWF/.cvsignore
141rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/SWF/.packlist
142rm -f $RPM_BUILD_ROOT%{py_sitedir}/ming*.py
143
93b9c492 144%clean
e137629a 145rm -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
This page took 0.485306 seconds and 4 git commands to generate.