SPECS: rpm-macros.spec (NEW) - initial idea

Jakub Bogusz qboosh at pld-linux.org
Sun Jun 19 19:45:50 CEST 2005


On Sun, Jun 19, 2005 at 07:36:38PM +0200, glen wrote:
> Author: glen                         Date: Sun Jun 19 17:36:38 2005 GMT
> Module: SPECS                         Tag: HEAD
> ---- Log message:
> - initial idea

> +%define	rpm_macros_rev	1.223

> +Source0:	rpm.macros
> +Provides:	rpmbuild(macros) = %{rpm_macros_rev}
> +BuildArch:	noarch
> +BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
> +
> +%description
> +This package contains rpm macros for PLD Linux.
> +
> +Use this package to get newer rpm macros than rpm-build provides
> +(perhaps this package will be separated in the future).
> +
> +%prep
> +
> +%install
> +rm -rf $RPM_BUILD_ROOT
> +install -d $RPM_BUILD_ROOT%{_sysconfdir}/rpm
> +install %{SOURCE0} $RPM_BUILD_ROOT%{_sysconfdir}/rpm/rpm.macros
> +
> +%clean
> +rm -rf $RPM_BUILD_ROOT
> +
> +%files
> +%defattr(644,root,root,755)
> +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/rpm/rpm.macros

But if one modifies this file, he has to merge changes manually on each
upgrade...


-- 
Jakub Bogusz    http://qboosh.cs.net.pl/



More information about the pld-devel-en mailing list