Package helloWO: 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 | Name: helloWO Version: 5.4.3 Release: alt5 Summary: WebObjects starter-application "HelloWOrld" with complete WebObjects libraries set Summary(ru_RU.UTF-8): стартовое WebObjects-приложение "HelloWOrld" с полным набором библиотек WebObjects License: Distributable Group: Networking/WWW #Vendor: Apple Inc. URL: http://support.apple.com/kb/DL688 BuildArch: noarch Packager: Gennady Kushnir <baywind@altlinux.org>, Andrey Cherepanov <cas@altlinux.org> Source: %{name}-%{version}.tar Provides: hellowo = 5.4.3 BuildRequires: rpm-macros-webobjects Requires: java >= 1.5 AutoReq: noshell noshebang %description HelloWOrld starter application with complete WebObjects libraries set. WebObjects is a set java frameworks for building complex web-applications. It gives developers a comprehensive suite of tools and frameworks for quickly developing standards-based web services and Java server applications. A powerful rapid application development environment, backed by web service, data access, and page generation capabilities, extends the reach of developers and reduces the cost of ownership by ensuring flexible, maintainable design. WebObjects is the ideal way to develop, deploy, and extend powerful web services. %description -l ru_RU.UTF-8 стартовое приложение HelloWOrld с полным набором необходимых библиотек WebObjects. WebObjects - набор Java-библиотек для разработки сложных Web-приложений %prep %setup subst "s,/opt/apple/Local/Library/WebObjects/Logs,%wo_logdir,g" Library/WebObjects/JavaApplications/wotaskd.woa/Contents/Resources/SpawnOfWotaskd.sh rm -rf Library/WebObjects/Adaptors rm -rf Local/Library/WebObjects/Configuration rm -rf Local/Library/WebObjects/Logs %build %pre # create users for WebObjects application Server if [ "$1" = 1 ] ; then %_sbindir/groupadd %wo_group ||: %_sbindir/useradd -g %wo_group -r %wo_user ||: fi %install mkdir -p %buildroot%wo_next_root cp -r Local %buildroot%wo_next_root/ cp -r Library %buildroot%wo_next_root/ mkdir -p %buildroot%_sysconfdir/profile.d/ mkdir -p %buildroot%wo_configdir mkdir -p %buildroot%wo_logdir # add $NEXT_ROOT definition to system initialisation echo "export NEXT_ROOT=\"%wo_next_root\"" > %buildroot%_sysconfdir/profile.d/webobjects.sh mkdir -p %buildroot%wo_web_resources/Frameworks/ mkdir -p %buildroot%wo_frameworks %post ln -s %wo_configdir %wo_localroot/Library/WebObjects/Configuration ln -s %wo_logdir %wo_localroot/Library/WebObjects/Logs cd %wo_woroot/Library/Frameworks/ for f in *.framework; do if [ -d $f/WebServerResources ] ; then mkdir -p %wo_web_resources/Frameworks/$f ln -fns %wo_woroot/Library/Frameworks/$f/WebServerResources/ %wo_web_resources/Frameworks/$f/ fi done cd %wo_woroot/Library/Frameworks/JavaWOExtensions.framework/Resources/Java if [ ! -e JavaWOExtensions.jar ] ; then ln -fns javawoextensions.jar JavaWOExtensions.jar fi %preun if [ "$1" = 0 ] ; then cd %wo_woroot/Library/Frameworks/ for f in *.framework; do if [ -d %wo_web_resources/Frameworks/$f ] ; then rm -rf o_web_resources/Frameworks/$f fi done fi %postun if [ "$1" = 0 ] ; then %_sbindir/groupdel %wo_group ||: %_sbindir/userdel -r %wo_user ||: fi %files %attr(0755,root,root) %_sysconfdir/profile.d/webobjects.sh %defattr(-,%wo_user,%wo_group) %wo_next_root %attr(0750,%wo_user,%wo_group) %wo_woroot/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/Resources/SpawnOfWotaskd.sh %dir %config(noreplace) %wo_configdir %dir %wo_logdir %changelog * Thu Oct 29 2015 Gennady Kushnir <baywind@altlinux.org> 5.4.3-alt5 - timezone update 2014 * Mon Dec 03 2012 Gennady Kushnir <baywind@altlinux.org> 5.4.3-alt4 - actually updated frameworks from 5.4.2 to 5.4.3 - updated timezone information - symlink JavaWOExtensions.jar * Sun Nov 21 2010 Gennady Kushnir <baywind@altlinux.org> 5.4.3-alt3 - replaced russian words in HelloWOrld.woa with english - removed unused system WO applications * Thu Oct 07 2010 Gennady Kushnir <baywind@altlinux.org> 5.4.3-alt2 - ignoring errors creating and deleting user and group in %%pre and %%postun scripts - commented out Vendor tag * Wed Sep 15 2010 Gennady Kushnir <baywind@altlinux.org> 5.4.3-alt1 - Initial release |