How should I modify other parts of the .SPEC? Keep them the same?
%define realversion 1.7.4
%define version 20130120
Name: eina
Version: 1.7.4
Release: %mkrel 1
Summary: Eina is a library providing data structure utilities for EFL
License: LGPL 2.1
Group: System Environment/Libraries
Source: %{name}-%{version}.tar.xz
URL: http://enlightenment.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
BuildRequires: doxygen
Type for Version: 1.7.4
Version: %{version}
And by Source: %{name}-%{version}.tar.xz
Source: %{name}-%{realversion}.tar.xz
The same by
%prep section
%setup -q -n %{name}-%{realversion}
Hi,
i gave e17 a shot some time ago. you always have to take the release date as version because of all previous packages.
the version 1.7.4 will never be installed over e.g. 20100901 because 20100901 is really bigger than 1.7.4. so your version have to be 20130120.
try the following
%define realversion 1.7.4
%define version 20130120
Name: eina
Version: %{version}
Release: %mkrel 1
Summary: Eina is a library providing data structure utilities for EFL
License: LGPL 2.1
Group: System Environment/Libraries
Source: %{name}-%{version}.tar.xz
URL: http://enlightenment.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
BuildRequires: doxygen
%prep and %setup like daniel described.
btw. i wouldn't take the date you downloaded the tarball if you take the tarball version. use the release date of the tarball.
the other option is to check out the source code from the e17 git or subversion repo, i can't remember what it was.
than you have to create your own tarball which gets the date of the day you checked it out as version number.
Will adding Obsoletes: eina <= 20110530 to the spec work?
this wouldn't work because your version (1.7.4) won't be recognized as an update.