]>
Commit | Line | Data |
---|---|---|
18d3a733 | 1 | # |
2 | # TODO: | |
3 | # - Correct building with --with print | |
4 | # | |
5 | # Conditional build: | |
cbd6e183 JB |
6 | %bcond_with print # build with libgutenprintui |
7 | %bcond_with gtk1 # GTK+ 1.x instead of 2.x | |
18d3a733 | 8 | |
f442395c | 9 | Summary: CinePaint - a motion picture editing tool |
9951d5cf | 10 | Summary(pl.UTF-8): CinePaint - narzędzie do obróbki filmów |
e38b6027 | 11 | Name: cinepaint |
cbd6e183 | 12 | Version: 1.3 |
18d3a733 | 13 | Release: 0.1 |
cbd6e183 | 14 | License: GPL v2+ (with LGPL v2.1+ and MIT parts) |
e38b6027 | 15 | Group: X11/Applications/Graphics |
cbd6e183 JB |
16 | Source0: http://downloads.sourceforge.net/cinepaint/%{name}-%{version}.tgz |
17 | # Source0-md5: f8ecd5671662e71a3356213de371fee4 | |
18 | Patch0: %{name}-am.patch | |
19 | Patch1: %{name}-configure.patch | |
20 | Patch2: %{name}-libpng.patch | |
21 | Patch3: %{name}-link.patch | |
22 | Patch4: %{name}-paths.patch | |
18d3a733 | 23 | URL: http://www.cinepaint.org/ |
cbd6e183 JB |
24 | BuildRequires: OpenEXR-devel >= 1.0.0 |
25 | BuildRequires: autoconf | |
e38b6027 | 26 | BuildRequires: automake |
cbd6e183 | 27 | BuildRequires: flex |
18d3a733 | 28 | BuildRequires: fltk-devel |
cbd6e183 | 29 | BuildRequires: lcms-devel >= 1.16 |
e38b6027 | 30 | BuildRequires: libjpeg-devel |
cbd6e183 | 31 | BuildRequires: libpng-devel >= 1.0.0 |
e38b6027 | 32 | BuildRequires: libtiff-devel |
cbd6e183 JB |
33 | BuildRequires: libtool |
34 | #BuildRequires: oyranos-devel | |
35 | BuildRequires: pkgconfig | |
36 | BuildRequires: python-devel | |
37 | BuildRequires: rpmbuild(macros) >= 1.219 | |
38 | BuildRequires: xorg-lib-libICE-devel | |
39 | BuildRequires: xorg-lib-libSM-devel | |
40 | BuildRequires: xorg-lib-libXmu-devel | |
41 | BuildRequires: xorg-lib-libXt-devel | |
e38b6027 | 42 | BuildRequires: zlib-devel |
cbd6e183 JB |
43 | %{?with_print:BuildRequires: libgutenprintui-devel >= 5.0.0} |
44 | %if %{with gtk1} | |
45 | BuildRequires: glib-devel | |
46 | BuildRequires: gtk+-devel >= 1.2.8 | |
47 | %else | |
48 | BuildRequires: gtk+2-devel >= 2.0.0 | |
49 | %endif | |
50 | # FreeSans.ttf | |
51 | Requires: fonts-TTF-freefont | |
3648d268 | 52 | Obsoletes: filmgimp |
e38b6027 | 53 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
54 | ||
cbd6e183 JB |
55 | %define abiver 1.3.0 |
56 | ||
e38b6027 | 57 | %description |
22a19ab8 | 58 | CinePaint is a motion picture editing tool primarily used for painting |
59 | and retouching of movies. CinePaint is the most successful open source | |
f442395c JB |
60 | tool in future motion picture work today. It was formerly known as |
61 | FilmGimp. | |
e38b6027 | 62 | |
232b2685 JR |
63 | %description -l pl.UTF-8 |
64 | CinePaint jest narzędziem do obróbki ruchomego obrazu, używanym | |
65 | głównie do rysowania i retuszu filmów. Na dzień dzisiejszy jest | |
66 | narzędziem z otwartymi źródłami, które odniosło największy sukces w | |
67 | branży filmowej. Wcześniej było znane pod nazwą FilmGimp. | |
e38b6027 | 68 | |
69 | %package devel | |
22a19ab8 | 70 | Summary: Header files for CinePaint libraries |
9951d5cf | 71 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek CinePainta |
e38b6027 | 72 | Group: X11/Development/Libraries |
f442395c | 73 | Requires: %{name} = %{version}-%{release} |
3648d268 | 74 | Obsoletes: filmgimp-devel |
e38b6027 | 75 | |
76 | %description devel | |
22a19ab8 | 77 | Header files for CinePaint libraries. |
e38b6027 | 78 | |
232b2685 JR |
79 | %description devel -l pl.UTF-8 |
80 | Pliki nagłówkowe bibliotek CinePainta. | |
e38b6027 | 81 | |
82 | %package static | |
22a19ab8 | 83 | Summary: Static CinePaint libraries |
9951d5cf | 84 | Summary(pl.UTF-8): Statyczne biblioteki CinePaint |
e38b6027 | 85 | Group: X11/Development/Libraries |
f442395c | 86 | Requires: %{name}-devel = %{version}-%{release} |
3648d268 | 87 | Obsoletes: filmgimp-static |
e38b6027 | 88 | |
89 | %description static | |
22a19ab8 | 90 | Static CinePaint libraries. |
e38b6027 | 91 | |
232b2685 | 92 | %description static -l pl.UTF-8 |
22a19ab8 | 93 | Statyczne biblioteki CinePainta. |
e38b6027 | 94 | |
95 | %prep | |
cbd6e183 JB |
96 | %setup -q -n %{name} |
97 | %patch0 -p1 | |
98 | %patch1 -p1 | |
99 | %patch2 -p1 | |
100 | %patch3 -p1 | |
101 | %patch4 -p1 | |
102 | ||
103 | # dead symlinks | |
104 | %{__rm} config.guess config.sub py-compile | |
e38b6027 | 105 | |
106 | %build | |
cbd6e183 JB |
107 | %{__libtoolize} |
108 | %{__aclocal} -I aclocal | |
109 | %{__autoconf} | |
110 | %{__automake} | |
18d3a733 | 111 | %configure \ |
cbd6e183 | 112 | %{!?with_print:--disable-print} |
e38b6027 | 113 | |
114 | %{__make} | |
115 | ||
116 | %install | |
117 | rm -rf $RPM_BUILD_ROOT | |
118 | ||
119 | %{__make} install \ | |
120 | DESTDIR=$RPM_BUILD_ROOT \ | |
121 | m4datadir=%{_aclocaldir} | |
122 | ||
cbd6e183 JB |
123 | %{__rm} $RPM_BUILD_ROOT%{py_sitedir}/gimpmodule.{la,a} |
124 | # provided by fonts-TTF-freefont | |
125 | %{__rm} $RPM_BUILD_ROOT%{_fontsdir}/FreeSans.ttf | |
126 | ||
127 | %py_postclean | |
128 | ||
129 | # cinepaint,cinepaint-script-fu,cinepaint-std-plugins domains | |
18d3a733 | 130 | %find_lang cinepaint --all-name |
131 | ||
e38b6027 | 132 | %clean |
133 | rm -rf $RPM_BUILD_ROOT | |
134 | ||
135 | %post -p /sbin/ldconfig | |
136 | %postun -p /sbin/ldconfig | |
137 | ||
18d3a733 | 138 | %files -f %{name}.lang |
e38b6027 | 139 | %defattr(644,root,root,755) |
cbd6e183 JB |
140 | # COPYING contains only license notes |
141 | %doc AUTHORS BUGS COPYING ChangeLog NEWS README TODO | |
142 | %attr(755,root,root) %{_bindir}/cinepaint | |
143 | %attr(755,root,root) %{_bindir}/cinepaint-remote | |
144 | %attr(755,root,root) %{_libdir}/libcinepaint.so.*.*.* | |
145 | %attr(755,root,root) %ghost %{_libdir}/libcinepaint.so.1 | |
146 | %attr(755,root,root) %{_libdir}/libcinepaintHalf.so.*.*.* | |
147 | %attr(755,root,root) %ghost %{_libdir}/libcinepaintHalf.so.1 | |
148 | %attr(755,root,root) %{_libdir}/libcinepaint_fl_i18n.so.*.*.* | |
149 | %attr(755,root,root) %ghost %{_libdir}/libcinepaint_fl_i18n.so.1 | |
9c8e8426 | 150 | %dir %{_libdir}/%{name} |
cbd6e183 JB |
151 | %dir %{_libdir}/%{name}/%{abiver} |
152 | %dir %{_libdir}/%{name}/%{abiver}/extra | |
153 | %attr(755,root,root) %{_libdir}/%{name}/%{abiver}/extra/dcraw | |
154 | %attr(755,root,root) %{_libdir}/%{name}/%{abiver}/extra/jhead | |
155 | %dir %{_libdir}/%{name}/%{abiver}/plug-ins | |
156 | %attr(755,root,root) %{_libdir}/%{name}/%{abiver}/plug-ins/* | |
e38b6027 | 157 | # resource directories |
bcefa12d | 158 | %dir %{_datadir}/%{name} |
cbd6e183 JB |
159 | %dir %{_datadir}/%{name}/%{abiver} |
160 | %{_datadir}/%{name}/%{abiver}/brushes | |
161 | %{_datadir}/%{name}/%{abiver}/curves | |
162 | %{_datadir}/%{name}/%{abiver}/gradients | |
163 | %{_datadir}/%{name}/%{abiver}/iol | |
164 | %{_datadir}/%{name}/%{abiver}/palettes | |
165 | %{_datadir}/%{name}/%{abiver}/patterns | |
166 | %{_datadir}/%{name}/%{abiver}/scripts | |
e38b6027 | 167 | # default rc(?) |
cbd6e183 JB |
168 | %{_datadir}/%{name}/%{abiver}/gimprc |
169 | %{_datadir}/%{name}/%{abiver}/gimprc_user | |
170 | %{_datadir}/%{name}/%{abiver}/gtkrc | |
171 | %{_datadir}/%{name}/%{abiver}/gtkrc.forest2 | |
172 | %{_datadir}/%{name}/%{abiver}/printrc_user | |
173 | %{_datadir}/%{name}/%{abiver}/ps-menurc | |
174 | %{_datadir}/%{name}/%{abiver}/spot.splash.ppm | |
175 | %{_datadir}/%{name}/%{abiver}/tips.txt | |
176 | %attr(755,root,root) %{_datadir}/%{name}/%{abiver}/user_install | |
177 | %attr(755,root,root) %{py_sitedir}/gimpmodule.so | |
178 | %{py_sitescriptdir}/gimpenums.py[co] | |
179 | %{py_sitescriptdir}/gimpfu.py[co] | |
180 | %{py_sitescriptdir}/gimpplugin.py[co] | |
181 | %{py_sitescriptdir}/gimpshelf.py[co] | |
182 | %{py_sitescriptdir}/gimpui.py[co] | |
183 | %{_mandir}/man1/cinepaint.1* | |
18d3a733 | 184 | %{_desktopdir}/cinepaint.desktop |
185 | %{_pixmapsdir}/cinepaint.png | |
e38b6027 | 186 | |
187 | %files devel | |
188 | %defattr(644,root,root,755) | |
cbd6e183 JB |
189 | %attr(755,root,root) %{_bindir}/cinepainttool |
190 | %attr(755,root,root) %{_libdir}/libcinepaint.so | |
191 | %attr(755,root,root) %{_libdir}/libcinepaintHalf.so | |
192 | %attr(755,root,root) %{_libdir}/libcinepaint_fl_i18n.so | |
193 | %{_libdir}/libcinepaint.la | |
194 | %{_libdir}/libcinepaintHalf.la | |
195 | %{_libdir}/libcinepaint_fl_i18n.la | |
196 | %{_includedir}/cinepaint | |
18d3a733 | 197 | %{_pkgconfigdir}/cinepaint-gtk.pc |
cbd6e183 JB |
198 | %{_aclocaldir}/cinepaint.m4 |
199 | %{_mandir}/man1/cinepainttool.1* | |
e38b6027 | 200 | |
201 | %files static | |
202 | %defattr(644,root,root,755) | |
cbd6e183 JB |
203 | %{_libdir}/libcinepaint.a |
204 | %{_libdir}/libcinepaintHalf.a | |
205 | %{_libdir}/libcinepaint_fl_i18n.a |