Package openmotif: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 | %set_automake_version 1.11 %def_with demos %def_disable static %define soname 4 Name: openmotif Version: 2.3.8 Release: alt1 Summary: The Open Motif License: Open Group Public License Group: System/Libraries Url: http://www.openmotif.org Source: ftp://ftp.ics.com/openmotif/2.3/%version/%name-%version.tar.gz # RH Patch58: openmotif-2.3.3-alt-no_underlinked.patch Patch4: openMotif-2.2.3-rh-long64.patch Patch7: openMotif-2.2.3-rh-popup_timeout.patch Patch8: openMotif-2.2.3-rh-uil_lib.patch # ALT Patch44: openmotif-2.2.3-alt-VERSION.patch # PLD Patch52: openmotif-mwmrc.patch Patch53: openmotif-bison.patch Patch54: openmotif-freetype.patch Patch57: openmotif-2.3.3-alt-DSO.patch Packager: Michael Shigorin <mike@altlinux.org> # Automatically added by buildreq on Mon Feb 28 2011 BuildRequires: flex libXext-devel libXft-devel libXmu-devel libXp-devel libjpeg-devel libpng-devel xorg-bitmaps xorg-cf-files %define libname lib%name %define libnameso lib%name%soname %define _x11sysconfdir %_sysconfdir/X11 %package -n %libnameso Summary: The Open Motif shared libraries Group: System/Libraries Provides: %name = %version Obsoletes: %name < %version %package -n %libname-devel Summary: Include files for OpenMotif development Group: Development/C Requires: %libnameso = %version-%release Conflicts: lesstif-devel Provides: motif-devel = %version Provides: %name-devel = %version Obsoletes: %name-devel < %version %package -n %libname-devel-static Summary: Static libraries for OpenMotif development Group: Development/C Requires: %libname-devel = %version-%release Conflicts: lesstif-devel-static Provides: motif-devel-static = %version Provides: %name-devel-static = %version Obsoletes: %name-devel-static < %version %package mwm Summary: Motif window manager Group: Graphical desktop/Motif Requires: %libnameso = %version-%release Conflicts: lesstif-mwm Provides: motif-mwm = %version-%release %package clients Summary: Motif clients Group: Graphical desktop/Motif Requires: %libnameso = %version-%release Conflicts: lesstif-clients Provides: motif-clients = %version-%release %package demos Summary: OpenMotif demo applications Group: Development/C Requires: %libnameso = %version-%release %description This package intentionally left blank. %description -n %libnameso The industry standard user interface toolkit for the X Window System. This package contains shared libraries to run Motif applications. %description -n %libname-devel The industry standard user interface toolkit for the X Window System. This package contains header files to develop Motif applications. %description -n %libname-devel-static The industry standard user interface toolkit for the X Window System. This package contains the Motif static libraries. %description mwm The industry standard user interface toolkit for the X Window System. This package contains mwm, Motif window manager. %description clients The industry standard user interface toolkit for the X Window System. This package contains uil and xmbind. %description demos The industry standard user interface toolkit for the X Window System. This package contains the Motif demo applications. %prep %setup # RH %patch58 -p2 %patch4 -p1 %patch7 -p1 %patch8 -p1 # ALT %patch44 -p1 # PLD %patch52 -p1 %patch53 -p1 %patch54 -p1 %patch57 -p2 find -type f -name \*.orig -delete -print for i in $(find demos/programs -name 'Makefile.*'); do sed -i 's|bindir = \${prefix}/share|bindir = ${prefix}/%_lib|' $i done %build %{expand:%%add_optflags %(getconf LFS_CFLAGS)} %{?!_enable_static:export lt_cv_prog_cc_static_works=no} libtoolize --copy --force touch INSTALL NEWS AUTHORS %autoreconf %configure --enable-shared %{subst_enable static} make clean %make_build %install mkdir -p %buildroot%_x11sysconfdir/{app-defaults,mwm,xinit.d} ln -s ../../..%_x11bindir/xmbind %buildroot%_x11sysconfdir/xinit.d/ %makeinstall_std mv %buildroot%_libdir/X11/system.mwmrc %buildroot%_x11sysconfdir/mwm for f in %buildroot%_libexecdir/app-defaults/*; do [ -f "$f" ] || continue mv "$f" %buildroot%_x11sysconfdir/app-defaults/ done %if_with demos #find %buildroot%_libdir/Xm -type f -perm /111 -exec mv -t %buildroot%_bindir -- '{}' '+' ls %buildroot%_bindir/* \ | sed -e "s,%buildroot,,g" \ | grep -Ev '/(mwm|uil|xmbind)$' >demos.list ||: %endif # Assist cpp.req by using fake pkgconfig file. install -pD -m644 {,%buildroot}%_pkgconfigdir/xft.pc %pre -n %libname-devel rm -f %_x11includedir/{Mrm,Xm} >/dev/null 2>&1 ||: %files -n %libnameso %_libdir/*.so.* %doc BUGREPORT COPYING RELNOTES TODO %files -n %libname-devel %_libdir/*.so %_includedir/Mrm %_includedir/Xm %_includedir/uil %_includedir/X11/bitmaps/* %_man3dir/* %if_enabled static %files -n %libname-devel-static %_libdir/*.a %endif %files clients %_x11sysconfdir/xinit.d/xmbind %_libdir/X11/bindings %_bindir/xmbind %_bindir/uil %_man1dir/uil.1* %_man1dir/xmbind.1* %_man5dir/* %files mwm %dir %_x11sysconfdir/mwm %config %_x11sysconfdir/mwm/* %_bindir/mwm %_man1dir/mwm.1* %_man4dir/* %if_with demos %files demos -f demos.list # conflicts with util-linux #exclude %_bindir/column #exclude %_bindir/tree %_datadir/Xm %_libdir/Xm %_mandir/manm/* %endif # TODO: # - skim over http://cvs.pld-linux.org/cgi-bin/cvsweb/packages/openmotif/ # - also in PLD spec: %package compat (libXm.so.[123]) # - actually test mwm? %changelog * Fri Dec 28 2018 Grigory Ustinov <grenka@altlinux.org> 2.3.8-alt1 - Build new version. * Tue Nov 12 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.3.3-alt4.1 - Fixed build * Tue May 21 2013 Dmitry V. Levin <ldv@altlinux.org> 2.3.3-alt4 - Fixed "find -perm" usage. * Fri Sep 28 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.3.3-alt3 - Rebuilt with libpng15 * Thu Jun 07 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.3.3-alt2.1 - Fixed build * Mon Feb 28 2011 Alexey Tourbin <at@altlinux.ru> 2.3.3-alt2 - rebuilt for debuginfo - enabled strict dependencies between subpackages - enabled JPEG and PNG support * Thu Nov 25 2010 Michael Shigorin <mike@altlinux.org> 2.3.3-alt1.1 - rebuilt for Sisyphus - minor descriptions cleanup * Thu Nov 25 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.3.3-alt1 - Version 2.3.3 (ALT #24510) * Wed May 27 2009 Michael Shigorin <mike@altlinux.org> 2.3.2-alt3 - excluded %_bindir/tree from openmotif-demos (closes: #9056) * Sun May 24 2009 Michael Shigorin <mike@altlinux.org> 2.3.2-alt2 - renamed library packages according to shared library naming policy (if any); particularly, openmotif -> libopenmotif4 to work around apt misbehaviour during 2.2.3 to 2.3.2-alt1 upgrade (thanks vsu@) - spec cleanup * Thu May 21 2009 Michael Shigorin <mike@altlinux.org> 2.3.2-alt1 - 2.3.2 (#20114) + disabled most RH patches (see spec comments) + disabled openmotif-2.2.2-alt-bison.patch + disabled obsolete CVE-related patches + added most of PLD patches (as of 2.3.1-3) - dropped autorecrap call - updated an Url: - me as a de facto Packager: + NB: I don't use mwm, users are welcome to help out * Tue Mar 31 2009 Michael Shigorin <mike@altlinux.org> 2.2.3-alt3.3 - added libXt-devel, libXext-devel deps to devel subpackage (#17155) * Mon Mar 23 2009 Michael Shigorin <mike@altlinux.org> 2.2.3-alt3.2 - added xorg-printproto-devel dependency to devel subpackage (#19285) - removed obsolete macros * Wed Jun 21 2006 Anton Farygin <rider@altlinux.ru> 2.2.3-alt3.1 - fixed build for x86_64 * Tue Feb 07 2006 Victor Forsyuk <force@altlinux.ru> 2.2.3-alt3 - Migration from /usr/X11R6 to /usr. - Security fix for CVE-2005-3964 (buffer overflows in libUil). - Patch for new rgb.txt location. - Add buildreq'ed deps. * Sat Mar 26 2005 Anton D. Kachalov <mouse@altlinux.org> 2.2.3-alt2 - Syncing with RH patches - x86_64 support * Wed May 05 2004 Dmitry V. Levin <ldv@altlinux.org> 2.2.3-alt1 - Updated to 2.2.3. - Reviewed patches. * Sun Nov 30 2003 Dmitry V. Levin <ldv@altlinux.org> 2.2.2-alt4 - Do not package .la files. - Do not build static libraries by default. * Wed Oct 01 2003 Dmitry V. Levin <ldv@altlinux.org> 2.2.2-alt3 - Merged RH patches: libdir, utf8 (rh #80271), Xmu (rh #80777). - Fixed multiply build problems. * Thu Oct 31 2002 Dmitry V. Levin <ldv@altlinux.org> 2.2.2-alt2 - Merged two RH patches: rh-config, rh-maxlinelen. * Fri Apr 12 2002 Dmitry V. Levin <ldv@alt-linux.org> 2.2.2-alt1 - 2.2.2 * Sun Mar 18 2001 Dmitry V. Levin <ldv@altlinux.ru> 2.1.30-ipl7mdk - Moved static libraries to devel-static subpackage. * Wed Mar 14 2001 Dmitry V. Levin <ldv@altlinux.ru> 2.1.30-ipl6mdk - Added bunch of provides. * Wed Feb 14 2001 Dmitry V. Levin <ldv@fandra.org> 2.1.30-ipl5mdk - Relocated config files according to FHS. - Use new group: Graphical desktop/Motif. * Sun Dec 17 2000 Dmitry V. Levin <ldv@fandra.org> 2.1.30-ipl4mdk - Updated groups, summaries and descriptions. - More compatibility with lesstif. * Tue Jun 20 2000 Dmitry V. Levin <ldv@fandra.org> - More RE adaptions. * Wed May 17 2000 AEN <aen@logic.ru> - build with -O2 * Wed May 17 2000 AEN <aen@logic.ru> - first build for RE |