Blob Blame History Raw
# Sadness, this directory is hardcoded everywhere
%global _libdir /usr/lib

# SUSE guys use OBS to automatically handle release numbers,
# when rebasing check what they are using on
# update the obsrel to match the upstream release number
%global obsrel 267.1

# Actual release
%global rel 1

Name:           obs-build
Version:        20171023
Release:        %{obsrel}.%{rel}%{?dist}.1
Summary:        A generic package build script

License:        (GPLv2 or GPLv3) and GPLv2+

# Tarball retrieved from
Source0:        %{name}-%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  perl-generators
Requires:       bash, perl-interpreter, binutils, tar

Provides:       build = %{version}-%{release}
Requires:       %{name}-mkbaselibs = %{version}-%{release}
%if 0%{?fedora} || 0%{?rhel} >= 8
Recommends:     %{name}-mkdrpms = %{version}-%{release}

This package provides a script for building packages in a chroot environment.
It is commonly used with the Open Build Service as the engine for building
packages for a wide variety of distributions.

%package mkbaselibs
Summary:        Tools to generate base library packages
Provides:       build-mkbaselibs = %{version}-%{release}
AutoReq:        no

%description mkbaselibs
This package contains the parts which may be installed in the inner build
system for generating base library packages.

%package mkdrpms
Summary:        Tools to generate DeltaRPMs
Provides:       build-mkdrpms = %{version}-%{release}
Requires:       deltarpm
Requires:       %{name} = %{version}-%{release}

%description mkdrpms
This package contains the parts which may be installed in the inner build
system for generating DeltaRPM packages.

%autosetup -p1

# Nothing to do here

pushd %{buildroot}%{_libdir}/build/configs/
touch default.conf
test -e default.conf

# Install man pages
install -d -m 0755 %{buildroot}%{_mandir}/man1
install -m 0644 build.1* %{buildroot}%{_mandir}/man1/
install -m 0644 unrpm.1* %{buildroot}%{_mandir}/man1/
install -m 0644 vc.1* %{buildroot}%{_mandir}/man1/

%license COPYING
%exclude %{_libdir}/build/mkbaselibs
%exclude %{_libdir}/build/baselibs*
%exclude %{_libdir}/build/mkdrpms

%files mkbaselibs

%files mkdrpms

* Thu Feb 08 2018 Fedora Release Engineering <> - 20171023-
- Rebuilt for

* Sun Nov 05 2017 Neal Gompa <> - 20171023-267.1.1
- Update to new release

* Thu Jul 27 2017 Fedora Release Engineering <> - 20170317-
- Rebuilt for

* Thu Jul 13 2017 Petr Pisar <> - 20170317-
- perl dependency renamed to perl-interpreter

* Sat Mar 18 2017 Neal Gompa <> - 20170317-237.1.1
- Update to new release

* Sat Feb 11 2017 Fedora Release Engineering <> - 20161025-
- Rebuilt for

* Wed Oct 26 2016 Neal Gompa <> - 20161025-231.1.1
- Initial import (#1381661)
- Initial packaging based on SUSE and Josef Strzibny's packaging