1 # 2 # Copyright (c) 2004 Sun Microsystems Inc. 3 # This file and all modifications and additions to the pristine 4 # package are under the same license as the package itself. 5 # 6 # This spec file generates all packages necessary for the JDS APOC 7 # (A Point Of Control) functionality. 8 # 9 # Please find the project page at: http://so-doc.germany.sun.com/Projects/Apoc/ 10 11 #============================================================================== 12 # Package Information/Description Section 13 # 14 #============================================================================== 15 16 %define t_suffix -build46 17 %{?nightly:%define t_suffix -%(TZ=GMT date +%Y%m%d)} 18 %define PLATFORM unxlngi5 19 20 Name: apoc 21 Version: 1.2 22 Release: 38 23 Distribution: Sun Java(tm) Desktop System, Release 3 24 Vendor: Sun Microsystems, Inc. 25 License: Sun Microsystems Binary Code License (BCL) 26 URL: http://www.sun.com/software/javadesktopsystem/ 27 Autoreqprov: on 28 BuildRoot: %{_builddir}/apoc/%{PLATFORM}/class/packages_build_root 29 Source: apoc-%{version}%{t_suffix}.tar.bz2 30 Source1: l10n-configure.sh 31 BuildRequires: ant 32 33 Group: Applications/Internet 34 Summary: Sun Java(tm) Desktop System Configuration Agent 35 Requires: apoc-base 36 Requires: apoc-misc 37 38 %description 39 Sun Java(tm) Desktop System Configuration Agent 40 41 #------------------------------------------------------------------------------ 42 43 %package base 44 Group: Applications/Internet 45 Summary: Sun Java(tm) Desktop System Configuration Shared Libraries 46 47 %description base 48 Sun Java(tm) Desktop System Configuration Shared Libraries 49 50 #------------------------------------------------------------------------------ 51 52 %package misc 53 Group: Applications/Internet 54 Summary: Configuration Agent Miscellaneous Files 55 56 %description -n apoc-misc 57 Sun Java(tm) Desktop System Configuration Agent Miscellaneous Files 58 59 #------------------------------------------------------------------------------ 60 61 %package adapter-java 62 Group: Applications/Internet 63 Summary: Configuration Adapter for Java Preferences 64 Requires: apoc 65 66 %description -n apoc-adapter-java 67 Sun Java(tm) Desktop System Configuration Adapter for Java Preferences 68 69 #------------------------------------------------------------------------------ 70 71 %package config 72 Group: Applications/Internet 73 Summary: Sun Java(tm) Desktop System Configuration Agent Wizard 74 Requires: apoc 75 76 %description -n apoc-config 77 Sun Java(tm) Desktop System Configuration Agent Wizard 78 79 #------------------------------------------------------------------------------ 80 81 %package cli 82 Group: Applications/Internet 83 Summary: Configuration Management Command Line Interface 84 Requires: apoc-base 85 86 %description -n apoc-cli 87 Sun Java(tm) Desktop System Configuration Management Command Line Interface 88 89 #------------------------------------------------------------------------------ 90 91 %package manager 92 Group: Applications/Internet 93 Summary: Sun Java(tm) Desktop System Configuration Manager 94 Requires: SUNWmcon 95 96 %description -n apoc-manager 97 Sun Java(tm) Desktop System Configuration Manager, Release 2.0 98 99 #------------------------------------------------------------------------------ 100 101 %package agent-templates 102 Group: Applications/Internet 103 Summary: Configuration Manager templates for Configuration Agent 104 Requires: apoc-manager 105 106 %description -n apoc-agent-templates 107 Sun Java(tm) Desktop System Configuration Manager templates for Configuration Agent 108 109 #------------------------------------------------------------------------------ 110 111 %package staroffice-templates 112 Group: Applications/Internet 113 Summary: Configuration Manager templates for StarOffice 7 114 Requires: apoc-manager 115 116 %description -n apoc-staroffice-templates 117 Sun Java(tm) Desktop System Configuration Manager templates for StarOffice 7 118 119 #------------------------------------------------------------------------------ 120 121 %package staroffice8-templates 122 Group: Applications/Internet 123 Summary: Configuration Manager templates for StarOffice 8 124 Requires: apoc-manager 125 126 %description -n apoc-staroffice8-templates 127 Sun Java(tm) Desktop System Configuration Manager templates for StarOffice 8 128 129 #------------------------------------------------------------------------------ 130 131 %package gnome26-templates 132 Group: Applications/Internet 133 Summary: Configuration Manager templates for Gnome 2.6 134 Requires: apoc-manager 135 136 %description -n apoc-gnome26-templates 137 Sun Java(tm) Desktop System Configuration Manager templates for Gnome 2.6 138 139 140 #============================================================================== 141 # Package Build Section 142 # 143 #============================================================================== 144 145 %prep 146 %setup -n apoc 147 148 bash -x %SOURCE1 149 150 %build 151 %ifos linux 152 if [ -x /usr/bin/getconf ]; then 153 CPUS=`getconf _NPROCESSORS_ONLN` 154 fi 155 %else 156 CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` 157 %endif 158 if test "x$CPUS" = "x" -o $CPUS = 0; then 159 CPUS=1 160 fi 161 162 export JAVA_HOME=/usr/java/j2sdk1.4.2_06 163 export PATH=${JAVA_HOME}/bin:$PATH 164 make PLATFORM=%{PLATFORM} all 165 166 %clean 167 rm -rf $RPM_BUILD_ROOT 168 169 170 #============================================================================== 171 # Package Post(Un) Install Section 172 # 173 #============================================================================== 174 175 %preun 176 if [ $1 -eq 0 ]; then 177 /usr/lib/apoc/apocd disable 178 fi 179 180 #------------------------------------------------------------------------------ 181 182 %post config 183 if [ ! -r /usr/bin/apoc-config ]; then 184 ln -s /usr/bin/consolehelper /usr/bin/apoc-config 185 fi 186 187 %postun config 188 if [ $1 = 0 ]; then 189 rm /usr/bin/apoc-config 190 fi 191 192 193 #============================================================================== 194 # Package Files Section 195 # 196 #============================================================================== 197 198 %files 199 %defattr(0644, root, root) 200 /usr/share/lib/apoc/apocd.jar 201 /usr/share/lib/apoc/db.jar 202 203 %dir %attr(0755, root, root) /usr/lib/apoc 204 %attr(0744, root, root) /usr/lib/apoc/apocd 205 %attr(0755, root, root) /usr/lib/apoc/libFileAccess.so 206 %attr(0755, root, root) /usr/lib/apoc/libdb.so.1 207 %attr(0755, root, root) /usr/lib/apoc/libdb_java-4.2.so 208 209 %attr(0755, root, root) /usr/lib/libapoc.so.1 210 /usr/lib/libapoc.so 211 212 #------------------------------------------------------------------------------ 213 214 %files base 215 %defattr(0644, root, root) 216 %dir %attr(0755, root, root) /usr/share/lib/apoc 217 /usr/share/lib/apoc/policymgr.jar 218 /usr/share/lib/apoc/spi.jar 219 /usr/share/lib/apoc/ldapjdk.jar 220 221 #------------------------------------------------------------------------------ 222 223 %files misc 224 %dir %attr(0755, root, root) /etc/apoc 225 %dir %attr(0755, root, root) /etc/init.d 226 %defattr(0644, root, root) 227 %config /etc/apoc/apocd.properties 228 %config /etc/apoc/os.properties 229 %config %attr(0600, root, root) /etc/apoc/policymgr.properties 230 %attr(0755, root, root) /etc/init.d/apocd 231 232 #------------------------------------------------------------------------------ 233 234 %files adapter-java 235 %defattr(-, root, root) 236 /usr/share/lib/apoc/apocprefs.jar 237 /usr/lib/apoc/libapoc_java.so 238 %attr(0755, root, root) /usr/lib/apoc/apocjlaunch 239 240 #------------------------------------------------------------------------------ 241 242 %files config 243 %attr(0644, root, root) /etc/X11/sysconfig/apoc.desktop 244 %attr(0644, root, root) /etc/security/console.apps/apoc-config 245 %attr(0755, root, root) /etc/pam.d/apoc-config 246 %attr(0755, root, root) /usr/sbin/apoc-config 247 %defattr(0755, root, root) 248 /usr/share/lib/apoc/ConfigurationWizard.class 249 /usr/share/lib/apoc/com 250 251 #------------------------------------------------------------------------------ 252 253 %files cli 254 %attr(0755, root, root) /usr/bin/pgtool 255 %attr(0644, root, root) /usr/share/lib/apoc/apoc_cli.jar 256 %attr(0444, root, root) /usr/man/man1/pgtool.1.gz 257 258 #------------------------------------------------------------------------------ 259 260 %files manager 261 %defattr (0744, noaccess, noaccess) 262 %dir /usr/share/webconsole/apoc 263 %dir /usr/share/webconsole/apoc/packages 264 /usr/share/webconsole/apoc/html 265 /usr/share/webconsole/apoc/js 266 /usr/share/webconsole/apoc/images 267 /usr/share/webconsole/apoc/jsp 268 /usr/share/webconsole/apoc/WEB-INF 269 /usr/share/webconsole/apoc/dtd 270 %config %attr(0644, root, root) /usr/share/webconsole/apoc/WEB-INF/policymgr.cfg 271 272 #------------------------------------------------------------------------------ 273 274 %files agent-templates 275 %defattr (0744, noaccess, noaccess) 276 %dir /usr/share/webconsole/apoc 277 %dir /usr/share/webconsole/apoc/packages 278 /usr/share/webconsole/apoc/packages/ConfigurationAgent_pkg 279 280 #------------------------------------------------------------------------------ 281 %files staroffice-templates 282 %defattr (0744, noaccess, noaccess) 283 %dir /usr/share/webconsole/apoc 284 %dir /usr/share/webconsole/apoc/packages 285 /usr/share/webconsole/apoc/packages/StarOffice7_pkg 286 287 #------------------------------------------------------------------------------ 288 289 %files staroffice8-templates 290 %defattr (0744, noaccess, noaccess) 291 %dir /usr/share/webconsole/apoc 292 %dir /usr/share/webconsole/apoc/packages 293 /usr/share/webconsole/apoc/packages/StarOffice8_pkg 294 295 #------------------------------------------------------------------------------ 296 297 %files gnome26-templates 298 %defattr (0744, noaccess, noaccess) 299 %dir /usr/share/webconsole/apoc 300 %dir /usr/share/webconsole/apoc/packages 301 /usr/share/webconsole/apoc/packages/Gnome2.6_pkg 302 303 304 #============================================================================== 305 # Package Change Log Section 306 # 307 #============================================================================== 308 309 %changelog 310 * Thu Jul 13 2006 - Cyrille.Moureaux@Sun.COM 311 - Updated tarball for build 45. 312 313 * Fri Feb 10 2006 - geoff.higgins@sun.com 314 - Change version from 2.0 to 1.2 315 316 * Thu Dec 15 2005 - klaus.ruehl@sun.com 317 - Removed the LdapLoginModule.jar file from the apoc-manager package 318 319 * Fri Sep 09 2005 - katell.galard@sun.com 320 - Add man page to apoc-cli package 321 322 * Thu Aug 18 2005 - geoff.higgins@sun.com 323 - Move daemon startup to boot sequence 324 325 * Mon Nov 29 2004 - dermot.mccluskey@sun.com 326 - Bump source tarball to build 24 327 328 * Mon Nov 15 2004 - damien.carbery@sun.com 329 - Bump source tarball to build 23. 330 331 * Mon Nov 01 2004 - dermotm.mccluskey@sun.com 332 - new tarball for build 22 333 334 * Wed Oct 27 2004 - klaus.ruehl@sun.com 335 - removed apoc-cli-misc package 336 337 * Mon Oct 18 2004 - dermotm.mccluskey@sun.com 338 - new tarball for build 21 339 340 * Thu Oct 14 2004 - geoff.higgins@sun.com 341 - Move to bdb 4 342 343 * Mon Oct 04 2004 - dermotm.mccluskey@sun.com 344 - new tarball for build 20 345 346 * Wed Sep 29 2004 - thomas.pfohe@sun.com 347 - app.xml moved to WEB-INF 348 349 * Mon Sep 27 2004 - klaus.ruehl@sun.com 350 - Merged the content of all other APOC spec files into this single spec file 351 352 * Mon Sep 20 2004 - dermotm.mccluskey@sun.com 353 - new JAVA_HOME 354 355 * Mon Sep 20 2004 - dermotm.mccluskey@sun.com 356 - new tarball for build 19 357 358 * Mon Sep 06 2004 - dermotm.mccluskey@sun.com 359 - new tarball for build 18 360 361 * Wed Sep 01 2004 - dermotm.mccluskey@sun.com 362 - new tarball for build 17b 363 364 * Fri Aug 13 2004 - geoff.higgins@sun.com 365 - Correcting version 366 367 * Thu Aug 12 2004 - geoff.higgins@sun.com 368 - fix for libapoc.so link 369 370 * Fri Jul 23 2004 - klaus.ruehl@sun.com 371 - adapted source tarball name for build 15 372 373 * Wed Jul 07 2004 - dermot.mccluskey@sun.com 374 - added "-j $CPUS" to make to speed up builds 375 376 * Tue Jul 06 2004 - damien.carbery@sun.com 377 - Change to use nightly tarballs. 378 379 *Mon May 31 2004 Geoff Higgins <geoff.higgins@@sun.com> 380 Version 1.0-0 381 Changes relating to inetd enabled startup 382 383 *Tue May 04 2004 Geoff Higgins <geoff.higgins@@sun.com> 384 Version 0.1-26 385 Reverting to "inetd enabled install" 386 387 *Tue Apr 27 2004 Geoff Higgins <geoff.higgins@@sun.com> 388 Version 0.1-25 389 Merging apocd, apocdctl & setenv.sh into apocd 390 391 *Mon Apr 26 2004 Geoff Higgins <geoff.higgins@@sun.com> 392 Version 0.1-24 393 Including os.properties in apocd.jar to provide correct default 394 395 *Thu Apr 15 2004 Geoff Higgins <geoff.higgins@@sun.com> 396 Version 0.1-23 397 Turning off Autoreqprov 398 399 *Tue Apr 13 2004 Geoff Higgins <geoff.higgins@@sun.com> 400 Version 0-1-22 401 Changing name of libapi.so to libapoc.so 402 403 *Fri Feb 20 2004 Geoff Higgins <geoff.higgins@@sun.com> 404 Version 0.1-20 405 Performance improvements 406 407 *Mon Feb 16 2004 Geoff Higgins <geoff.higgins@@sun.com> 408 Version 0.1-19 409 Increasing MaxRequestSize to support larger Active Directory tokens 410 411 *Mon Feb 11 2004 Geoff Higgins <geoff.higgins@@sun.com> 412 Version 0.1-18 413 papi reconnection & GSSAPI/Active Directory support 414 415 *Mon Feb 9 2004 Geoff Higgins <geoff.higgins@@sun.com> 416 Version 0.1-17 417 ServiceName & ServiceContainer no longer configurable 418 419 *Wed Feb 4 2004 Geoff Higgins <geoff.higgins@@sun.com> 420 Version 0.1-16 421 Don't overwrite properties files 422 423 *Mon Feb 2 2004 Geoff Higgins <geoff.higgins@@sun.com> 424 Version 0.1-15 425 Change detection timers 426 427 *Fri Jan 30 2004 Geoff Higgins <geoff.higgins@@sun.com> 428 Version 0.1-14 429 Exception logging, timers etc. 430 431 *Mon Jan 19 2004 Geoff Higgins <geoff.higgins@@sun.com> 432 Version 0.1-13 433 Add argument for inetd start 434 435 *Tue Jan 13 2004 Geoff Higgins <geoff.higgins@@sun.com> 436 Version 0.1-12 437 And back to inetd again 438 439 *Mon Dec 22 2003 Geoff Higgins <geoff.higgins@@sun.com> 440 Version 0.1-11 441 Switching from inetd to init 442 443 *Fri Dec 19 2003 Geoff Higgins <geoff.higgins@@sun.com> 444 Version 0.1-10 445 Changing policymgr.properties permissions 446 447 *Mon Dec 1 2003 Geoff Higgins <geoff.higgins@@sun.com> 448 Version 0.1-9 449 Update license 450 451 *Thu Nov 27 2003 Geoff Higgins <geoff.higgins@@sun.com> 452 Version 0.1-8 453 Fix for 4960347 454 455 *Tue Nov 20 2003 Geoff Higgins <geoff.higgins@@sun.com> 456 Version 0.1-7 457 Moving back to berkeley db 4 due to incompatability with StarOffice 458 459 *Tue Nov 18 2003 Geoff Higgins <geoff.higgins@@sun.com> 460 Version 0.1-6 461 YaST modules moved to seperate rpm 462 463 *Fri Nov 14 2003 Geoff Higgins <geoff.higgins@@sun.com> 464 Version 0.1-5 465 Moving to berkeley db version 4 466 467 *Wed Nov 12 2003 Geoff Higgins <geoff.higgins@@sun.com> 468 Version 0.1-4 469 Fix for 4952794 470 471 *Thu Nov 6 2003 Geoff Higgins <geoff.higgins@@sun.com> 472 Version 0.1-2 473 Feature complete apocd 474 475 *Fri Jul 11 2003 Geoff Higgins <geoff.higgins@@sun.com> 476 Version 0.1-1 477 Initial apocd 478 479