[Mageia-dev] [packages-commits] [189967] - version upgrade

Jani Välimaa jani.valimaa at gmail.com
Tue Jan 3 17:18:12 CET 2012


2012/1/3  <root at mageia.org>:
> Revision 189967 Author matteo Date 2012-01-03 16:46:56 +0100 (Tue, 03 Jan
> 2012)
>
> Log Message
>
> - version upgrade
> - used macros instead of command names
>
> Modified Paths
>
> cauldron/x86info/current/SPECS/x86info.spec
>
> Modified: cauldron/x86info/current/SPECS/x86info.spec
> ===================================================================
> --- cauldron/x86info/current/SPECS/x86info.spec	2012-01-03 15:45:07 UTC (rev
> 189966)
> +++ cauldron/x86info/current/SPECS/x86info.spec	2012-01-03 15:46:56 UTC (rev
> 189967)
> @@ -1,5 +1,5 @@
>  %define	name	x86info
> -%define	version	1.29
> +%define	version	1.30
>  %define realver	%{version}
>  #define cvsdate	20050420
>
> @@ -11,7 +11,7 @@
>  Group:		System/Kernel and hardware
>  BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
>  URL:		http://www.codemonkey.org.uk/projects/x86info/
> -Source0:	%{name}-%{realver}%{?cvsdate:-%{cvsdate}}.tar.bz2
> +Source0:	%{name}-%{realver}%{?cvsdate:-%{cvsdate}}.tgz
>  Patch0:		x86info-1.17-intel-flags.patch
>  Patch1:		x86info-1.17-intel-caches.patch
>  Patch2:		x86info-1.17-cpuid-with-ecx-input.patch
> @@ -33,17 +33,18 @@
>  %setup -q -n %{name}-%{realver}
>
>  %build
> -make CFLAGS="%{optflags}"
> +#make CFLAGS="%{optflags}"
> +%make
>
>  %install
> -rm -rf %{buildroot}
> -install -d %{buildroot}%{_bindir}
> -install -d %{buildroot}%{_mandir}/man1
> -install -m755 %{name} %{buildroot}%{_bindir}/
> -install -m755 %{name}.1 %{buildroot}%{_mandir}/man1/
> +%__rm -rf %{buildroot}
> +%__install -d %{buildroot}%{_bindir}
> +%__install -d %{buildroot}%{_mandir}/man1
> +%__install -m755 %{name} %{buildroot}%{_bindir}/
> +%__install -m755 %{name}.1 %{buildroot}%{_mandir}/man1/
>

I think this is pretty much opposite what everyone else is doing. IMHO
this also makes .spec harder to read.


More information about the Mageia-dev mailing list