Blame obs-build.spec

379330
# Sadness, this directory is hardcoded everywhere
379330
%global _libdir /usr/lib
379330
379330
# SUSE guys use OBS to automatically handle release numbers,
379330
# when rebasing check what they are using on
379330
# http://download.opensuse.org/repositories/openSUSE:/Tools/Fedora_24/src/
379330
# update the obsrel to match the upstream release number
6f1d2d
%global obsrel 237.1
6f1d2d
6f1d2d
# Actual release
6f1d2d
%global rel 1
379330
379330
Name:           obs-build
6f1d2d
Version:        20170317
6cf7d7
Release:        %{obsrel}.%{rel}%{?dist}.1
379330
Summary:        A generic package build script
379330
379330
License:        (GPLv2 or GPLv3) and GPLv2+
379330
URL:            https://github.com/openSUSE/obs-build
379330
379330
# Tarball retrieved from
379330
# https://build.opensuse.org/package/show/openSUSE:Tools/build
379330
Source0:        %{name}-%{version}.tar.gz
379330
BuildArch:      noarch
379330
379330
BuildRequires:  perl-generators
6cf7d7
Requires:       bash, perl-interpreter, binutils, tar
379330
379330
Provides:       build = %{version}-%{release}
379330
Requires:       %{name}-mkbaselibs = %{version}-%{release}
379330
%if 0%{?fedora} || 0%{?rhel} >= 8
379330
Recommends:     %{name}-mkdrpms = %{version}-%{release}
379330
%endif
379330
379330
%description
379330
This package provides a script for building packages in a chroot environment.
379330
It is commonly used with the Open Build Service as the engine for building
379330
packages for a wide variety of distributions.
379330
379330
%package mkbaselibs
379330
Summary:        Tools to generate base library packages
379330
Provides:       build-mkbaselibs = %{version}-%{release}
379330
AutoReq:        no
379330
379330
%description mkbaselibs
379330
This package contains the parts which may be installed in the inner build
379330
system for generating base library packages.
379330
379330
%package mkdrpms
379330
Summary:        Tools to generate DeltaRPMs
379330
Provides:       build-mkdrpms = %{version}-%{release}
379330
Requires:       deltarpm
379330
Requires:       %{name} = %{version}-%{release}
379330
379330
%description mkdrpms
379330
This package contains the parts which may be installed in the inner build
379330
system for generating DeltaRPM packages.
379330
379330
%prep
379330
%autosetup -n %{name}-%{version} -p1
379330
379330
379330
%build
379330
# Nothing to do here
379330
379330
379330
%install
379330
%make_install
379330
pushd %{buildroot}%{_libdir}/build/configs/
379330
touch default.conf
379330
test -e default.conf
379330
popd
379330
379330
# Install man pages
379330
install -d -m 0755 %{buildroot}%{_mandir}/man1
379330
install -m 0644 build.1* %{buildroot}%{_mandir}/man1/
379330
install -m 0644 unrpm.1* %{buildroot}%{_mandir}/man1/
379330
install -m 0644 vc.1* %{buildroot}%{_mandir}/man1/
379330
379330
379330
%files
379330
%license COPYING
379330
%doc README
379330
%{_bindir}/build
379330
%{_bindir}/buildvc
379330
%{_bindir}/unrpm
379330
%{_libdir}/build
379330
%{_mandir}/man1/build.1*
379330
%{_mandir}/man1/unrpm.1*
379330
%{_mandir}/man1/vc.1*
379330
%exclude %{_libdir}/build/mkbaselibs
379330
%exclude %{_libdir}/build/baselibs*
379330
%exclude %{_libdir}/build/mkdrpms
379330
379330
%files mkbaselibs
379330
%{_libdir}/build/mkbaselibs
379330
%{_libdir}/build/baselibs*
379330
379330
%files mkdrpms
379330
%{_libdir}/build/mkdrpms
379330
379330
379330
%changelog
6cf7d7
* Thu Jul 13 2017 Petr Pisar <ppisar@redhat.com> - 20170317-237.1.1.1
6cf7d7
- perl dependency renamed to perl-interpreter
6cf7d7
  <https://fedoraproject.org/wiki/Changes/perl_Package_to_Install_Core_Modules>
6cf7d7
6f1d2d
* Sat Mar 18 2017 Neal Gompa <ngompa13@gmail.com> - 20170317-237.1.1
6f1d2d
- Update to new release
6f1d2d
c81446
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 20161025-231.1.1.1
c81446
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
c81446
379330
* Wed Oct 26 2016 Neal Gompa <ngompa13@gmail.com> - 20161025-231.1.1
379330
- Initial import (#1381661)
379330
- Initial packaging based on SUSE and Josef Strzibny's packaging