hello,
I'm building packages and I want to use disttag as referred at this page.
https://fedoraproject.org/wiki/Packaging:DistTag
as a result the package is named as is
packagename-1.0.0-1.noarch.rpm instead of packagename-1.0.0-1el5.noarch.rpm
here the head of my specfile.
Name: packagename Version: 1.0.0 Release: 1%{?dist} Summary: some text
Group: application License: Propriatory URL: http://somewhere.domain.com Source0: %{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch Conflicts: libgcj
%description more text in these area
%package binary Summary: packagename binary and library Group: System
%if 0%{?rhel} >= 4 || 0%{?rhel} Requires: jre else Requires: java-1.6.0-openjdk Obsoletes: jre %endif Obsoletes: packagename-stack ...... ...... ...... ......
What I do wrong? Thanks for your help
"MP" == Martial Paupe martial.paupe@metservice.com writes:
MP> hello, I'm building packages and I want to use disttag as referred MP> at this page.
Note that page describes what works in the Fedora buildsystem. The %dist macro isn't going to be defined by default on most systems, although if you install the redhat-rpm-config package you should have it. Generally, for Fedora packaging you should probably just install the fedora-packager package which will pull in the above macros and various other useful things.
- J<
On Monday 23 November 2009 16:21:53 Jason L Tibbitts III wrote:
"MP" == Martial Paupe martial.paupe@metservice.com writes:
MP> hello, I'm building packages and I want to use disttag as referred MP> at this page.
Note that page describes what works in the Fedora buildsystem. The %dist macro isn't going to be defined by default on most systems, although if you install the redhat-rpm-config package you should have it.
Have got that package (redhat-rpm-config-8.0.45-29.el5) but it's not working. How I can enable that on rhel5.
Generally, for Fedora packaging you should probably just install the fedora-packager package which will pull in the above macros and various other useful things.
TA
babatoko
- J<
-- Fedora-packaging mailing list Fedora-packaging@redhat.com https://www.redhat.com/mailman/listinfo/fedora-packaging
On Sun, Nov 22, 2009 at 11:05 PM, Martial Paupe wrote:
On Monday 23 November 2009 16:21:53 Jason L Tibbitts III wrote:
> "MP" == Martial Paupe writes:
MP> hello, I'm building packages and I want to use disttag as referred MP> at this page.
Note that page describes what works in the Fedora buildsystem. The %dist macro isn't going to be defined by default on most systems, although if you install the redhat-rpm-config package you should have it.
Have got that package (redhat-rpm-config-8.0.45-29.el5) but it's not working. How I can enable that on rhel5.
Generally, for Fedora packaging you should probably just install the fedora-packager package which will pull in the above macros and various other useful things.
The %dist macro is defined in /etc/rpm/macros.dist which (in Fedora) belongs to the fedora-release package. I don't know if you should install that package on rhel5. But you can define the %dist macro, or any macro in your ~/.rpmmacros file. just add this line: %dist el5 or something like that.
Orcan
On Sun, 22 Nov 2009 23:22:30 -0500 Orcan Ogetbil oget.fedora@gmail.com wrote:
On Sun, Nov 22, 2009 at 11:05 PM, Martial Paupe wrote:
On Monday 23 November 2009 16:21:53 Jason L Tibbitts III wrote:
>> "MP" == Martial Paupe writes:
MP> hello, I'm building packages and I want to use disttag as MP> referred at this page.
Note that page describes what works in the Fedora buildsystem. The %dist macro isn't going to be defined by default on most systems, although if you install the redhat-rpm-config package you should have it.
Have got that package (redhat-rpm-config-8.0.45-29.el5) but it's not working. How I can enable that on rhel5.
Generally, for Fedora packaging you should probably just install the fedora-packager package which will pull in the above macros and various other useful things.
The %dist macro is defined in /etc/rpm/macros.dist which (in Fedora) belongs to the fedora-release package. I don't know if you should install that package on rhel5. But you can define the %dist macro, or any macro in your ~/.rpmmacros file. just add this line: %dist el5 or something like that.
That would be:
%dist .el5
(the leading dot is needed)
This macro is not defined in any existing EL-5 package, only in the Fedora buildsystem, so unless you're building your packages using mock, you'll need this local macro definition.
Paul.
Paul Howarth wrote:
That would be:
%dist .el5
(the leading dot is needed)
This macro is not defined in any existing EL-5 package, only in the Fedora buildsystem, so unless you're building your packages using mock, you'll need this local macro definition.
Installing buildsys-macros from
http://buildsys.fedoraproject.org/buildgroups/rhel5/i386/
is another alternative. That also provides %rhel and %el5 (well, %el$VERSION).
This macro is not defined in any existing EL-5 package, only in the Fedora buildsystem, so unless you're building your packages using mock, you'll need this local macro definition.
Ok I see. Thanks for the help
babatoko
Paul.
-- Fedora-packaging mailing list Fedora-packaging@redhat.com https://www.redhat.com/mailman/listinfo/fedora-packaging
packaging@lists.fedoraproject.org