SPECS: retawq.spec, rgmanager.spec, rhide.spec, scom.spec, siag.sp...
Tomasz Wittner
twittner w o2.pl
Wto, 13 Gru 2005, 01:34:25 CET
On Tue 13. of December 2005 00:16, czucz wrote:
> Author: czucz Date: Mon Dec 12 23:16:13 2005 GMT
> Module: SPECS Tag: HEAD
> ---- Log message:
> - %{_includedir} macro used
1. Kiedyś była dyskusja na temat używania makr vs. bezwzględnych ścieżek w
specach. I z tego co pamiętam, konkluzja była następująca:
wartości niektórych makr mogą być zmieniane w specu na potrzeby pakietu -
np:
%define _sysconfig /etc/%{name}
Dlatego też ścieżki odnoszące się do "zewnętrznych" pakietów podajemy w formie
bezwględnej - swojego czasu
cp -f %{_datadir}/automake/config.sub .
zostało zmienione na
cp -f /usr/share/automake/config.sub .
Jako że mają one stałą lokalizację.
2. Dodatkowo: %{_includedir} $includedir definiowane:
rpm: %_includedir %{_prefix}/include
autoconf: $prefix/$includedir
Soft budowany "z palca" mam prefix /usr/local
Nagłówki ncurses zawsze są w /usr/include/ncurses jako podstawowy składnik
systemu i ścieżka do takich nagłówków systemowych jest wyznaczana przez
rpm: %_oldincludedir /usr/include
autoconf: $oldincluderid /usr/include ($prefix nie jest brany pod uwagę)
3. Przed dokonaniem masowych zmian warto się chyba chwilę zastanowić, "że
skoro wszędzie jest jak jest, to widocznie tak ma być, bo jest dobrze", a
"swoim zastonowieniem" podzielić tutaj na liście, żeby rozwiać wątpliwości.
Wiem, że zamiana /usr/include na %{_includedir} akurat może nic tu nie
popsuje, ale nie jest dla mnie jasna ani jej celowość ani jej
"poprawność" (pkt. 1., 2.)
>
> ---- Files affected:
> SPECS:
> retawq.spec (1.9 -> 1.10) , rgmanager.spec (1.2 -> 1.3) , rhide.spec
> (1.8 -> 1.9) , scom.spec (1.21 -> 1.22) , siag.spec (1.55 -> 1.56)
>
> ---- Diffs:
>
> ================================================================
> Index: SPECS/retawq.spec
> diff -u SPECS/retawq.spec:1.9 SPECS/retawq.spec:1.10
> --- SPECS/retawq.spec:1.9 Wed Jun 8 16:40:34 2005
> +++ SPECS/retawq.spec Tue Dec 13 00:16:07 2005
> @@ -40,7 +40,7 @@
> %build
> ./configure \
> CC="%{__cc}" \
> - CFLAGS="%{rpmcflags} %{rpmldflags} -I/usr/include/ncurses" \
> + CFLAGS="%{rpmcflags} %{rpmldflags} -I%{_includedir}/ncurses" \
> --path-prefix=$RPM_BUILD_ROOT%{_prefix} \
> --path-man=$RPM_BUILD_ROOT%{_mandir} \
> --enable-textmodemouse \
> @@ -73,6 +73,9 @@
> All persons listed below can be reached at <cvs_login>@pld-linux.org
>
> $Log$
> +Revision 1.10 2005/12/12 23:16:07 czucz
> +- %{_includedir} macro used
> +
> Revision 1.9 2005/06/08 14:40:34 zbyniu
> - BR: pkgconfig
>
>
> ================================================================
> Index: SPECS/rgmanager.spec
> diff -u SPECS/rgmanager.spec:1.2 SPECS/rgmanager.spec:1.3
> --- SPECS/rgmanager.spec:1.2 Sun Nov 6 00:57:36 2005
> +++ SPECS/rgmanager.spec Tue Dec 13 00:16:07 2005
> @@ -39,7 +39,7 @@
> %setup -q -n cluster-%{version}
> cd %{name}
> %{__perl} -pi -e 's/-g /%{rpmcflags} /' src/{clulib,daemons}/Makefile
> -%{__perl} -pi -e 's,-g ,%{rpmcflags} -I/usr/include/ncurses ,'
> src/utils/Makefile +%{__perl} -pi -e 's,-g ,%{rpmcflags}
> -I%{_includedir}/ncurses ,' src/utils/Makefile
>
> %build
> cd %{name}
> @@ -71,6 +71,9 @@
> All persons listed below can be reached at <cvs_login>@pld-linux.org
>
> $Log$
> +Revision 1.3 2005/12/12 23:16:07 czucz
> +- %{_includedir} macro used
> +
> Revision 1.2 2005/11/05 23:57:36 arekm
> - up to 1.01.00
>
>
> ================================================================
> Index: SPECS/rhide.spec
> diff -u SPECS/rhide.spec:1.8 SPECS/rhide.spec:1.9
> --- SPECS/rhide.spec:1.8 Thu Jul 28 00:13:17 2005
> +++ SPECS/rhide.spec Tue Dec 13 00:16:07 2005
> @@ -64,7 +64,7 @@
> setedit/internac/gnumake.in
>
> %build
> -CFLAGS="%{rpmcflags} -I/usr/include/ncurses"
> +CFLAGS="%{rpmcflags} -I%{_includedir}/ncurses"
> export CFLAGS
> cd tvision
> ./configure \
> @@ -165,6 +165,9 @@
> All persons listed below can be reached at <cvs_login>@pld-linux.org
>
> $Log$
> +Revision 1.9 2005/12/12 23:16:07 czucz
> +- %{_includedir} macro used
> +
> Revision 1.8 2005/07/27 22:13:17 qboosh
> - more desc cosmetics
>
>
> ================================================================
> Index: SPECS/scom.spec
> diff -u SPECS/scom.spec:1.21 SPECS/scom.spec:1.22
> --- SPECS/scom.spec:1.21 Wed May 28 15:01:46 2003
> +++ SPECS/scom.spec Tue Dec 13 00:16:07 2005
> @@ -40,9 +40,9 @@
> %{__aclocal}
> %{__autoconf}
> %{__automake}
> -CFLAGS="%{rpmcflags} -I/usr/include/ncurses"
> +CFLAGS="%{rpmcflags} -I%{_includedir}/ncurses"
> CXXFLAGS="%{rpmcflags} \
> - -I/usr/include/ncurses -fno-rtti -fno-exceptions -fno-implicit-templates"
> + -I%{_includedir}/ncurses -fno-rtti -fno-exceptions
> -fno-implicit-templates" %configure
>
> %{__make}
> @@ -70,6 +70,9 @@
> All persons listed below can be reached at <cvs_login>@pld-linux.org
>
> $Log$
> +Revision 1.22 2005/12/12 23:16:07 czucz
> +- %{_includedir} macro used
> +
> Revision 1.21 2003/05/28 13:01:46 malekith
> - massive attack: source-md5
>
>
> ================================================================
> Index: SPECS/siag.spec
> diff -u SPECS/siag.spec:1.55 SPECS/siag.spec:1.56
> --- SPECS/siag.spec:1.55 Fri Aug 20 21:07:04 2004
> +++ SPECS/siag.spec Tue Dec 13 00:16:07 2005
> @@ -217,10 +217,10 @@
> %setup -q
>
> %build
> -CFLAGS="%{rpmcflags} -I/usr/include/ncurses"
> +CFLAGS="%{rpmcflags} -I%{_includedir}/ncurses"
> %configure2_13
> %{__make} \
> - CFLAGS="%{rpmcflags} -I/usr/include/ncurses"
> + CFLAGS="%{rpmcflags} -I%{_includedir}/ncurses"
>
> %install
> rm -rf $RPM_BUILD_ROOT
> @@ -484,6 +484,9 @@
> All persons listed below can be reached at <cvs_login>@pld-linux.org
>
> $Log$
> +Revision 1.56 2005/12/12 23:16:07 czucz
> +- %{_includedir} macro used
> +
> Revision 1.55 2004/08/20 19:07:04 qboosh
> - missing dirs, strict internal deps, Obsoletes: XawM
>
> ================================================================
>
> ---- CVS-web:
> http://cvs.pld-linux.org/SPECS/retawq.spec?r1=1.9&r2=1.10&f=u
> http://cvs.pld-linux.org/SPECS/rgmanager.spec?r1=1.2&r2=1.3&f=u
> http://cvs.pld-linux.org/SPECS/rhide.spec?r1=1.8&r2=1.9&f=u
> http://cvs.pld-linux.org/SPECS/scom.spec?r1=1.21&r2=1.22&f=u
> http://cvs.pld-linux.org/SPECS/siag.spec?r1=1.55&r2=1.56&f=u
>
> _______________________________________________
> pld-cvs-commit mailing list
> pld-cvs-commit w lists.pld-linux.org
> http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
--
Tomasz Wittner
Więcej informacji o liście dyskusyjnej pld-devel-pl