After discussing with raster, this is what he requested for the spec

files:  using the SVN revision instead of the datestamp.  Other
methods can still be used, however, by adding (e.g.):

--define "_rel 0.`date +%Y%m%d`"

to the rpmbuild command line.

Other spec files will need similar changes.  This is just the first
few.



SVN revision: 48099
This commit is contained in:
Michael Jennings 2010-04-18 07:03:09 +00:00
parent 004df4045f
commit c3f93a9ebd
3 changed files with 11 additions and 8 deletions

View File

@ -1,12 +1,13 @@
%{!?_rel:%{expand:%%global _rel 0.r%(svnversion | sed 's/[^0-9].*$//' || echo 0000)}}
%define _missing_doc_files_terminate_build 0
Summary: Library for speedy data storage, retrieval, and compression.
Name: @PACKAGE@
Version: @VERSION@
Release: 0.%(date '+%Y%m%d')
Release: %{_rel}
License: BSD
Group: System Environment/Libraries
Source: %{name}-%{version}.tar.gz
Source: http://download.enlightenment.org/releases/%{name}-%{version}.tar.gz
Packager: %{?_packager:%{_packager}}%{!?_packager:Michael Jennings <mej@eterm.org>}
Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:The Enlightenment Project (http://www.enlightenment.org/)}
Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}

View File

@ -1,12 +1,13 @@
%{!?_rel:%{expand:%%global _rel 0.r%(svnversion | sed 's/[^0-9].*$//' || echo 0000)}}
%define _missing_doc_files_terminate_build 0
Summary: Data Type Library
Name: @PACKAGE@
Version: @VERSION@
Release: 0.%(date '+%Y%m%d')
License: BSD
Release: %{_rel}
License: LGPLv2.1
Group: System Environment/Libraries
Source: %{name}-%{version}.tar.gz
Source: http://download.enlightenment.org/releases/%{name}-%{version}.tar.gz
Packager: %{?_packager:%{_packager}}%{!?_packager:Michael Jennings <mej@eterm.org>}
Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:The Enlightenment Project (http://www.enlightenment.org/)}
Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
@ -47,7 +48,6 @@ test "x$RPM_BUILD_ROOT" != "x/" && rm -rf $RPM_BUILD_ROOT
%defattr(-, root, root)
%doc AUTHORS COPYING README
%{_libdir}/*.so.*
#%{_libdir}/%{name}*
%files devel
%defattr(-, root, root)

View File

@ -77,14 +77,16 @@
%define ac_with_module_engine_software_xcb --%{?with_module_engine_software_xcb:en}%{!?with_module_engine_software_xcb:dis}able-software-xcb
%define ac_with_module_engine_xrender_xcb --%{?with_module_engine_xrender_xcb:en}%{!?with_module_engine_xrender_xcb:dis}able-xrender-xcb
%{!?_rel:%{expand:%%global _rel 0.r%(svnversion | sed 's/[^0-9].*$//' || echo 0000)}}
Summary: Multi-platform Canvas Library
Name: @PACKAGE@
Version: @VERSION@
Release: 0.%(date '+%Y%m%d')
Release: %{_rel}
License: BSD
Group: System Environment/Libraries
URL: http://www.enlightenment.org/
Source: %{name}-%{version}.tar.gz
Source: http://download.enlightenment.org/releases/%{name}-%{version}.tar.gz
Packager: %{?_packager:%{_packager}}%{!?_packager:Michael Jennings <mej@eterm.org>}
Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:The Enlightenment Project (http://www.enlightenment.org/)}
Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}