[Csync2] Building an RPM from the included spec file

Michael Mansour mic at npgx.com.au
Tue Dec 27 23:54:00 CET 2005


Hi Clifford,

> On Tue, Dec 27, 2005 at 06:55:38PM +1000, Michael Mansour wrote:
> > Doesn't seem to look right, as there's no "configure" script etc. Anyway, I
> > then tried to build the RPM:
> 
> execute autogen.sh
> almost no package has the generated autoconf script in the SCM.

Ok. Please pardon my ignorance with this Clifford, I'm new to it and trying to
learn.

I ran this, and the following is now presented:

# ll
total 512
-rw-r--r--  1 root root  33051 Dec 28 09:41 aclocal.m4
-rw-r--r--  1 root root   4003 Dec 27 19:51 action.c
-rw-r--r--  1 root root     37 Dec 27 19:51 AUTHORS
-rwxr-xr-x  1 root root   1319 Dec 27 19:51 autogen.sh
drwxr-xr-x  2 root root   4096 Dec 28 09:41 autom4te.cache
-rw-r--r--  1 root root  10820 Dec 27 19:51 cfgfile_parser.y
-rw-r--r--  1 root root   2850 Dec 27 19:51 cfgfile_scanner.l
-rw-r--r--  1 root root    110 Dec 27 19:51 ChangeLog
-rw-r--r--  1 root root   7752 Dec 27 19:51 check.c
-rw-r--r--  1 root root   2954 Dec 27 19:51 checktxt.c
-rw-r--r--  1 root root    916 Dec 28 09:41 config.h.in
-rwxr-xr-x  1 root root 148718 Dec 28 09:42 configure
-rw-r--r--  1 root root   2204 Dec 27 19:51 configure.ac
-rw-r--r--  1 root root   7820 Dec 27 19:51 conn.c
-rw-r--r--  1 root root  17992 Dec 27 19:51 COPYING
-rw-r--r--  1 root root   3705 Dec 27 19:51 csync2.1
-rw-r--r--  1 root root  19642 Dec 27 19:51 csync2.c
-rw-r--r--  1 root root    729 Dec 27 19:51 csync2.cfg
-rw-r--r--  1 root root   8471 Dec 27 19:51 csync2.h
-rw-r--r--  1 root root   1300 Dec 27 19:51 csync2_locheck.sh
-rw-r--r--  1 root root   3254 Dec 28 09:49 csync2.spec
-rw-r--r--  1 root root    265 Dec 27 19:51 csync2.xinetd
drwxr-xr-x  3 root root   4096 Dec 27 19:51 cygwin
-rw-r--r--  1 root root  13867 Dec 27 19:51 daemon.c
-rw-r--r--  1 root root   6739 Dec 27 19:51 db.c
drwxr-xr-x  3 root root   4096 Dec 27 19:51 debian
-rwxr-xr-x  1 root root  13866 Dec 28 09:42 depcomp
-rw-r--r--  1 root root   3354 Dec 27 19:51 error.c
-rw-r--r--  1 root root   3653 Dec 27 19:51 getrealfn.c
-rw-r--r--  1 root root   5446 Dec 27 19:51 groups.c
-rw-r--r--  1 root root     96 Dec 27 19:51 INSTALL
-rwxr-xr-x  1 root root   7122 Dec 28 09:41 install-sh
-rw-r--r--  1 root root   3454 Dec 27 19:51 Makefile.am
-rw-r--r--  1 root root  24713 Dec 28 09:42 Makefile.in
-rwxr-xr-x  1 root root  10266 Dec 28 09:41 missing
-rwxr-xr-x  1 root root   1988 Dec 28 09:41 mkinstalldirs
-rw-r--r--  1 root root     86 Dec 27 19:51 NEWS
-rw-r--r--  1 root root   1760 Dec 27 19:51 prefixsubst.c
-rw-r--r--  1 root root   1974 Dec 27 19:51 README
-rwxr-xr-x  1 root root   2148 Dec 27 19:51 release.sh
-rw-r--r--  1 root root  10206 Dec 27 19:51 rsync.c
-rw-r--r--  1 root root     50 Dec 27 19:51 TODO
-rw-r--r--  1 root root  26035 Dec 27 19:51 update.c
-rw-r--r--  1 root root   2554 Dec 27 19:51 urlencode.c

I see the configure script there now which is good news.

> > # rpmbuild -ba csync2.spec
> > error: File /usr/src/redhat/SOURCES/csync2-SNAPSHOT.tar.gz: No such file or
> > directory
> > 
> > Hmmm.. where abouts is this snapshot file?
> 
> It does not exist. The string "SNAPSHOT" is a placeholder which is
> automatically substituted for csync2 release tags.

I don't understand what to do from here then. If SNAPSHOT is a placeholder,
how do I build an RPM based on this spec file?

Even after the above "autogen.sh" script, I still get:

# rpmbuild -ba csync2.spec
error: File /usr/src/redhat/SOURCES/csync2-SNAPSHOT.tar.gz: No such file or
directory

when trying to build the RPM.

Am I supposed to tar.gz the files above and stick them into
/usr/src/redhat/SOURCES ?

Thanks.

Michael.

> yours,
>  - clifford
> 
> -- 
> bash -c "gcc -o mysdldemo -Wall -O2 -lSDL -lm -pthread -x c <( echo -
> e '
> #include <SDL/SDL.h>\n#include <complex.h>\nint main(){SDL_Surface*s;SDL_Event
> e;int x,y,n;SDL_Init(SDL_INIT_VIDEO);s=SDL_SetVideoMode(640,480,32,0)
> ;for(x=0; x<640;x++)for(y=0;y<480;y++){float _Complex z=0, c=((x-400)
> /200.0) + ((y-240)/ 200.0)*1.0fi;for(n=1;n<64;n++)
> {z=z*z+c;if(cabsf(z)>2){((Uint32*)s->pixels)[x+y 
> *640]=n<<3;n=99;}}}SDL_UpdateRect(s,0,0,s->w,s->h);do 
> SDL_WaitEvent(&e); while
> (e.type!=SDL_QUIT&&e.type!=SDL_KEYDOWN);SDL_Quit();return 0;}' ); ./mysdldemo"
> 
> System Error: press F13 to continue...
------- End of Original Message -------



More information about the Csync2 mailing list