Skip to Content.
Sympa Menu

freetds - Re: [freetds] Building RPM

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Ciro Iriarte" <cyruspy AT gmail.com>
  • To: freetds AT lists.ibiblio.org
  • Subject: Re: [freetds] Building RPM
  • Date: Sun, 6 Aug 2006 10:41:47 -0400

Thanks for your reply, i'm getting the same result with your spec, the
undesired /usr/share/doc/freetds-0.64 directory is still there...

Ciro

"Frediano Ziglio" <freddyz77 AT tin.it> escribió en el mensaje
news:1154861338.5394.6.camel@localhost...
> Il giorno dom, 06/08/2006 alle 04.03 -0400, Ciro Iriarte ha scritto:
>> Hi, i'm currently trying to build an rpm for SuSE (SLES9) using the
>> supplied
>> spec file, i have the same problem with v0.64 and v0.65.20060805
>>
>> Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.70453
>> + umask 022
>> + cd /usr/src/packages/BUILD
>> + cd freetds-0.64
>> + DOCDIR=/var/tmp/freetds-buildroot/usr/share/doc/packages/freetds-doc
>> + export DOCDIR
>> + rm -rf /var/tmp/freetds-buildroot/usr/share/doc/packages/freetds-doc
>> + /bin/mkdir -p
>> /var/tmp/freetds-buildroot/usr/share/doc/packages/freetds-doc
>> + cp -pr doc/doc/freetds-0.64/userguide doc/images
>> doc/doc/freetds-0.64/reference
>> /var/tmp/freetds-buildroot/usr/share/doc/packages/freetds-doc
>> + exit 0
>> Finding Provides: /usr/lib/rpm/find-provides
>> Finding Requires: /usr/lib/rpm/find-requires
>> Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1
>> rpmlib(CompressedFileNames) <= 3.0.4-1
>> Checking for unpackaged file(s): /usr/lib/rpm/check-files
>> /var/tmp/freetds-buildroot
>> error: Installed (but unpackaged) file(s) found:
>> /usr/share/doc/freetds-0.64/images/important.gif
>> /usr/share/doc/freetds-0.64/images/note.gif
>> /usr/share/doc/freetds-0.64/images/tip.gif
>> /usr/share/doc/freetds-0.64/reference/a00069.html
>> /usr/share/doc/freetds-0.64/reference/a00080.html
>> /usr/share/doc/freetds-0.64/reference/a00086.html
>> /usr/share/doc/freetds-0.64/reference/a00087.html
>> /usr/share/doc/freetds-0.64/reference/a00088.html
>> /usr/share/doc/freetds-0.64/reference/a00090.html
>> /usr/share/doc/freetds-0.64/reference/a00092.html
>> /usr/share/doc/freetds-0.64/reference/a00121.html
>> .....
>> ....
>> ....
>>
>> And i end with dupplicated docs, anybody could build an rpm?
>>
>> linux:/var/tmp/freetds-buildroot/usr/share/doc #.
>> |-- freetds-0.64 <-- shouldn't exist
>> | |-- images
>> | |-- reference
>> | `-- userguide
>> `-- packages
>> |-- freetds
>> | |-- AUTHORS
>> | |-- BUGS
>> | |-- COPYING
>> | |-- COPYING.LIB
>> | |-- ChangeLog
>> | |-- INSTALL
>> | |-- NEWS
>> | |-- README
>> | `-- TODO
>> `-- freetds-doc
>> |-- images
>> |-- reference
>> `-- userguide
>>
>> I need to build rpm files instead of using manual compiles because i need
>> to
>> install it in many systems (easy restore too)
>>
>> Thanks in advanced.
>> Ciro Iriarte
>>
>
> Try with this patch, you should compile with
>
> rpmbuild -ba freetds.spec
>
> and you should put freetds-0.64.tar.gz in your source rpm
> (/usr/src/redhat/SOURCES/ by default on redhat I don't know for suse but
> it should be in rpm-build package even for suse).
>
> It just change _docdir in freetds.spec to _datadir. A different way to
> make the change is:
>
> - unpackage freetds-0.64.tar.gz
> $ tar zxvf freetds-0.64.tar.gz
> - edit freetds.spec.in and replace _docdir with _datadir
> $ cd freetds-0.64
> $ perl -pi.orig -e 's/_docdir/_datadir/' freetds.spec.in
> - package again freetds-0.64.tar.gz
> $ cd ..
> $ rm freetds-0.64.tar.gz
> $ tar zcvf freetds-0.64.tar.gz freetds-0.64
> - rebuild
> $ rpmbuild -ta freetds-0.64.tar.gz
>
> freddy77
>
>


--------------------------------------------------------------------------------


> _______________________________________________
> FreeTDS mailing list
> FreeTDS AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/freetds
>







Archive powered by MHonArc 2.6.24.

Top of Page