]>
Commit | Line | Data |
---|---|---|
18d3a733 | 1 | # |
2 | # TODO: | |
3 | # - Correct building with --with print | |
4 | # | |
5 | # Conditional build: | |
6 | %bcond_with print # build with libgutenprintui | |
7 | ||
583d4f50 | 8 | %define subrel 1 |
f6a3c8ce | 9 | %define rel 2 |
18d3a733 | 10 | %define ver 0.21 |
02157c55 | 11 | %define src %{ver}-%{rel} |
12 | %define fsrc %{ver}-%{rel}-%{subrel} | |
f442395c | 13 | Summary: CinePaint - a motion picture editing tool |
9951d5cf | 14 | Summary(pl.UTF-8): CinePaint - narzędzie do obróbki filmów |
e38b6027 | 15 | Name: cinepaint |
4e775d5b | 16 | Version: %{ver}_%{rel} |
18d3a733 | 17 | Release: 0.1 |
e38b6027 | 18 | License: GPL |
19 | Group: X11/Applications/Graphics | |
18d3a733 | 20 | Source0: http://dl.sourceforge.net/cinepaint/%{name}-%{src}.tar.gz |
f6a3c8ce | 21 | # Source0-md5: 2cc81ac4ea0f32b4af823e94fa2c7380 |
18d3a733 | 22 | %{?with_print:Patch0: %{name}-gutenprintui.patch} |
23 | URL: http://www.cinepaint.org/ | |
8c29ba3d | 24 | BuildRequires: OpenEXR-devel |
e38b6027 | 25 | BuildRequires: automake |
18d3a733 | 26 | BuildRequires: fltk-devel |
8c29ba3d | 27 | BuildRequires: giflib-devel |
583d4f50 | 28 | BuildRequires: gtk+-devel |
8c29ba3d | 29 | BuildRequires: lcms-devel |
e38b6027 | 30 | BuildRequires: libjpeg-devel |
31 | BuildRequires: libpng-devel | |
32 | BuildRequires: libtiff-devel | |
e38b6027 | 33 | BuildRequires: zlib-devel |
18d3a733 | 34 | %{?with_print:BuildRequires: libgutenprintui-devel} |
3648d268 | 35 | Obsoletes: filmgimp |
e38b6027 | 36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
37 | ||
38 | %description | |
22a19ab8 | 39 | CinePaint is a motion picture editing tool primarily used for painting |
40 | and retouching of movies. CinePaint is the most successful open source | |
f442395c JB |
41 | tool in future motion picture work today. It was formerly known as |
42 | FilmGimp. | |
e38b6027 | 43 | |
232b2685 JR |
44 | %description -l pl.UTF-8 |
45 | CinePaint jest narzędziem do obróbki ruchomego obrazu, używanym | |
46 | głównie do rysowania i retuszu filmów. Na dzień dzisiejszy jest | |
47 | narzędziem z otwartymi źródłami, które odniosło największy sukces w | |
48 | branży filmowej. Wcześniej było znane pod nazwą FilmGimp. | |
e38b6027 | 49 | |
50 | %package devel | |
22a19ab8 | 51 | Summary: Header files for CinePaint libraries |
9951d5cf | 52 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek CinePainta |
e38b6027 | 53 | Group: X11/Development/Libraries |
f442395c | 54 | Requires: %{name} = %{version}-%{release} |
3648d268 | 55 | Obsoletes: filmgimp-devel |
e38b6027 | 56 | |
57 | %description devel | |
22a19ab8 | 58 | Header files for CinePaint libraries. |
e38b6027 | 59 | |
232b2685 JR |
60 | %description devel -l pl.UTF-8 |
61 | Pliki nagłówkowe bibliotek CinePainta. | |
e38b6027 | 62 | |
63 | %package static | |
22a19ab8 | 64 | Summary: Static CinePaint libraries |
9951d5cf | 65 | Summary(pl.UTF-8): Statyczne biblioteki CinePaint |
e38b6027 | 66 | Group: X11/Development/Libraries |
f442395c | 67 | Requires: %{name}-devel = %{version}-%{release} |
3648d268 | 68 | Obsoletes: filmgimp-static |
e38b6027 | 69 | |
70 | %description static | |
22a19ab8 | 71 | Static CinePaint libraries. |
e38b6027 | 72 | |
232b2685 | 73 | %description static -l pl.UTF-8 |
22a19ab8 | 74 | Statyczne biblioteki CinePainta. |
e38b6027 | 75 | |
76 | %prep | |
02157c55 | 77 | %setup -q -n %{name}-%{src} |
18d3a733 | 78 | %{?with_print:%patch0 -p1} |
e38b6027 | 79 | |
80 | %build | |
61855b2a | 81 | cp -f /usr/share/automake/config.sub . |
18d3a733 | 82 | %configure \ |
83 | %{!?with_print:--disable-print} | |
e38b6027 | 84 | |
85 | %{__make} | |
86 | ||
87 | %install | |
88 | rm -rf $RPM_BUILD_ROOT | |
89 | ||
90 | %{__make} install \ | |
91 | DESTDIR=$RPM_BUILD_ROOT \ | |
92 | m4datadir=%{_aclocaldir} | |
93 | ||
18d3a733 | 94 | %find_lang cinepaint --all-name |
95 | ||
e38b6027 | 96 | %clean |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | ||
99 | %post -p /sbin/ldconfig | |
100 | %postun -p /sbin/ldconfig | |
101 | ||
18d3a733 | 102 | %files -f %{name}.lang |
e38b6027 | 103 | %defattr(644,root,root,755) |
4e775d5b | 104 | #%doc AUTHORS ChangeLog NEWS README |
e38b6027 | 105 | %attr(755,root,root) %{_bindir}/* |
106 | %attr(755,root,root) %{_libdir}/lib*.so.*.* | |
9c8e8426 | 107 | %dir %{_libdir}/%{name} |
a964e21b JB |
108 | %dir %{_libdir}/%{name}/%{src} |
109 | %dir %{_libdir}/%{name}/%{src}/plug-ins | |
4e775d5b | 110 | %attr(755,root,root) %{_libdir}/%{name}/%{src}/plug-ins/* |
e38b6027 | 111 | # resource directories |
bcefa12d | 112 | %dir %{_datadir}/%{name} |
113 | %dir %{_datadir}/%{name}/%{src} | |
114 | %{_datadir}/%{name}/%{src}/brushes | |
115 | %{_datadir}/%{name}/%{src}/gradients | |
116 | %{_datadir}/%{name}/%{src}/palettes | |
117 | %{_datadir}/%{name}/%{src}/patterns | |
18d3a733 | 118 | %{_datadir}/%{name}/%{src}/curves |
e38b6027 | 119 | # default rc(?) |
4e775d5b | 120 | %{_datadir}/%{name}/%{src}/gimprc* |
121 | %{_datadir}/%{name}/%{src}/gtkrc* | |
122 | %{_datadir}/%{name}/%{src}/ps-menurc | |
123 | %attr(755,root,root) %{_datadir}/%{name}/%{src}/user_install | |
e38b6027 | 124 | # other |
e38b6027 | 125 | %{_mandir}/man1/*.1* |
18d3a733 | 126 | %{_desktopdir}/cinepaint.desktop |
127 | %{_pixmapsdir}/cinepaint.png | |
128 | %{_datadir}/%{name}/%{src}/*.ppm | |
e38b6027 | 129 | |
130 | %files devel | |
131 | %defattr(644,root,root,755) | |
132 | %attr(755,root,root) %{_libdir}/lib*.so | |
133 | %{_libdir}/lib*.la | |
18d3a733 | 134 | %{_includedir}/cinepaint/* |
e38b6027 | 135 | %{_aclocaldir}/*.m4 |
18d3a733 | 136 | %{_pkgconfigdir}/cinepaint-gtk.pc |
e38b6027 | 137 | |
138 | %files static | |
139 | %defattr(644,root,root,755) | |
140 | %{_libdir}/lib*.a |