ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/py2-simplejson.spec
Revision: 1.3
Committed: Fri Aug 28 13:33:20 2009 UTC (15 years, 8 months ago) by diego
Branch: MAIN
CVS Tags: CRABSERVER_1_1_4_pre5_BUILD_SLC5, CRABSERVER_1_1_4_pre4_BUILD_SLC5, CRABSERVER_1_1_4_pre3_BUILD_SLC5, PRODAGENT_0_12_18_patch5, CRABSERVER_1_1_4_pre2_BUILD_SLC5, CRABSERVER_1_1_4_pre1_BUILD_SLC5_1, CRABSERVER_1_1_4_pre1_BUILD_SLC5, PRODAGENT_0_12_18_patch4, builder_2010-10-13_13-04-14_dbs-apps, builder_2010-10-13_12-53-04_dbs-web, DD_20101007_slc5_amd64_gcc434, DAS_20100922_slc5_amd64_gcc434_v2, DAS_20100922_slc5_amd64_gcc434, DAS_20100921_slc5_amd64_gcc434_v4, DAS_20100921_slc5_amd64_gcc434_v3, DAS_20100921_slc5_amd64_gcc434_v2, DAS_20100921_slc5_amd64_gcc434, DAS_20100920_slc5_amd64_gcc434, HG1009c, builder_2010-09-15_18-10-44_dbs-apps, HG1009b, builder_2010-09-15_16-49-36_dbs3, HG1009a, dg-base-rev21, dg-base-rev20, dg-base-rev19, DAS_20100907_slc5_amd64_gcc434, dg-base-rev18, sjg100827-MotT0, DD_20100824_slc5_amd64_gcc434_v1, builder_2010-08-25_01-26-27_crab-server, CRABSERVER_1_1_3_BUILD_SLC5, DAS_20100824_slc5_amd64_gcc434, DD_20100824_slc5_amd64_gcc434, sjg100819-MotT0, DAS_20100818_slc5_amd64_gcc434_v4, DAS_20100818_slc5_amd64_gcc434_v3, DAS_20100818_slc5_amd64_gcc434_v2, DAS_20100818_slc5_amd64_gcc434, DAS_20100817_slc5_amd64_gcc434, builder_2010-08-13_12-13-11_crab-server, CRABSERVER_1_1_3_pre3_BUILD_SLC5, DS_20100813, builder_2010-08-12_16-07-39_crab-server, DS_20100812, dg-base-rev17, CRABSERVER_1_1_3_pre2_BUILD_SLC5, dg20100809-crabserver, builder_2010-08-09_17-11-50_MotT0, builder_2010-08-09_16-07-08_MotT0, dg20100809-MotT0, CRABSERVER_1_1_3_pre1_BUILD_SLC5, FRONTEND_CONF_3_30_20100724, FRONTEND_CONF_3_29_20100723, dg-base-rev16, ge20100722-rpm-osx-64-bit, builder2010_07_09_1278688493-dbs-web, builder2010_07_08_1278610746-dbs3, builder2010_07_08_1278610490-prodagent, dg20100630-prodagent, dg20100628-MotT0, dg-base-rev15, ge20100621-bootstrap-rpm-4-8-macosx, CRABSERVER_1_1_2_py26_BUILD_SLC5, CRABSERVER_1_1_2_BUILD_SLC5, dg20100618-mott0, dg20100617-crabserver, dg20100617-dbs, dg20100617-dd, DD_20100615_slc5_amd64_gcc434, dg20100615-mott0, CRABSERVER_1_1_2_pre1_BUILD_SLC5, ge20100611-apt-rpm-4-8-gcc-4-5-0, MotT0_1_0_15, dg20100609-dd, MotT0_1_0_14, DD_20100609_slc5_amd64_gcc434, DAS_20100609_slc5_amd64_gcc434, dg20100608-dd, dg20100608-dbs, MotT0_1_0_13, DD_20100607_slc5_amd64_gcc434, MotT0_1_0_12, MotT0_1_0_11, MotT0_1_0_10, MotT0_1_0_9, dg-base-rev14, MotT0_1_0_8, MotT0_1_0_6, MotT0_1_0_5, MotT0_1_0_4, MotT0_1_0_3, CRABSERVER_1_1_2_beta_BUILD_SLC5, CRABSERVER_1_1_2_beta_BUILD_SLC4, DAS_20100527_slc5_amd64_gcc434, dg20100527-dbs3, dg20100526-dd, dg20100526-das, DAS_20100525_slc5_amd64_gcc434, dg20100525-das, dg-base-rev13, DD_20100525_slc5_amd64_gcc434, DAS_20100524_slc5_amd64_gcc434, ge20100521b-new-rpm, dg20100521-dbs, ge20100521-new-rpm, DBS_20100520_slc5_amd64_gcc434, ge20100519-new-apt, dg20100517-prodagent, dg20100511-dbs3, dg20100504-das, DAS_20100504_slc5_amd64_gcc434, dg20100504-dd, dg20100504-dbs, DD_20100503_slc5_amd64_gcc434, dg20100503b-prodagent, DBS_20100503_slc5_amd64_gcc434, dg20100503-prodagent, ge20100427-rpm-on-linux, dg-base-rev12, ge20100422-rpm-4-8-0, dg20100416-dbs, dg20100414-das, dg-base-rev11, dg20100413-das, dg-base-rev10, dg-base-rev9, DAS_20100407_slc5_amd64_gcc434, CRABSERVER_1_1_1_BUILD_SLC4, dg20100401-dbs, dg20100329-dbs3, CRABSERVER_1_1_1_BUILD_SLC5, DAS_20100326_slc5_amd64_gcc434, dg20100323-prodagent, dg20100322-security, dg-base-rev8, dg20100322-dbs3, DAS_20100309_slc5_amd64_gcc434, CRABSERVER_1_1_1_pre12_BUILD_SLC5, DAS_20100302_slc5_amd64_gcc434b, CRABSERVER_1_1_1_pre10_BUILD_SLC5, CRABSERVER_1_1_1_pre9_BUILD_SLC4, DAS_20100302_slc5_amd64_gcc434, dg-base-rev7, forPHEDEX-web-20100301, dg20100226-dbs, dg-base-rev6, forPHEDEX-web-20100226, DBS_20100226_slc5_amd64_gcc434, forPHEDEX-web-20100225, dg20100225-prodagent, dg20100225-dbs3, dg-base-rev5, dg-base-rev4, CRABSERVER_1_1_1_pre9_BUILD_SLC5rev3py24, dg-base-rev3, CRABSERVER_1_1_1_pre9_BUILD_SLC5, dg-base-rev2, dg-base-rev1, CRABSERVER_1_1_1_pre8_BUILD_SLC5, CRABSERVER_1_1_1_pre7_BUILD_SLC5, CRABSERVER_1_1_1_pre7_BUILD_SLC4, DBS_20100217_slc5_amd64_gcc434, FILEMOVER_20100217_slc5_amd64_gcc434, FRONTEND_CONF_3_24_20100217, DAS_20100217_slc5_amd64_gcc434, DAS_20100216b_slc5_amd64_gcc434, CRABSERVER_1_1_1_pre6_BUILD_SLC4, CRABSERVER_1_1_1_pre6_BUILD_SLC5, DAS_20100216_slc5_amd64_gcc434, T0Mon_100204_2, CRABSERVER_1_1_1_pre5_BUILD_SLC5, CRABSERVER_1_1_1_pre5_BUILD_SLC4, dg20100201-dbs3, FILEMOVER_20100201_slc5_amd64_gcc434, FILEMOVER_20100128b_slc5_amd64_gcc434, dg20100129-dbs3, dg20100128-dbs3, FILEMOVER_20100128_slc5_amd64_gcc434, DAS_20100127_slc5_amd64_gcc434, DAS_20100126_slc5_amd64_gcc434, FILEMOVER_20100122_slc5_amd64_gcc434, CRABSERVER_1_1_1_pre4_BUILD_SLC5, CRABSERVER_1_1_1_pre4_BUILD_SLC4, CRABSERVER_1_1_1_pre3_BUILD_SLC5_1, CRABSERVER_1_1_1_pre3_BUILD_SLC4, CRABSERVER_1_1_1_pre3_BUILD_SLC5, CRABSERVER_1_1_1_pre3_BUILD_OK, DAS_20100119_slc5_amd64_gcc434, CS_1_1_1_slc4_1_BUILD, CS_1_1_1_test1_SLC4_BUILD, CS_1_1_1_test1_BUILD, DAS_20100115_slc5_amd64_gcc434, dg20100115-security, CS_1_1_1_slc5_BUILD, DBS_20100115_slc5_amd64_gcc434, CS_1_1_1_slc4_BUILD, ds20100115_cs_SLC5_workOK, dg20100112-security, DBS_20100112_slc5_amd64_gcc434, DBS_20100111_slc5_amd64_gcc434, dg20100111-security, CS_SLC5_test_4, dg20100107b-wmcore, dg20100107-wmcore, DAS_20100105_slc5_amd64_gcc434, CRABSERVER_CS_SLC5_test_3_BUILD, DAS_20091221_slc5_amd64_gcc434, dg20091218c-crabserver, dg20091215c-crabserver, dg20091218b-crabserver, dg20091218-crabserver, CRABSERVER_1_1_1_pre3_BUILD, CRABSERVER_1_1_1_pre2_BUILD, dg20091215b-crabserver, DAS_20091214_slc5_amd64_gcc434, dg20091215-crabserver, dg20091211-couchdb, dg20091210-phedex, dg20091203c-comp-base, DD_20091208_slc5_amd64_gcc434, DAS_20091208_slc5_amd64_gcc434, FILEMOVER_20091208_slc5_amd64_gcc434, DBS_20091208_slc5_amd64_gcc434, dg20091203b-comp-base, dg20091203-comp-base, CRABSERVER_1_1_1_pre1_BUILD, DAS_20091202, DQMCATTEST_0_0_1, DAS_20091117, BUILDBOT_01, CERNOIDv02, DAS_20091104, CouchDB_0_10_0, DAS_20091016, CERNOIDv01, DAS_20091014, WMCORE-before-refactor, PerfSuiteDB_20090930, PerfSuiteDB_20090916, PerfSuiteDB_20090904_almost_stable, PerfSuiteDB_20090904, PerfSuiteDB_20090901, forHEARTBEATr04
Changes since 1.2: +12 -0 lines
Log Message:
Fixed dependencies for py2-simplejson. Improved web-heartbeat spec file.

File Contents

# User Rev Content
1 valya 1.1 ### RPM external py2-simplejson 1.9.2
2     %define pythonv %(echo $PYTHON_VERSION | cut -f1,2 -d.)
3     ## INITENV +PATH PYTHONPATH %i/lib/python`echo $PYTHON_VERSION | cut -f1,2 -d.`/site-packages
4    
5     Source: http://pypi.python.org/packages/source/s/simplejson/simplejson-%{realversion}.tar.gz
6     Requires: python
7     %prep
8     %setup -n simplejson-%realversion
9     #%patch0 -p1
10     %build
11     %install
12 valya 1.2 # we need simple json only for python 2.5 and earlier, but for python 2.6 and higher
13     if [ -z `echo $PYTHON_VERSION | egrep "2.6|3."` ]; then
14 valya 1.1 mkdir -p %i/lib/python`echo $PYTHON_VERSION | cut -f1,2 -d.`/site-packages
15     python setup.py build
16     pwd
17     mv build/lib*/* %i/lib/python`echo $PYTHON_VERSION | cut -f1,2 -d.`/site-packages
18 valya 1.2 fi
19 valya 1.1
20 diego 1.3 mkdir -p %{i}/etc/profile.d
21    
22     # Add dependencies
23     (echo "#!/bin/sh"; \
24     echo "source $PYTHON_ROOT/etc/profile.d/init.sh") > %{i}/etc/profile.d/dependencies-setup.sh
25     (echo "#!/bin/tcsh"; \
26     echo "source $PYTHON_ROOT/etc/profile.d/init.csh") > %{i}/etc/profile.d/dependencies-setup.csh
27    
28     %post
29     %{relocateConfig}etc/profile.d/dependencies-setup.sh
30     %{relocateConfig}etc/profile.d/dependencies-setup.csh
31