3793304
# Sadness, this directory is hardcoded everywhere
3793304
%global _libdir /usr/lib
3793304
3793304
# SUSE guys use OBS to automatically handle release numbers,
3793304
# when rebasing check what they are using on
769e339
# http://download.opensuse.org/repositories/openSUSE:/Tools/Fedora_28/src/
3793304
# update the obsrel to match the upstream release number
9e073ba
%global obsrel 314.1
6f1d2dc
6f1d2dc
# Actual release
6f1d2dc
%global rel 1
3793304
3793304
Name:           obs-build
9e073ba
Version:        20190321
9e073ba
Release:        %{obsrel}.%{rel}%{?dist}
3793304
Summary:        A generic package build script
3793304
3793304
License:        (GPLv2 or GPLv3) and GPLv2+
3793304
URL:            https://github.com/openSUSE/obs-build
3793304
3793304
# Tarball retrieved from
3793304
# https://build.opensuse.org/package/show/openSUSE:Tools/build
3793304
Source0:        %{name}-%{version}.tar.gz
3793304
BuildArch:      noarch
3793304
3793304
BuildRequires:  perl-generators
769e339
BuildRequires:  python3-devel
6cf7d73
Requires:       bash, perl-interpreter, binutils, tar
769e339
Requires:       python3-websocket-client
3793304
3793304
Provides:       build = %{version}-%{release}
3793304
Requires:       %{name}-mkbaselibs = %{version}-%{release}
3793304
%if 0%{?fedora} || 0%{?rhel} >= 8
3793304
Recommends:     %{name}-mkdrpms = %{version}-%{release}
3793304
%endif
3793304
3793304
%description
3793304
This package provides a script for building packages in a chroot environment.
3793304
It is commonly used with the Open Build Service as the engine for building
3793304
packages for a wide variety of distributions.
3793304
3793304
%package mkbaselibs
3793304
Summary:        Tools to generate base library packages
3793304
Provides:       build-mkbaselibs = %{version}-%{release}
3793304
AutoReq:        no
3793304
3793304
%description mkbaselibs
3793304
This package contains the parts which may be installed in the inner build
3793304
system for generating base library packages.
3793304
3793304
%package mkdrpms
3793304
Summary:        Tools to generate DeltaRPMs
3793304
Provides:       build-mkdrpms = %{version}-%{release}
3793304
Requires:       deltarpm
3793304
Requires:       %{name} = %{version}-%{release}
3793304
3793304
%description mkdrpms
3793304
This package contains the parts which may be installed in the inner build
3793304
system for generating DeltaRPM packages.
3793304
3793304
%prep
1ccb046
%autosetup -p1
3793304
3793304
3793304
%build
3793304
# Nothing to do here
3793304
3793304
3793304
%install
3793304
%make_install
3793304
pushd %{buildroot}%{_libdir}/build/configs/
3793304
touch default.conf
3793304
test -e default.conf
3793304
popd
3793304
3793304
# Install man pages
3793304
install -d -m 0755 %{buildroot}%{_mandir}/man1
3793304
install -m 0644 build.1* %{buildroot}%{_mandir}/man1/
9e073ba
install -m 0644 buildvc.1* %{buildroot}%{_mandir}/man1/
3793304
install -m 0644 unrpm.1* %{buildroot}%{_mandir}/man1/
3793304
769e339
# Fix Python shebang for openstack-console
9e073ba
sed -e "s|#!/usr/bin/python|#!%{__python3}|" \
769e339
    -i %{buildroot}%{_libdir}/build/openstack-console
3793304
3793304
%files
3793304
%license COPYING
3793304
%doc README
3793304
%{_bindir}/build
3793304
%{_bindir}/buildvc
3793304
%{_bindir}/unrpm
3793304
%{_libdir}/build
3793304
%{_mandir}/man1/build.1*
9e073ba
%{_mandir}/man1/buildvc.1*
3793304
%{_mandir}/man1/unrpm.1*
3793304
%exclude %{_libdir}/build/mkbaselibs
3793304
%exclude %{_libdir}/build/baselibs*
3793304
%exclude %{_libdir}/build/mkdrpms
3793304
3793304
%files mkbaselibs
3793304
%{_libdir}/build/mkbaselibs
3793304
%{_libdir}/build/baselibs*
3793304
3793304
%files mkdrpms
3793304
%{_libdir}/build/mkdrpms
3793304
3793304
3793304
%changelog
9e073ba
* Sun Mar 24 2019 Neal Gompa <ngompa13@gmail.com> - 20190321-314.1.1
9e073ba
- Update to new release
9e073ba
20c444a
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 20180816-291.1.1.1
20c444a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
20c444a
769e339
* Thu Aug 23 2018 Neal Gompa <ngompa13@gmail.com> - 20180816-291.1.1
769e339
- Update to new release
769e339
d39b63f
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 20171023-267.1.1.2
d39b63f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
d39b63f
93717b0
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 20171023-267.1.1.1
93717b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
93717b0
1ccb046
* Sun Nov 05 2017 Neal Gompa <ngompa13@gmail.com> - 20171023-267.1.1
1ccb046
- Update to new release
1ccb046
3328642
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 20170317-237.1.1.2
3328642
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
3328642
6cf7d73
* Thu Jul 13 2017 Petr Pisar <ppisar@redhat.com> - 20170317-237.1.1.1
6cf7d73
- perl dependency renamed to perl-interpreter
6cf7d73
  <https://fedoraproject.org/wiki/Changes/perl_Package_to_Install_Core_Modules>
6cf7d73
6f1d2dc
* Sat Mar 18 2017 Neal Gompa <ngompa13@gmail.com> - 20170317-237.1.1
6f1d2dc
- Update to new release
6f1d2dc
c81446c
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 20161025-231.1.1.1
c81446c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
c81446c
3793304
* Wed Oct 26 2016 Neal Gompa <ngompa13@gmail.com> - 20161025-231.1.1
3793304
- Initial import (#1381661)
3793304
- Initial packaging based on SUSE and Josef Strzibny's packaging