ykarel / centos / cbs-tools

Forked from centos/cbs-tools 4 years ago
Clone

Blame scripts/etc/buildsys-macros-el7.spec

Thomas Oulevey 79d958
%global _el_version el7
Thomas Oulevey 79d958
%global _el_sub .buildsys
Thomas Oulevey 79d958
Thomas Oulevey 79d958
Name:       buildsys-macros-%{_el_version}
Thomas Oulevey 79d958
Summary:    Macros for the Buildsystem
Thomas Oulevey 79d958
Version:    1.0
Thomas Oulevey 79d958
Release:    0%{dist}
Thomas Oulevey 79d958
License:    GPL
Thomas Oulevey 79d958
Group:      Development/Buildsystem
Thomas Oulevey 79d958
BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Thomas Oulevey 79d958
BuildArch:  noarch
Thomas Oulevey 79d958
Thomas Oulevey 79d958
%description
Thomas Oulevey 79d958
This particular package contains the macros needed for the buildsys for Centos el7.
Thomas Oulevey 79d958
Thomas Oulevey 79d958
%prep
Thomas Oulevey 79d958
Thomas Oulevey 79d958
%build
Thomas Oulevey 79d958
Thomas Oulevey 79d958
%install
Thomas Oulevey 79d958
rm -rf %{buildroot}
Thomas Oulevey 79d958
mkdir -p %{buildroot}/etc/rpm/
Thomas Oulevey 79d958
VERSION=%{version}
Thomas Oulevey 79d958
printf %s%b "%" "rhel 7\n" >> %{buildroot}/etc/rpm/macros.disttag
Thomas Oulevey 79d958
printf %s%b "%" "dist .%{_el_version}\n" >> %{buildroot}/etc/rpm/macros.disttag
Thomas Oulevey 79d958
printf %s%b "%" "el7 1\n" >> %{buildroot}/etc/rpm/macros.disttag
Thomas Oulevey 79d958
printf %s%b "%" "__arch_install_post /usr/lib/rpm/check-buildroot\n" >> %{buildroot}/etc/rpm/macros.checkbuild
Thomas Oulevey 79d958
Thomas Oulevey 79d958
%clean
Thomas Oulevey 79d958
rm -rf %{buildroot}
Thomas Oulevey 79d958
Thomas Oulevey 79d958
%files
Thomas Oulevey 79d958
%defattr(-,root,root)
Thomas Oulevey 79d958
/etc/rpm/macros.disttag
Thomas Oulevey 79d958
/etc/rpm/macros.checkbuild
Thomas Oulevey 79d958
Thomas Oulevey 79d958
%changelog
Thomas Oulevey 79d958
* Tue Jul 08 2014 Thomas 'alphacc' Oulevey <thomas.oulevey@cern.ch>
Thomas Oulevey 79d958
- Initial Centos build.
Thomas Oulevey 79d958