]>
Commit | Line | Data |
---|---|---|
5717de99 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without cups # GSCUPS bundle | |
58075a32 | 4 | %bcond_without magick # ImageMagick support |
5717de99 JB |
5 | %bcond_without portaudio # gsnd tool |
6 | # | |
829d10ca | 7 | Summary: GNUstep GUI library package |
fb1f7b25 | 8 | Summary(pl.UTF-8): Biblioteka GNUstep GUI |
829d10ca | 9 | Name: gnustep-gui |
58075a32 JB |
10 | %define ver 0.23 |
11 | Version: %{ver}.1 | |
12 | Release: 1 | |
13 | License: LGPL v2+ (library), GPL v3+ (applications) | |
4b35d086 | 14 | Group: Libraries |
829d10ca | 15 | Source0: ftp://ftp.gnustep.org/pub/gnustep/core/%{name}-%{version}.tar.gz |
58075a32 JB |
16 | # Source0-md5: 1771bdb42f27ee946b17bf60fef5eb2e |
17 | Patch0: %{name}-nocompressdocs.patch | |
18 | Patch1: %{name}-doc.patch | |
aa92dd8e | 19 | URL: http://www.gnustep.org/ |
58075a32 | 20 | %{?with_magick:BuildRequires: ImageMagick-devel} |
c3847b61 | 21 | BuildRequires: aspell-devel |
f6967d0c | 22 | BuildRequires: audiofile-devel |
5717de99 | 23 | %{?with_cups:BuildRequires: cups-devel} |
58075a32 | 24 | BuildRequires: flite-devel |
f6967d0c | 25 | BuildRequires: gcc-objc |
5717de99 JB |
26 | BuildRequires: giflib-devel |
27 | BuildRequires: gnustep-base-devel >= 1.13.0 | |
58075a32 JB |
28 | BuildRequires: gnustep-make-devel |
29 | BuildRequires: libao-devel | |
30 | BuildRequires: libicu-devel >= 4.0 | |
f6967d0c | 31 | BuildRequires: libjpeg-devel |
5717de99 | 32 | BuildRequires: libpng-devel |
58075a32 | 33 | BuildRequires: libsndfile-devel |
f6967d0c | 34 | BuildRequires: libtiff-devel |
58075a32 | 35 | BuildRequires: pkgconfig |
5717de99 | 36 | %{?with_portaudio:BuildRequires: portaudio-devel >= 19} |
f6967d0c | 37 | BuildRequires: zlib-devel |
5717de99 | 38 | Requires: gnustep-base >= 1.13.0 |
f6967d0c JB |
39 | Conflicts: gnustep-core |
40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
41 | ||
aa92dd8e | 42 | %description |
829d10ca | 43 | It is a library of graphical user interface classes written completely |
44 | in the Objective-C language; the classes are based upon the OpenStep | |
45 | specification as release by NeXT Software, Inc. The library does not | |
46 | completely conform to the specification and has been enhanced in a | |
47 | number of ways to take advantage of the GNU system. These classes | |
aa92dd8e | 48 | include graphical objects such as buttons, text fields, popup lists, |
49 | browser lists, and windows; there are also many associated classes for | |
50 | handling events, colors, fonts, pasteboards and images. | |
51 | ||
c261d120 JR |
52 | %description -l pl.UTF-8 |
53 | To jest biblioteka klas graficznego interfejsu użytkownika napisana w | |
54 | Objective-C. Klasy bazują na specyfikacji OpenStep wypuszczonej przez | |
55 | NeXT Software. Biblioteka nie jest całkowicie zgodna ze specyfikacją i | |
56 | została rozszerzona, aby wykorzystać możliwości systemu GNU. Klasy | |
57 | zawierają graficzne obiekty takie jak przyciski, pola tekstowe, listy | |
58 | rozwijane, listy przewijane i okienka; jest także wiele klas do | |
59 | obsługi zdarzeń, kolorów, fontów i obrazków. | |
e0359688 | 60 | |
aa92dd8e | 61 | %package devel |
e0359688 | 62 | Summary: GNUstep GUI headers and libs |
fb1f7b25 | 63 | Summary(pl.UTF-8): Pliki nagłówkowe GNUstep GUI |
829d10ca | 64 | Group: Development/Libraries |
40ce32db | 65 | Requires: %{name} = %{version}-%{release} |
f6967d0c | 66 | Requires: audiofile-devel |
5717de99 | 67 | Requires: gnustep-base-devel >= 1.13.0 |
f6967d0c JB |
68 | Requires: libjpeg-devel |
69 | Requires: libtiff-devel | |
829d10ca | 70 | Conflicts: gnustep-core |
aa92dd8e | 71 | |
72 | %description devel | |
829d10ca | 73 | Header files required to build applications against the GNUstep GUI |
f6967d0c | 74 | library. |
aa92dd8e | 75 | |
c261d120 JR |
76 | %description devel -l pl.UTF-8 |
77 | Pliki nagłówkowe potrzebne do budowania aplikacji korzystających z | |
e0359688 JB |
78 | biblioteki GNUstep GUI. |
79 | ||
aa92dd8e | 80 | %prep |
f6967d0c | 81 | %setup -q |
41dc2ea6 | 82 | %patch0 -p1 |
0f8149d4 | 83 | %patch1 -p1 |
aa92dd8e | 84 | |
85 | %build | |
f669a675 | 86 | export GNUSTEP_MAKEFILES=%{_datadir}/GNUstep/Makefiles |
5717de99 | 87 | export GNUSTEP_FLATTENED=yes |
120e1cac JB |
88 | # disable gsnd - not ready for current portaudio |
89 | %configure \ | |
5717de99 | 90 | %{!?with_cups:--disable-cups} \ |
58075a32 JB |
91 | %{!?with_portaudio:--disable-gsnd} \ |
92 | %{?with_magick:--enable-imagemagick} \ | |
93 | --enable-libgif \ | |
94 | --disable-ungif | |
aa92dd8e | 95 | |
d4d24605 SS |
96 | # with __make -jN we can got non-deterministic errors |
97 | %{__make} -j1 \ | |
f6967d0c | 98 | messages=yes |
aa92dd8e | 99 | |
f6967d0c JB |
100 | %install |
101 | rm -rf $RPM_BUILD_ROOT | |
f669a675 | 102 | export GNUSTEP_MAKEFILES=%{_datadir}/GNUstep/Makefiles |
8bc301c9 | 103 | export GNUSTEP_INSTALLATION_DOMAIN=SYSTEM |
5717de99 | 104 | export GNUSTEP_FLATTENED=yes |
aa92dd8e | 105 | |
f6967d0c | 106 | %{__make} install \ |
f669a675 JR |
107 | DESTDIR=$RPM_BUILD_ROOT |
108 | ||
0bd255f5 | 109 | %{__make} install -C Documentation \ |
f669a675 | 110 | DESTDIR=$RPM_BUILD_ROOT |
aa92dd8e | 111 | |
f669a675 | 112 | find $RPM_BUILD_ROOT%{_datadir}/GNUstep/Documentation \ |
3e8a68a7 | 113 | -type f -name .cvsignore | xargs rm -f |
aa92dd8e | 114 | |
f669a675 JR |
115 | # not (yet?) supported by rpm-compress-doc |
116 | find $RPM_BUILD_ROOT%{_datadir}/GNUstep/Documentation \ | |
117 | -type f -a ! -name '*.html' -a ! -name '*.gz' -a ! -name '*.jpg' -a ! -name '*.css' | xargs gzip -9nf | |
c387a5cc | 118 | |
aa92dd8e | 119 | %clean |
120 | rm -rf $RPM_BUILD_ROOT | |
121 | ||
e0359688 JB |
122 | %post -p /sbin/ldconfig |
123 | %postun -p /sbin/ldconfig | |
124 | ||
f6967d0c | 125 | %files |
829d10ca | 126 | %defattr(644,root,root,755) |
f6967d0c | 127 | %doc ChangeLog |
f669a675 JR |
128 | %docdir %{_datadir}/GNUstep/Documentation |
129 | %dir %{_datadir}/GNUstep/Documentation/Developer | |
130 | %dir %{_datadir}/GNUstep/Documentation/Developer/Gui | |
131 | %{_datadir}/GNUstep/Documentation/Developer/Gui/ReleaseNotes | |
132 | %{_datadir}/GNUstep/Documentation/User | |
133 | ||
58075a32 JB |
134 | %{_mandir}/man1/gclose.1* |
135 | %{_mandir}/man1/gcloseall.1* | |
136 | %{_mandir}/man1/gopen.1* | |
137 | %{_mandir}/man1/make_services.1* | |
138 | %{_mandir}/man1/set_show_service.1* | |
f6967d0c | 139 | |
58075a32 JB |
140 | %attr(755,root,root) %{_bindir}/GSSpeechServer |
141 | %attr(755,root,root) %{_bindir}/gclose | |
142 | %attr(755,root,root) %{_bindir}/gcloseall | |
143 | %attr(755,root,root) %{_bindir}/gopen | |
144 | %attr(755,root,root) %{_bindir}/make_services | |
145 | %attr(755,root,root) %{_bindir}/say | |
146 | %attr(755,root,root) %{_bindir}/set_show_service | |
147 | %attr(755,root,root) %{_libdir}/libgnustep-gui.so.*.*.* | |
148 | %attr(755,root,root) %ghost %{_libdir}/libgnustep-gui.so.%{ver} | |
149 | ||
c83d61ad | 150 | # XXX: shared with WindowMaker - move to gnustep-dirs? |
58075a32 | 151 | %dir %{_libdir}/GNUstep/Applications |
c83d61ad | 152 | |
58075a32 JB |
153 | %dir %{_libdir}/GNUstep/Applications/GSSpeechServer.app |
154 | %attr(755,root,root) %{_libdir}/GNUstep/Applications/GSSpeechServer.app/GSSpeechServer | |
155 | %{_libdir}/GNUstep/Applications/GSSpeechServer.app/Resources | |
156 | %{_libdir}/GNUstep/Applications/GSSpeechServer.app/stamp.make | |
f6967d0c | 157 | |
b10e018b | 158 | %dir %{_libdir}/GNUstep/Bundles |
58075a32 JB |
159 | |
160 | %dir %{_libdir}/GNUstep/Bundles/AudioOutput.nssound | |
161 | %attr(755,root,root) %{_libdir}/GNUstep/Bundles/AudioOutput.nssound/AudioOutput | |
162 | %{_libdir}/GNUstep/Bundles/AudioOutput.nssound/Resources | |
163 | %{_libdir}/GNUstep/Bundles/AudioOutput.nssound/stamp.make | |
164 | ||
f669a675 JR |
165 | %dir %{_libdir}/GNUstep/Bundles/GSPrinting |
166 | %dir %{_libdir}/GNUstep/Bundles/GSPrinting/GSLPR.bundle | |
58075a32 | 167 | %attr(755,root,root) %{_libdir}/GNUstep/Bundles/GSPrinting/GSLPR.bundle/GSLPR |
f669a675 | 168 | %{_libdir}/GNUstep/Bundles/GSPrinting/GSLPR.bundle/Resources |
58075a32 | 169 | %{_libdir}/GNUstep/Bundles/GSPrinting/GSLPR.bundle/stamp.make |
5717de99 JB |
170 | %if %{with cups} |
171 | # R: cups-lib - separate? | |
f669a675 | 172 | %dir %{_libdir}/GNUstep/Bundles/GSPrinting/GSCUPS.bundle |
58075a32 | 173 | %attr(755,root,root) %{_libdir}/GNUstep/Bundles/GSPrinting/GSCUPS.bundle/GSCUPS |
f669a675 | 174 | %{_libdir}/GNUstep/Bundles/GSPrinting/GSCUPS.bundle/Resources |
58075a32 | 175 | %{_libdir}/GNUstep/Bundles/GSPrinting/GSCUPS.bundle/stamp.make |
5717de99 | 176 | %endif |
f669a675 | 177 | |
58075a32 JB |
178 | %dir %{_libdir}/GNUstep/Bundles/Sndfile.nssound |
179 | %attr(755,root,root) %{_libdir}/GNUstep/Bundles/Sndfile.nssound/Sndfile | |
180 | %{_libdir}/GNUstep/Bundles/Sndfile.nssound/Resources | |
181 | %{_libdir}/GNUstep/Bundles/Sndfile.nssound/stamp.make | |
182 | ||
f669a675 JR |
183 | %dir %{_libdir}/GNUstep/Bundles/TextConverters |
184 | %dir %{_libdir}/GNUstep/Bundles/TextConverters/RTFConverter.bundle | |
f669a675 | 185 | %attr(755,root,root) %{_libdir}/GNUstep/Bundles/TextConverters/RTFConverter.bundle/RTFConverter |
58075a32 JB |
186 | %{_libdir}/GNUstep/Bundles/TextConverters/RTFConverter.bundle/Resources |
187 | %{_libdir}/GNUstep/Bundles/TextConverters/RTFConverter.bundle/stamp.make | |
188 | ||
f669a675 | 189 | %dir %{_libdir}/GNUstep/Bundles/libgmodel.bundle |
f669a675 | 190 | %attr(755,root,root) %{_libdir}/GNUstep/Bundles/libgmodel.bundle/libgmodel |
58075a32 JB |
191 | %{_libdir}/GNUstep/Bundles/libgmodel.bundle/Resources |
192 | %{_libdir}/GNUstep/Bundles/libgmodel.bundle/stamp.make | |
f669a675 JR |
193 | |
194 | %dir %{_libdir}/GNUstep/ColorPickers | |
58075a32 | 195 | |
f669a675 | 196 | %dir %{_libdir}/GNUstep/ColorPickers/NamedPicker.bundle |
f669a675 | 197 | %attr(755,root,root) %{_libdir}/GNUstep/ColorPickers/NamedPicker.bundle/NamedPicker |
58075a32 JB |
198 | %{_libdir}/GNUstep/ColorPickers/NamedPicker.bundle/Resources |
199 | %{_libdir}/GNUstep/ColorPickers/NamedPicker.bundle/stamp.make | |
200 | ||
f669a675 | 201 | %dir %{_libdir}/GNUstep/ColorPickers/StandardPicker.bundle |
58075a32 | 202 | %attr(755,root,root) %{_libdir}/GNUstep/ColorPickers/StandardPicker.bundle/StandardPicker |
f669a675 JR |
203 | %dir %{_libdir}/GNUstep/ColorPickers/StandardPicker.bundle/Resources |
204 | %{_libdir}/GNUstep/ColorPickers/StandardPicker.bundle/Resources/*.tiff | |
205 | %{_libdir}/GNUstep/ColorPickers/StandardPicker.bundle/Resources/*.plist | |
206 | %{_libdir}/GNUstep/ColorPickers/StandardPicker.bundle/Resources/English.lproj | |
207 | %lang(fr) %{_libdir}/GNUstep/ColorPickers/StandardPicker.bundle/Resources/French.lproj | |
58075a32 | 208 | %lang(es) %{_libdir}/GNUstep/ColorPickers/StandardPicker.bundle/Resources/Spanish.lproj |
f669a675 | 209 | %lang(sv) %{_libdir}/GNUstep/ColorPickers/StandardPicker.bundle/Resources/Swedish.lproj |
58075a32 JB |
210 | %{_libdir}/GNUstep/ColorPickers/StandardPicker.bundle/stamp.make |
211 | ||
f669a675 | 212 | %dir %{_libdir}/GNUstep/ColorPickers/WheelPicker.bundle |
f669a675 | 213 | %attr(755,root,root) %{_libdir}/GNUstep/ColorPickers/WheelPicker.bundle/WheelPicker |
58075a32 JB |
214 | %{_libdir}/GNUstep/ColorPickers/WheelPicker.bundle/Resources |
215 | %{_libdir}/GNUstep/ColorPickers/WheelPicker.bundle/stamp.make | |
f669a675 | 216 | |
b10e018b JR |
217 | %{_libdir}/GNUstep/Images |
218 | %{_libdir}/GNUstep/KeyBindings | |
f669a675 JR |
219 | |
220 | %dir %{_libdir}/GNUstep/Libraries/gnustep-gui | |
221 | %dir %{_libdir}/GNUstep/Libraries/gnustep-gui/Versions | |
222 | %dir %{_libdir}/GNUstep/Libraries/gnustep-gui/Versions/%{ver} | |
223 | %dir %{_libdir}/GNUstep/Libraries/gnustep-gui/Versions/%{ver}/Resources | |
224 | %{_libdir}/GNUstep/Libraries/gnustep-gui/Versions/%{ver}/Resources/*.plist | |
225 | %{_libdir}/GNUstep/Libraries/gnustep-gui/Versions/%{ver}/Resources/English.lproj | |
226 | %lang(eo) %{_libdir}/GNUstep/Libraries/gnustep-gui/Versions/%{ver}/Resources/Esperanto.lproj | |
58075a32 | 227 | %lang(fr) %{_libdir}/GNUstep/Libraries/gnustep-gui/Versions/%{ver}/Resources/French.lproj |
f669a675 JR |
228 | %lang(de) %{_libdir}/GNUstep/Libraries/gnustep-gui/Versions/%{ver}/Resources/German.lproj |
229 | %lang(it) %{_libdir}/GNUstep/Libraries/gnustep-gui/Versions/%{ver}/Resources/Italian.lproj | |
230 | %lang(jbo) %{_libdir}/GNUstep/Libraries/gnustep-gui/Versions/%{ver}/Resources/Lojban.lproj | |
58075a32 | 231 | %lang(es) %{_libdir}/GNUstep/Libraries/gnustep-gui/Versions/%{ver}/Resources/Spanish.lproj |
f669a675 JR |
232 | |
233 | %dir %{_libdir}/GNUstep/PostScript | |
234 | %{_libdir}/GNUstep/PostScript/GSProlog.ps | |
235 | %dir %{_libdir}/GNUstep/PostScript/PPD | |
236 | %{_libdir}/GNUstep/PostScript/PPD/English.lproj | |
58075a32 | 237 | |
b10e018b | 238 | %dir %{_libdir}/GNUstep/Services |
58075a32 | 239 | |
f669a675 | 240 | %dir %{_libdir}/GNUstep/Services/GSspell.service |
f669a675 | 241 | %attr(755,root,root) %{_libdir}/GNUstep/Services/GSspell.service/GSspell |
58075a32 JB |
242 | %{_libdir}/GNUstep/Services/GSspell.service/Resources |
243 | ||
244 | %{_libdir}/GNUstep/Sounds | |
f6967d0c JB |
245 | |
246 | %files devel | |
829d10ca | 247 | %defattr(644,root,root,755) |
58075a32 JB |
248 | %attr(755,root,root) %{_libdir}/libgnustep-gui.so |
249 | %{_includedir}/AppKit | |
250 | %{_includedir}/Cocoa | |
251 | %{_includedir}/GNUstepGUI | |
252 | %{_includedir}/gnustep/gui | |
253 | ||
f669a675 JR |
254 | %docdir %{_datadir}/GNUstep/Documentation |
255 | %{_datadir}/GNUstep/Documentation/Developer/Gui/Additions | |
256 | %{_datadir}/GNUstep/Documentation/Developer/Gui/General | |
257 | %{_datadir}/GNUstep/Documentation/Developer/Gui/ProgrammingManual | |
258 | %{_datadir}/GNUstep/Documentation/Developer/Gui/Reference | |
58075a32 | 259 | %{_infodir}/AppKit.info* |
f669a675 | 260 | |
f669a675 | 261 | %{_datadir}/GNUstep/Makefiles/Additional/gui.make |