Hi Istvan, I managed to build and install an RPM. I had to change: # csnd.py pythonDir = '/usr/lib/python' # _csnd.so pythonDir2 = '/usr/lib/python/lib-dynload' to: # csnd.py pythonDir = '/usr/lib/python2.4' # _csnd.so pythonDir2 = '/usr/lib/python2.4/lib-dynload' Some notes: -lib_csnd.so was installed, but csnd.py was not (due to settings?) -csnd.jar was not made or installed (due to settings?) -I think most RPM's install to /usr/lib, /usr/bin, etc. and when installing, allow options to install to a different prefix (--prefix). I think the spec needs to have some kind of option to take in the prefix and default to /usr unless the user chooses otherwise -we might want to check out what they did for the Planet-CCRMA RPM of your 4.24.1in terms of how the spec file looks For RPM's, I'd like to propose: csound-xxx.rpm -base csound install csound-xxx-devel.rpm -headers required for developing using csound csound-wrappers-xxx.rpm -wrappers, depends on csound-xxx.rpm to be installed (the wrappers could be a different name if desired) csound-extra-libs.rpm -extra libraries possibly required by csound (if we want to package them separately). i.e. libfltk with threads maybe for wrappers, one could be made for each wrapper, as the detection logic would be different for each targetted wrapper (detecting where python is, etc.) and thus making the dependency only on two different things, csound-xxx.rpm and the target wrapper language (i.e. csound-python-xxx.rpm would depend on python to be installed, csound-java-xxx.rpm would depend on java being installed) -I think I would much prefer "csound" over "Csound", partially a reason of laziness when on the commandline shell navigating to those directories, also because I've gotten used to it that way from the install target I had originally put together in the SConstruct script Altogether, pretty neat! I really think this should be part of the SConstruct script, though, and I'd also like to see the build target directory idea implemented, so I have scheduled a couple hours to look into both of those this weekend, either Saturday evening or Sunday afternoon. Thanks! steven On 11/3/05, Steven Yi wrote: > Hi Istvan, > > Thanks for your reply. I will try this out later tonight and will be > able to give better feedback after giving it a go. > > Thanks! > steven > > On 11/3/05, Istvan Varga wrote: > > Steven Yi wrote: > > > > > I'm not sure what to do for __package. Besides that, everything seems > > > to have gotten built just fine. > > > > I made some changes to installer/linux/csound.spec.in so that the > > directory is now explicitly created (apparently it was created > > automatically by rpmbuild on my distribution, so I did not get > > the error). The modified file is attached; it probably still needs > > some changes, and a better, more detailed package description text > > is also needed. > > By the way, are these directories correct on your distribution ? > > I somehow expect that they do not work everywhere. > > > > # csnd.py > > pythonDir = '/usr/lib/python' > > # _csnd.so > > pythonDir2 = '/usr/lib/python/lib-dynload' > > # csoundapi~.pd_linux > > pdDir = '/usr/lib/pd/extra' > > > > > One thought, I think I'd prefer to > > > have things installed into /usr/local/lib/csound (lowercase) rather > > > than .../Csound. It seems better to me to have: > > > > > > #include > > > > > > than > > > > > > #include > > > > Well, I am fine with either option. The directories are defined at the > > top of installer/linux/mkpackage.py. The current layout is shown below. > > Does anyone suggest more changes ? > > > > # frontends > > binDir = '/usr/local/bin' > > # the actual binaries (called by above) > > binDir2 = '/usr/local/lib/Csound/bin' > > # Csound API header files > > includeDir = '/usr/local/include/Csound' > > # Csound API libraries > > libDir = '/usr/local/lib' > > # private libraries for use by Csound > > libDir2 = '/usr/local/lib/Csound/lib' > > # single precision plugin libraries > > pluginDir32 = '/usr/local/lib/Csound/plugins' > > # double precision plugin libraries > > pluginDir64 = '/usr/local/lib/Csound/plugins64' > > # XMG files > > xmgDir = '/usr/local/lib/Csound/xmg' > > # documentation > > docDir = '/usr/local/share/doc/Csound' > > # csnd.py > > pythonDir = '/usr/lib/python' > > # _csnd.so > > pythonDir2 = '/usr/lib/python/lib-dynload' > > # csoundapi~.pd_linux > > pdDir = '/usr/lib/pd/extra' > > > > > > Summary: Csound - sound synthesis language and library > > Name: csound > > Version: 5.00.0 > > Release: 1 > > URL: http://csound.sourceforge.net/ > > License: LGPL > > Group: Applications/Multimedia > > BuildRoot: @TOPDIR@/__package > > %description > > Csound is an audio synthesis language. > > %prep > > rm -Rf "@TOPDIR@/__package" > > %build > > mkdir -p -m 0755 "@TOPDIR@/__package" > > cd "@TOPDIR@/__package" > > cp -aiR "@TOPDIR@/__csound5"/* ./ > > %install > > %clean > > rm -Rf "@TOPDIR@/__package" > > %post > > /sbin/ldconfig > > %postun > > /sbin/ldconfig > > %files > > %defattr(-, root, root, 0755) > > %docdir /usr/local/share/doc/Csound > > > > > > > ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net