]>
Commit | Line | Data |
---|---|---|
1a8c37c1 | 1 | # TODO: [lib]matio, [lib]pcl_io >= 1.0, [lib]pfs, dcmingle/dcmtk |
77f1f9bf JB |
2 | # |
3 | # Conditional build: | |
4 | %bcond_without apidocs # do not build and package API docs | |
5 | # | |
6 | Summary: Tools to manipulate Generic Tagged Array (GTA) files | |
7 | Summary(pl.UTF-8): Narzędzia do obróbki plików GTA (ogólnych tablic etykietowanych) | |
8 | Name: gtatool | |
9 | Version: 1.0.2 | |
10 | Release: 1 | |
11 | License: GPL v3+ | |
12 | Group: Applications/File | |
13 | Source0: http://download.savannah.nongnu.org/releases/gta/%{name}-%{version}.tar.xz | |
14 | # Source0-md5: 13c454e28a760f03f691f9d21b5c08b3 | |
15 | URL: http://gta.nongnu.org/gtatool.html | |
16 | BuildRequires: ImageMagick-c++-devel | |
17 | BuildRequires: OpenEXR-devel | |
18 | BuildRequires: QtGui-devel >= 4.4.3 | |
1a8c37c1 | 19 | %{?with_apidocs:BuildRequires: doxygen} |
77f1f9bf JB |
20 | # libavformat >= 52.110.0 libavcodec libavdevice libavutil libswscale |
21 | BuildRequires: ffmpeg-devel | |
fec333dc | 22 | BuildRequires: gdal-devel |
77f1f9bf JB |
23 | BuildRequires: libgta-devel >= 0.9.4 |
24 | BuildRequires: libsndfile-devel | |
77f1f9bf | 25 | BuildRequires: libstdc++-devel |
1a8c37c1 | 26 | BuildRequires: muparser-devel |
77f1f9bf JB |
27 | BuildRequires: netpbm-devel |
28 | BuildRequires: pkgconfig | |
29 | BuildRequires: qt4-build >= 4.4.3 | |
30 | BuildRequires: tar >= 1:1.22 | |
31 | BuildRequires: xz | |
32 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
33 | ||
34 | %description | |
35 | Gtatool manipulates Generic Tagged Array (GTA) files. | |
36 | ||
37 | It provides a set of commands that manipulate GTAs on various levels, | |
38 | and it can import from and export to many other file formats. | |
39 | ||
40 | %description -l pl.UTF-8 | |
41 | gtatool pracuje na plikach GTA (Generic Tagged Array - ogólnych | |
42 | tablicach etykietowanych). | |
43 | ||
44 | Pakiet zawiera zestaw poleceń obrabiających GTA na różnych poziomach, | |
45 | potrafiących importować i eksportować do wielu innych formatów plików. | |
46 | ||
1a8c37c1 JB |
47 | %package component-compute |
48 | Summary: gtatool module to compute array element components | |
49 | Summary(pl.UTF-8): Moduł gtatool do obliczania składowych elementów tablicy | |
50 | Group: Applications/File | |
51 | Requires: %{name} = %{version}-%{release} | |
52 | ||
53 | %description component-compute | |
54 | gtatool module to compute array element components. | |
55 | ||
56 | %description component-compute -l pl.UTF-8 | |
57 | Moduł gtatool do obliczania składowych elementów tablicy. | |
58 | ||
77f1f9bf JB |
59 | %package conv-exr |
60 | Summary: gtatool module to convert from/to EXR format | |
61 | Summary(pl.UTF-8): Moduł gtatool do konwersji z/do formatu EXR | |
62 | Group: Applications/File | |
63 | Requires: %{name} = %{version}-%{release} | |
64 | ||
65 | %description conv-exr | |
66 | gtatool module to convert from/to EXR format. | |
67 | ||
68 | %description conv-exr -l pl.UTF-8 | |
69 | Moduł gtatool do konwersji z/do formatu EXR. | |
70 | ||
71 | %package conv-ffmpeg | |
72 | Summary: gtatool module to convert from FFmpeg formats | |
73 | Summary(pl.UTF-8): Moduł gtatool do konwersji z formatów FFmpeg | |
74 | Group: Applications/File | |
75 | Requires: %{name} = %{version}-%{release} | |
76 | ||
77 | %description conv-ffmpeg | |
78 | gtatool module to convert from FFmpeg formats. | |
79 | ||
80 | %description conv-ffmpeg -l pl.UTF-8 | |
81 | Moduł gtatool do konwersji z formatów FFmpeg. | |
82 | ||
fec333dc JB |
83 | %package conv-gdal |
84 | Summary: gtatool module to convert from/to GDAL supported formats | |
85 | Summary(pl.UTF-8): Moduł gtatool do konwersji z/do formatów obsługiwanych przez GDAL | |
86 | Group: Applications/File | |
87 | Requires: %{name} = %{version}-%{release} | |
88 | ||
89 | %description conv-gdal | |
90 | gtatool module to convert from/to GDAL supported formats. | |
91 | ||
92 | %description conv-gdal -l pl.UTF-8 | |
93 | Moduł gtatool do konwersji z/do formatów obsługiwanych przez GDAL. | |
94 | ||
77f1f9bf JB |
95 | %package conv-magick |
96 | Summary: gtatool module to convert from/to ImageMagick supported formats | |
97 | Summary(pl.UTF-8): Moduł gtatool do konwersji z/do formatów obsługiwanych przez ImageMagick | |
98 | Group: Applications/File | |
99 | Requires: %{name} = %{version}-%{release} | |
100 | ||
101 | %description conv-magick | |
102 | gtatool module to convert from/to ImageMagick supported formats. | |
103 | ||
104 | %description conv-magick -l pl.UTF-8 | |
105 | Moduł gtatool do konwersji z/do formatów obsługiwanych przez | |
106 | ImageMagick. | |
107 | ||
108 | %package conv-netpbm | |
109 | Summary: gtatool module to convert from/to NetPBM supported formats | |
110 | Summary(pl.UTF-8): Moduł gtatool do konwersji z/do formatów obsługiwanych przez NetPBM | |
111 | Group: Applications/File | |
112 | Requires: %{name} = %{version}-%{release} | |
113 | ||
114 | %description conv-netpbm | |
115 | gtatool module to convert from/to NetPBM supported formats. | |
116 | ||
117 | %description conv-netpbm -l pl.UTF-8 | |
118 | Moduł gtatool do konwersji z/do formatów obsługiwanych przez NetPBM. | |
119 | ||
120 | %package conv-sndfile | |
121 | Summary: gtatool module to convert from/to libsndfile supported formats | |
122 | Summary(pl.UTF-8): Moduł gtatool do konwersji z/do formatów obsługiwanych przez libsndfile | |
123 | Group: Applications/File | |
124 | Requires: %{name} = %{version}-%{release} | |
125 | ||
126 | %description conv-sndfile | |
127 | gtatool module to convert from/to libsndfile supported formats. | |
128 | ||
129 | %description conv-sndfile -l pl.UTF-8 | |
130 | Moduł gtatool do konwersji z/do formatów obsługiwanych przez | |
131 | libsndfile. | |
132 | ||
133 | %package gui | |
134 | Summary: Qt-based GUI module for gtatool | |
135 | Summary(pl.UTF-8): Moduł graficznego interfejsu użytkownika opartego na Qt dla narzędzia gtatool | |
136 | Group: X11/Applications | |
137 | Requires: %{name} = %{version}-%{release} | |
138 | Requires: QtGui >= 4.4.3 | |
139 | ||
140 | %description gui | |
141 | Qt-based GUI module for gtatool. | |
142 | ||
143 | %description gui -l pl.UTF-8 | |
144 | Moduł graficznego interfejsu użytkownika opartego na Qt dla narzędzia | |
145 | gtatool. | |
146 | ||
147 | %prep | |
148 | %setup -q | |
149 | ||
150 | %build | |
151 | %configure \ | |
152 | --disable-silent-rules | |
153 | %{__make} | |
154 | ||
155 | %install | |
156 | rm -rf $RPM_BUILD_ROOT | |
157 | ||
158 | %{__make} install \ | |
159 | DESTDIR=$RPM_BUILD_ROOT | |
160 | ||
161 | %clean | |
162 | rm -rf $RPM_BUILD_ROOT | |
163 | ||
164 | %post -p /sbin/postshell | |
165 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
166 | ||
167 | %postun -p /sbin/postshell | |
168 | -/usr/sbin/fix-info-dir -c %{_infodir} | |
169 | ||
170 | %files | |
171 | %defattr(644,root,root,755) | |
172 | %doc AUTHORS ChangeLog NEWS README | |
173 | %attr(755,root,root) %{_bindir}/gta | |
174 | %dir %{_libdir}/gtatool | |
175 | %attr(755,root,root) %{_libdir}/gtatool/conv-ply.so | |
176 | %attr(755,root,root) %{_libdir}/gtatool/conv-rat.so | |
177 | %attr(755,root,root) %{_libdir}/gtatool/conv-raw.so | |
178 | %{_mandir}/man1/gta.1* | |
179 | %{_infodir}/gta.info* | |
180 | ||
1a8c37c1 JB |
181 | %files component-compute |
182 | %defattr(644,root,root,755) | |
183 | %attr(755,root,root) %{_libdir}/gtatool/component-compute.so | |
184 | ||
77f1f9bf JB |
185 | %files conv-exr |
186 | %defattr(644,root,root,755) | |
187 | %attr(755,root,root) %{_libdir}/gtatool/conv-exr.so | |
188 | ||
189 | %files conv-ffmpeg | |
190 | %defattr(644,root,root,755) | |
191 | %attr(755,root,root) %{_libdir}/gtatool/conv-ffmpeg.so | |
192 | ||
fec333dc JB |
193 | %files conv-gdal |
194 | %defattr(644,root,root,755) | |
195 | %attr(755,root,root) %{_libdir}/gtatool/conv-gdal.so | |
196 | ||
77f1f9bf JB |
197 | %files conv-magick |
198 | %defattr(644,root,root,755) | |
199 | %attr(755,root,root) %{_libdir}/gtatool/conv-magick.so | |
200 | ||
201 | %files conv-netpbm | |
202 | %defattr(644,root,root,755) | |
203 | %attr(755,root,root) %{_libdir}/gtatool/conv-netpbm.so | |
204 | ||
205 | %files conv-sndfile | |
206 | %defattr(644,root,root,755) | |
207 | %attr(755,root,root) %{_libdir}/gtatool/conv-sndfile.so | |
208 | ||
209 | %files gui | |
210 | %defattr(644,root,root,755) | |
211 | %attr(755,root,root) %{_libdir}/gtatool/gui.so |