Группа :: Разработка/Прочее
Пакет: rpm-build-altlinux-compat
Главная Изменения Спек Патчи Загрузить Bugs and FR
# This spec for backport to M24 is autogenerated. Do not edit it.
# NOTE: do not use clean_spec or rpmcs for this spec
#TODO: - improve for Mandriva's /etc/rpm/macros.d
Name: rpm-build-altlinux-compat
Version: 0.8
Release: alt0.M24.4
Summary: ALT Linux compatibility and extensions in rpm build
License: GPL
Group: Development/Other
Url: http://wiki.sisyphus.ru/devel/RpmBuildAltlinuxCompat
Packager: Vitaly Lipatov <lav at altlinux.ru>
Source: http://etersoft.ru/download/%name/%name-%version.tar.bz2
BuildArchitectures: noarch
%if %_vendor == "alt"
#|| %_vendor == "Mandriva"
%define _rpmmacrosdir %_sysconfdir/rpm/macros.d
%else
%define _rpmmacrosdir /etc/rpm
# ALT has it in RPM
BuildRoot: %{_tmppath}/%{name}-%{version}
%endif
%if %_vendor != "suse"
Requires: rpm-build
%endif
# TODO: add version for other distros
# FIXME: do not work :(
#%if_with build_M30
#Requires: rpm-build >= 4.0.4-alt47
#%endif
%description
This package contains ALT Linux compatibility layer
and some extensions for rpm build
on various rpm-based platforms.
%package -n rpm-build-compat
Summary: ALT Linux compatibility and extensions in rpm build
Group: Development/Other
Requires: %_rpmmacrosdir
%description -n rpm-build-compat
This package contains ALT Linux compatibility layer
and some extensions for rpm build
on ALT Linux systems.
It is useful for backporting packages to previous ALT Linux distros.
Add it to buildrequires when backporting packages.
Command rpmbph from etersoft-build-utils adds it automatically.
# This build prepared for ALT backport_distro
%prep
%setup -q
find -type d -name CVS | xargs rm -rf
%install
#%if %{_vendor} == "RPM"
#rm -rf $RPM_BUILD_ROOT
#%endif
# ALT: /etc/rpm/macros.d
# Scientific: /etc/rpm/macros.name (who else?)
# suse asplinux RPM: macros
DESTFILE=macros
# WARNING: we will override any /etc/rpm/macroses
# I do not know what the platfrom needs it.
#%if %{_vendor} == "redhat"
#DESTFILE=macros.%name
#%endif
%if %_vendor =="alt"
DESTFILE=compat
cat rpm/macros.{altlinux,intro} >rpm/macros.out
%else
cat rpm/macros{,.altlinux,.intro} >rpm/macros.out
mkdir -p %buildroot%_bindir
install -m755 bin/* %buildroot%_bindir
%endif
install -D -m644 rpm/macros.out %buildroot/%_rpmmacrosdir/$DESTFILE
# Note: rpm does not like doc macros in other sections?
%if %_vendor == "alt"
%files -n rpm-build-compat
%doc AUTHORS TODO NEWS
%_rpmmacrosdir/*
%else
%files
%doc AUTHORS TODO NEWS
%_rpmmacrosdir/*
%_bindir/*
%endif
%changelog
…
Полный changelog можно просмотреть здесь
# NOTE: do not use clean_spec or rpmcs for this spec
#TODO: - improve for Mandriva's /etc/rpm/macros.d
Name: rpm-build-altlinux-compat
Version: 0.8
Release: alt0.M24.4
Summary: ALT Linux compatibility and extensions in rpm build
License: GPL
Group: Development/Other
Url: http://wiki.sisyphus.ru/devel/RpmBuildAltlinuxCompat
Packager: Vitaly Lipatov <lav at altlinux.ru>
Source: http://etersoft.ru/download/%name/%name-%version.tar.bz2
BuildArchitectures: noarch
%if %_vendor == "alt"
#|| %_vendor == "Mandriva"
%define _rpmmacrosdir %_sysconfdir/rpm/macros.d
%else
%define _rpmmacrosdir /etc/rpm
# ALT has it in RPM
BuildRoot: %{_tmppath}/%{name}-%{version}
%endif
%if %_vendor != "suse"
Requires: rpm-build
%endif
# TODO: add version for other distros
# FIXME: do not work :(
#%if_with build_M30
#Requires: rpm-build >= 4.0.4-alt47
#%endif
%description
This package contains ALT Linux compatibility layer
and some extensions for rpm build
on various rpm-based platforms.
%package -n rpm-build-compat
Summary: ALT Linux compatibility and extensions in rpm build
Group: Development/Other
Requires: %_rpmmacrosdir
%description -n rpm-build-compat
This package contains ALT Linux compatibility layer
and some extensions for rpm build
on ALT Linux systems.
It is useful for backporting packages to previous ALT Linux distros.
Add it to buildrequires when backporting packages.
Command rpmbph from etersoft-build-utils adds it automatically.
# This build prepared for ALT backport_distro
%prep
%setup -q
find -type d -name CVS | xargs rm -rf
%install
#%if %{_vendor} == "RPM"
#rm -rf $RPM_BUILD_ROOT
#%endif
# ALT: /etc/rpm/macros.d
# Scientific: /etc/rpm/macros.name (who else?)
# suse asplinux RPM: macros
DESTFILE=macros
# WARNING: we will override any /etc/rpm/macroses
# I do not know what the platfrom needs it.
#%if %{_vendor} == "redhat"
#DESTFILE=macros.%name
#%endif
%if %_vendor =="alt"
DESTFILE=compat
cat rpm/macros.{altlinux,intro} >rpm/macros.out
%else
cat rpm/macros{,.altlinux,.intro} >rpm/macros.out
mkdir -p %buildroot%_bindir
install -m755 bin/* %buildroot%_bindir
%endif
install -D -m644 rpm/macros.out %buildroot/%_rpmmacrosdir/$DESTFILE
# Note: rpm does not like doc macros in other sections?
%if %_vendor == "alt"
%files -n rpm-build-compat
%doc AUTHORS TODO NEWS
%_rpmmacrosdir/*
%else
%files
%doc AUTHORS TODO NEWS
%_rpmmacrosdir/*
%_bindir/*
%endif
%changelog
…
Полный changelog можно просмотреть здесь