De : Florian Hubold <doktor5000@arcor.de>
À : mageia-dev@mageia.org
Envoyé le : Dimanche 23 Octobre 2011 12h55
Objet : Re: [Mageia-dev] E17 packaging
Am 22.10.2011 14:29, schrieb Balcaen John:
> Le samedi 22 octobre 2011 14:10:53 Florian Hubold a écrit :
> [...]
>> Well, there are "stable" snapshots from time to time, but they are
>> not done regularly. I'd say if we can make local builds of a newer SVN
>> snapshot of the whole E17 before Mageia 2 alpha (i.e. in the next ~20 days)
>> then we should at least try it.
>>
>> BTW: I'd remove the Source URL when only using
snapshots or
>> change the SPEC in a way that make using SVN snapshots possible
>> by only changing a macro.
> That's was also suggested on irc :)
>
> Regards,
>
So here's my try, feel free to comment:
(Please don't care about the date format for now :) )
$ svn diff
Index: eina.spec
===================================================================
--- eina.spec (Revision 157462)
+++ eina.spec (Arbeitskopie)
@@ -1,3 +1,13 @@
+%define svndate 23102011
+
+%define svn r64322
+%if %svn
+%define rel 0.%{svn}svn.1
+%else
+%define rel 1
+%endif
+
+
%define major 1
%define libname %mklibname %{name} %major
%define libnamedev %mklibname %{name} -d
@@ -4,11
+14,18 @@
Summary: Data Type Library
Name: eina
-Version: 1.0.1
-Release: %mkrel 2
+Version: 1.0.999
+Release: %mkrel %rel
License: LGPLv2+
Group: Graphical desktop/Enlightenment
+# export latest svn checkout
+# svn export
http://svn.enlightenment.org/svn/e/trunk/%{name}
%{name}-svn-$(date +%d%m%Y)
+%if %svn
+Source: %{name}-svn-%svndate.tar.bz2
+%else
Source:
http://download.enlightenment.org/releases/%{name}-%{version}.tar.bz2
+%endif
+
URL:
http://www.enlightenment.org/
%description
@@ -32,9 +49,17 @@
%{name} development headers and libraries.
%prep
+%if %svn
+%setup -qn %{name}-svn-%svndate
+%else
%setup -qn %{name}-%{version}
+%endif
+
%build
+%if %svn
+./autogen.sh
+%endif
%configure2_5x
%make