Blame build2.spec

362b3f8
%bcond_without check
362b3f8
%bcond_without bundle_libodb
e3db101
%bcond_with bootstrap
362b3f8
%bcond_with network_checks
362b3f8
%bcond_with static
362b3f8
362b3f8
Name:           build2
44467c6
Version:        0.13.0
44467c6
Release:        1%{?dist}
362b3f8
Summary:        Cross-platform build toolchain for developing and packaging C++ code
362b3f8
362b3f8
License:        MIT
362b3f8
URL:            https://build2.org/
362b3f8
Source0:        https://pkg.cppget.org/1/alpha/%{name}/%{name}-%{version}.tar.gz
362b3f8
Source1:        https://pkg.cppget.org/1/alpha/%{name}/libbutl-%{version}.tar.gz
362b3f8
Source2:        https://pkg.cppget.org/1/alpha/%{name}/libbpkg-%{version}.tar.gz
362b3f8
Source3:        https://pkg.cppget.org/1/alpha/%{name}/bpkg-%{version}.tar.gz
362b3f8
Source4:        https://pkg.cppget.org/1/alpha/%{name}/bdep-%{version}.tar.gz
362b3f8
Source5:        macros.%{name}
362b3f8
362b3f8
# The latest official release of libodb is not compatible with build2
362b3f8
%if %{with bundle_libodb}
44467c6
%global         libodb_bundle_version 2.5.0-b.19
362b3f8
Source100:      https://pkg.cppget.org/1/beta/odb/libodb-%{libodb_bundle_version}.tar.gz
362b3f8
Source101:      https://pkg.cppget.org/1/beta/odb/libodb-sqlite-%{libodb_bundle_version}.tar.gz
362b3f8
%endif
362b3f8
362b3f8
BuildRequires:  gcc-c++
362b3f8
BuildRequires:  libpkgconf-devel
362b3f8
%if %{with bootstrap}
362b3f8
BuildRequires:  make
362b3f8
BuildRequires:  pkgconf
362b3f8
%else
362b3f8
BuildRequires:  %{name}
362b3f8
BuildRequires:  %{name}-rpm-macros
362b3f8
%endif
362b3f8
%if %{with check}
78e723f
# libbuild2, bpkg
362b3f8
BuildRequires:  bzip2
78e723f
# install: libbuild2; readlink: libbuild2; sha256sum: bpkg, bdep
362b3f8
BuildRequires:  coreutils
78e723f
# libbuild2, libbutl
362b3f8
BuildRequires:  diffutils
362b3f8
%if %{with network_checks}
362b3f8
# libbutl, bpkg, bdep
362b3f8
BuildRequires:  curl
362b3f8
%endif
78e723f
# libbuild2, bpkg, bdep
362b3f8
BuildRequires:  git
78e723f
# libbuild2, bpkg
362b3f8
BuildRequires:  gzip
362b3f8
# libbutl, bpkg
362b3f8
BuildRequires:  openssl
78e723f
# libbuild2, bpkg
362b3f8
BuildRequires:  tar
78e723f
# libbuild2, bpkg
362b3f8
BuildRequires:  xz
362b3f8
%endif
362b3f8
Recommends:     %{name}-rpm-macros
362b3f8
362b3f8
%description
362b3f8
%{name} is an open source (MIT), cross-platform build toolchain for developing
362b3f8
and packaging C++ code. It is a hierarchy of tools that includes the build
362b3f8
system, package dependency manager (for package consumption), and project
362b3f8
dependency manager (for project development). Key features:
362b3f8
362b3f8
 * Next-generation, Cargo-like integrated build toolchain for C++.
362b3f8
 * Covers entire project life cycle: creation, development, testing, and
362b3f8
   delivery.
362b3f8
 * Uniform and consistent interface across all platforms and compilers.
362b3f8
 * Fast, multi-threaded build system with parallel building and testing.
362b3f8
 * Archive and version control-based package repositories.
362b3f8
 * Dependency-free, all you need is a C++ compiler.
362b3f8
362b3f8
%package -n     %{name}-doc
362b3f8
Summary:        %{name} documentation
362b3f8
BuildArch:      noarch
362b3f8
362b3f8
%description -n %{name}-doc
362b3f8
This package contains the %{name} documentation.
362b3f8
78e723f
%package -n     lib%{name}
78e723f
Summary:        %{name} library
78e723f
# libbuild2-dist
78e723f
Requires:       bzip2
78e723f
# install: libbuild2-install; readlink: libbuild2-bash
78e723f
Requires:       coreutils
78e723f
# libbuild2-test
78e723f
Requires:       diffutils
78e723f
# libbuild2-version
78e723f
Requires:       git
78e723f
# libbuild2-dist
78e723f
Requires:       gzip
78e723f
# libbuild2-dist
78e723f
Requires:       tar
78e723f
# libbuild2-dist
78e723f
Requires:       xz
78e723f
78e723f
%description -n lib%{name}
78e723f
This package contains the %{name} library.
78e723f
78e723f
%package -n     lib%{name}-devel
78e723f
Summary:        Development files for %{name} library
78e723f
Requires:       lib%{name}%{?_isa} = %{version}-%{release}
78e723f
Requires:       pkgconfig
78e723f
78e723f
%description -n lib%{name}-devel
78e723f
The lib%{name}-devel package contains libraries and header files for
78e723f
developing applications that use lib%{name}.
78e723f
78e723f
%if %{with static}
78e723f
%package -n     lib%{name}-static
78e723f
Summary:        Static libraries for %{name} library
78e723f
Requires:       lib%{name}-devel%{?_isa} = %{version}-%{release}
78e723f
78e723f
%description -n lib%{name}-static
78e723f
The lib%{name}-static package contains static libraries for developing
78e723f
applications that use lib%{name}.
78e723f
%endif
78e723f
362b3f8
%package -n     libbutl
362b3f8
Summary:        %{name} utility library
362b3f8
# BSD-2 clause:
362b3f8
#   libbutl/sha256c.c
362b3f8
#   libbutl/strptime.c
362b3f8
#   libbutl/timelocal.c
362b3f8
#   libbutl/timelocal.h
362b3f8
# BSD-3 clause:
362b3f8
#   libbutl/sha1.c
362b3f8
License:        MIT and BSD
362b3f8
Requires:       curl
362b3f8
Requires:       openssl
362b3f8
362b3f8
%description -n libbutl
362b3f8
This package contains the %{name} utility library.
362b3f8
362b3f8
%package -n     libbutl-devel
362b3f8
Summary:        Development files for %{name} utility library
362b3f8
License:        MIT and BSD
362b3f8
Requires:       libbutl%{?_isa} = %{version}-%{release}
1a35b34
Requires:       pkgconfig
362b3f8
362b3f8
%description -n libbutl-devel
362b3f8
The libbutl-devel package contains libraries and header files for
362b3f8
developing applications that use libbutl.
362b3f8
362b3f8
%if %{with static}
362b3f8
%package -n     libbutl-static
362b3f8
Summary:        Static libraries for %{name} utility library
362b3f8
License:        MIT and BSD
362b3f8
Requires:       libbutl-devel%{?_isa} = %{version}-%{release}
362b3f8
362b3f8
%description -n libbutl-static
362b3f8
The libbutl-static package contains static libraries for developing
362b3f8
applications that use libbutl.
362b3f8
%endif
362b3f8
362b3f8
%package -n     libbpkg
362b3f8
Summary:        %{name} package dependency manager library
362b3f8
362b3f8
%description -n libbpkg
362b3f8
This package contains the %{name} package dependency manager library.
362b3f8
362b3f8
%package -n     libbpkg-devel
362b3f8
Summary:        Development files for %{name} package dependency manager library
362b3f8
Requires:       libbpkg%{?_isa} = %{version}-%{release}
1a35b34
Requires:       pkgconfig
362b3f8
362b3f8
%description -n libbpkg-devel
362b3f8
The libbpkg-devel package contains libraries and header files for
362b3f8
developing applications that use libbpkg.
362b3f8
362b3f8
%if %{with static}
362b3f8
%package -n     libbpkg-static
362b3f8
Summary:        Static libraries for %{name} package dependency manager library
362b3f8
Requires:       libbpkg-devel%{?_isa} = %{version}-%{release}
362b3f8
362b3f8
%description -n libbpkg-static
362b3f8
The libbpkg-static package contains static libraries for developing
362b3f8
applications that use libbpkg.
362b3f8
%endif
362b3f8
362b3f8
%package -n     bpkg
362b3f8
Summary:        %{name} package dependency manager
362b3f8
%if %{with bundle_libodb}
362b3f8
Provides:       bundled(libodb) = %{libodb_bundle_version}
362b3f8
Provides:       bundled(libodb-sqlite) = %{libodb_bundle_version}
362b3f8
%else
362b3f8
BuildRequires:  pkgconfig(libodb)
362b3f8
BuildRequires:  pkgconfig(libodb-sqlite)
362b3f8
%endif
362b3f8
BuildRequires:  pkgconfig(sqlite3)
362b3f8
Requires:       %{name}%{?_isa} = %{version}-%{release}
362b3f8
Requires:       bzip2
362b3f8
Requires:       coreutils
362b3f8
Requires:       curl
362b3f8
Requires:       git
362b3f8
Requires:       gzip
362b3f8
Requires:       openssl
362b3f8
Requires:       tar
362b3f8
Requires:       xz
362b3f8
362b3f8
%description -n bpkg
362b3f8
The %{name} package dependency manager is used to manipulate build
362b3f8
configurations, packages, and repositories.
362b3f8
362b3f8
%package -n     bpkg-doc
362b3f8
Summary:        bpkg documentation
362b3f8
BuildArch:      noarch
362b3f8
362b3f8
%description -n bpkg-doc
362b3f8
This package contains the bpkg documentation.
362b3f8
362b3f8
%package -n     bdep
362b3f8
Summary:        %{name} project dependency manager
362b3f8
%if %{with bundle_libodb}
362b3f8
Provides:       bundled(libodb) = %{libodb_bundle_version}
362b3f8
Provides:       bundled(libodb-sqlite) = %{libodb_bundle_version}
362b3f8
%else
362b3f8
BuildRequires:  pkgconfig(libodb)
362b3f8
BuildRequires:  pkgconfig(libodb-sqlite)
362b3f8
%endif
362b3f8
BuildRequires:  pkgconfig(sqlite3)
362b3f8
Requires:       %{name}%{?_isa} = %{version}-%{release}
362b3f8
Requires:       bpkg%{?_isa} = %{version}-%{release}
362b3f8
Requires:       coreutils
362b3f8
Requires:       curl
362b3f8
Requires:       git
362b3f8
362b3f8
%description -n bdep
362b3f8
The %{name} project dependency manager is used to manage the dependencies of a
362b3f8
project during development.
362b3f8
362b3f8
%package -n     bdep-doc
362b3f8
Summary:        bdep documentation
362b3f8
BuildArch:      noarch
362b3f8
362b3f8
%description -n bdep-doc
362b3f8
This package contains the bdep documentation.
362b3f8
362b3f8
%package -n     %{name}-rpm-macros
362b3f8
Summary:        %{name} RPM macros
362b3f8
BuildArch:      noarch
362b3f8
Requires:       %{name}
362b3f8
362b3f8
%description -n %{name}-rpm-macros
362b3f8
This package contains the %{name} RPM macros.
362b3f8
362b3f8
%prep
362b3f8
%if ! %{with bundle_libodb}
362b3f8
%setup -q -c -n %{name}-toolchain-%{version} -a 1 -a 2 -a 3 -a 4
362b3f8
%else
362b3f8
%setup -q -c -n %{name}-toolchain-%{version} -a 1 -a 2 -a 3 -a 4 -a 100 -a 101
362b3f8
%endif
362b3f8
mv libbutl-%{version} %{name}-%{version}
362b3f8
362b3f8
%build
362b3f8
# Define basic installation configuration. Note that this does not include:
362b3f8
#  %%{_sysconfdir}           /etc
362b3f8
#  %%{_libexecdir}           %%{_exec_prefix}/libexec
362b3f8
#  %%{_sharedstatedir}       /var/lib
362b3f8
#  %%{_datadir}              %%{_prefix}/share
362b3f8
#  %%{_infodir}              /usr/share/info
362b3f8
#  %%{_localstatedir}        /var
362b3f8
# config.install.data and config.install.libexec seems to default to a value
362b3f8
# like %%{_datadir}/${project} and %%{_libexecdir}/${project} so that data files
362b3f8
# are not installed directly in %%{_datadir} or %%{_libexecdir}
362b3f8
# By specifying the installation location, the default file install mode will be
362b3f8
# 644, so we should set mode 755 for executable target install directories
362b3f8
# explicitly
362b3f8
%global config_install                                                          \\\
362b3f8
  config.install.root=%{_prefix}                                                \\\
362b3f8
  config.install.exec_root=%{_exec_prefix}                                      \\\
362b3f8
  config.install.bin=%{_bindir}                                                 \\\
362b3f8
  config.install.sbin=%{_sbindir}                                               \\\
362b3f8
  config.install.include=%{_includedir}                                         \\\
362b3f8
  config.install.lib=%{_libdir}                                                 \\\
362b3f8
  config.install.man=%{_mandir}                                                 \\\
44467c6
  config.install.legal=%{_defaultlicensedir}/"<project>"                        \\\
362b3f8
  config.install.pkgconfig=%{_libdir}/pkgconfig                                 \\\
362b3f8
  config.install.bin.mode=755                                                   \\\
362b3f8
  config.install.sbin.mode=755                                                  \\\
362b3f8
  config.install.lib.mode=755                                                   \\\
362b3f8
  config.install.chroot=%{?buildroot}
362b3f8
%if %{with bootstrap}
362b3f8
CXX=g++
362b3f8
CXXFLAGS="${CXXFLAGS:-%{build_cxxflags}}"
362b3f8
LDFLAGS="${LDFLAGS:-%{build_ldflags}}"
78e723f
export LD_LIBRARY_PATH=$PWD/%{name}-%{version}/lib%{name}:${LD_LIBRARY_PATH}
78e723f
export LD_LIBRARY_PATH=$PWD/%{name}-%{version}/lib%{name}/bash:${LD_LIBRARY_PATH}
78e723f
export LD_LIBRARY_PATH=$PWD/%{name}-%{version}/lib%{name}/bin:${LD_LIBRARY_PATH}
78e723f
export LD_LIBRARY_PATH=$PWD/%{name}-%{version}/lib%{name}/c:${LD_LIBRARY_PATH}
78e723f
export LD_LIBRARY_PATH=$PWD/%{name}-%{version}/lib%{name}/cc:${LD_LIBRARY_PATH}
78e723f
export LD_LIBRARY_PATH=$PWD/%{name}-%{version}/lib%{name}/cxx:${LD_LIBRARY_PATH}
78e723f
export LD_LIBRARY_PATH=$PWD/%{name}-%{version}/lib%{name}/in:${LD_LIBRARY_PATH}
78e723f
export LD_LIBRARY_PATH=$PWD/%{name}-%{version}/lib%{name}/version:${LD_LIBRARY_PATH}
362b3f8
export LD_LIBRARY_PATH=$PWD/%{name}-%{version}/libbutl-%{version}/libbutl:${LD_LIBRARY_PATH}
362b3f8
pushd %{name}-%{version}
362b3f8
# bootstrap, phase 1: minimal build system
362b3f8
export CXX
362b3f8
export CXXFLAGS
362b3f8
export LDFLAGS
362b3f8
%make_build -f bootstrap.gmake
362b3f8
# bootstrap, phase 2: statically linked build system
362b3f8
build2/b-boot                                                                   \
362b3f8
  config.bin.lib=static                                                         \
362b3f8
  config.cxx=${CXX}                                                             \
362b3f8
  config.cxx.coptions="${CXXFLAGS}"                                             \
362b3f8
  config.cxx.poptions+="$(pkgconf --cflags-only-I libpkgconf)"                  \
362b3f8
  config.cxx.loptions+="$(pkgconf --libs-only-L libpkgconf) ${LDFLAGS}"         \
362b3f8
  build2/exe{b}
362b3f8
mv build2/b build2/b-boot
362b3f8
# configure and build final, shared library build system
362b3f8
build2/b-boot configure                                                         \
362b3f8
%if ! %{with static}
362b3f8
  config.bin.lib=shared                                                         \
362b3f8
%endif
362b3f8
  config.bin.rpath.auto=false                                                   \
362b3f8
  config.bin.rpath_link.auto=false                                              \
362b3f8
  config.cxx=${CXX}                                                             \
362b3f8
  config.cxx.coptions="${CXXFLAGS}"                                             \
362b3f8
  config.cxx.loptions="${LDFLAGS}"                                              \
362b3f8
%{config_install}
362b3f8
build2/b-boot
362b3f8
popd
362b3f8
%if %{with bundle_libodb}
362b3f8
# configure libodb to build static and not install
362b3f8
%{name}-%{version}/build2/b configure:                                          \
362b3f8
  libodb-%{libodb_bundle_version}/                                              \
362b3f8
  libodb-sqlite-%{libodb_bundle_version}/                                       \
362b3f8
  config.bin.lib=static                                                         \
362b3f8
  config.cxx=${CXX}                                                             \
362b3f8
  config.cxx.coptions="${CXXFLAGS}"                                             \
362b3f8
  config.cxx.loptions="${LDFLAGS}"                                              \
362b3f8
  config.import.libodb="libodb-%{libodb_bundle_version}/"                       \
362b3f8
  config.install=false
362b3f8
%endif
362b3f8
# configure bpkg and bdep and their dependencies
362b3f8
%{name}-%{version}/build2/b configure:                                          \
362b3f8
  libbpkg-%{version}/                                                           \
362b3f8
  bpkg-%{version}/                                                              \
362b3f8
  bdep-%{version}/                                                              \
362b3f8
%if ! %{with static}
362b3f8
  config.bin.lib=shared                                                         \
362b3f8
%endif
362b3f8
  config.bin.rpath.auto=false                                                   \
362b3f8
  config.bin.rpath_link.auto=false                                              \
362b3f8
  config.cxx=${CXX}                                                             \
362b3f8
  config.cxx.coptions="${CXXFLAGS}"                                             \
362b3f8
  config.cxx.loptions="${LDFLAGS}"                                              \
362b3f8
%if %{with bundle_libodb}
362b3f8
  config.import.libodb="libodb-%{libodb_bundle_version}/"                       \
362b3f8
  config.import.libodb_sqlite="libodb-sqlite-%{libodb_bundle_version}/"         \
362b3f8
%endif
362b3f8
  config.import.libbutl="%{name}-%{version}/libbutl-%{version}/"                \
362b3f8
  config.import.libbpkg="libbpkg-%{version}/"                                   \
362b3f8
%{config_install}
362b3f8
# build bpkg and bdep and their dependencies
362b3f8
%{name}-%{version}/build2/b                                                     \
362b3f8
  libbpkg-%{version}/                                                           \
362b3f8
  bpkg-%{version}/                                                              \
362b3f8
  bdep-%{version}/
362b3f8
%else
362b3f8
# ! %%{with bootstrap}
362b3f8
%if %{with bundle_libodb}
362b3f8
# configure libodb to build static and not install
362b3f8
%build2 configure:                                                              \
362b3f8
  libodb-%{libodb_bundle_version}/                                              \
362b3f8
  libodb-sqlite-%{libodb_bundle_version}/                                       \
362b3f8
  config.bin.lib=static                                                         \
362b3f8
  config.import.libodb="libodb-%{libodb_bundle_version}/"                       \
362b3f8
  config.install=false
362b3f8
%endif
362b3f8
# configure build2, bpkg, and bdep and their dependencies
362b3f8
%build2_configure                                                               \
362b3f8
  %{name}-%{version}/                                                           \
362b3f8
  libbpkg-%{version}/                                                           \
362b3f8
  bpkg-%{version}/                                                              \
362b3f8
  bdep-%{version}/                                                              \
362b3f8
%if %{with static}
362b3f8
  config.bin.lib=both                                                           \
362b3f8
%endif
362b3f8
%if %{with bundle_libodb}
362b3f8
  config.import.libodb="libodb-%{libodb_bundle_version}/"                       \
362b3f8
  config.import.libodb_sqlite="libodb-sqlite-%{libodb_bundle_version}/"         \
362b3f8
%endif
362b3f8
  config.import.libbutl="%{name}-%{version}/libbutl-%{version}/"                \
362b3f8
  config.import.libbpkg="libbpkg-%{version}/"
362b3f8
# build build2, bpkg, and bdep and their dependencies
362b3f8
b %{name}-%{version}/                                                           \
362b3f8
  libbpkg-%{version}/                                                           \
362b3f8
  bpkg-%{version}/                                                              \
362b3f8
  bdep-%{version}/
362b3f8
%endif
362b3f8
362b3f8
%install
362b3f8
%if %{with bootstrap}
362b3f8
%{name}-%{version}/build2/b-boot install:                                       \
362b3f8
%else
362b3f8
b install:                                                                      \
362b3f8
%endif
362b3f8
  %{name}-%{version}/libbutl-%{version}/                                        \
362b3f8
  %{name}-%{version}/                                                           \
362b3f8
  libbpkg-%{version}/                                                           \
362b3f8
  bpkg-%{version}/                                                              \
362b3f8
  bdep-%{version}/
44467c6
# copy licenses from build2 package to libbuild2 subpackage
78e723f
mkdir -p %{buildroot}%{_defaultlicensedir}/lib%{name}
44467c6
cp %{buildroot}%{_defaultlicensedir}/%{name}/{AUTHORS,LICENSE} %{buildroot}%{_defaultlicensedir}/lib%{name}
362b3f8
install -Dpm0644 %{SOURCE5} %{buildroot}%{_rpmmacrodir}/macros.%{name}
362b3f8
362b3f8
%check
362b3f8
%if %{with check}
362b3f8
export PATH=$PWD/bpkg-%{version}/bpkg:$PATH
362b3f8
export PATH=$PWD/%{name}-%{version}/build2:$PATH
362b3f8
export LD_LIBRARY_PATH=$PWD/libbpkg-%{version}/libbpkg:${LD_LIBRARY_PATH}
78e723f
export LD_LIBRARY_PATH=$PWD/%{name}-%{version}/lib%{name}:${LD_LIBRARY_PATH}
78e723f
export LD_LIBRARY_PATH=$PWD/%{name}-%{version}/lib%{name}/bash:${LD_LIBRARY_PATH}
78e723f
export LD_LIBRARY_PATH=$PWD/%{name}-%{version}/lib%{name}/bin:${LD_LIBRARY_PATH}
78e723f
export LD_LIBRARY_PATH=$PWD/%{name}-%{version}/lib%{name}/c:${LD_LIBRARY_PATH}
78e723f
export LD_LIBRARY_PATH=$PWD/%{name}-%{version}/lib%{name}/cc:${LD_LIBRARY_PATH}
78e723f
export LD_LIBRARY_PATH=$PWD/%{name}-%{version}/lib%{name}/cxx:${LD_LIBRARY_PATH}
78e723f
export LD_LIBRARY_PATH=$PWD/%{name}-%{version}/lib%{name}/in:${LD_LIBRARY_PATH}
78e723f
export LD_LIBRARY_PATH=$PWD/%{name}-%{version}/lib%{name}/version:${LD_LIBRARY_PATH}
362b3f8
export LD_LIBRARY_PATH=$PWD/%{name}-%{version}/libbutl-%{version}/libbutl:${LD_LIBRARY_PATH}
362b3f8
b test:                                                                         \
362b3f8
  %{name}-%{version}/libbutl-%{version}/                                        \
362b3f8
  %{name}-%{version}/                                                           \
362b3f8
  libbpkg-%{version}/                                                           \
362b3f8
  bpkg-%{version}/                                                              \
362b3f8
  bdep-%{version}/                                                              \
362b3f8
%if ! %{with network_checks}
44467c6
  config.bdep.tests.ci.server=''                                                \
44467c6
  config.bdep.tests.publish.repository=''
362b3f8
%endif
362b3f8
%endif
362b3f8
362b3f8
%files
362b3f8
%dir %{_defaultlicensedir}/%{name}
362b3f8
%dir %{_docdir}/%{name}
44467c6
%license %{_defaultlicensedir}/%{name}/AUTHORS
362b3f8
%license %{_defaultlicensedir}/%{name}/LICENSE
362b3f8
%doc %{_docdir}/%{name}/NEWS
362b3f8
%doc %{_docdir}/%{name}/README
362b3f8
%{_bindir}/b
362b3f8
%{_mandir}/man1/b.1*
362b3f8
362b3f8
%files -n       %{name}-doc
362b3f8
%dir %{_docdir}/%{name}
362b3f8
%doc %{_docdir}/%{name}/%{name}-build-system-manual*
362b3f8
%doc %{_docdir}/%{name}/b.xhtml
362b3f8
%doc %{_docdir}/%{name}/manifest
362b3f8
78e723f
%files -n       lib%{name}
78e723f
%dir %{_defaultlicensedir}/lib%{name}
44467c6
%license %{_defaultlicensedir}/lib%{name}/AUTHORS
78e723f
%license %{_defaultlicensedir}/lib%{name}/LICENSE
44467c6
%{_libdir}/lib%{name}-0.13.so
44467c6
%{_libdir}/lib%{name}-bash-0.13-0.13.so
44467c6
%{_libdir}/lib%{name}-bin-0.13-0.13.so
44467c6
%{_libdir}/lib%{name}-c-0.13-0.13.so
44467c6
%{_libdir}/lib%{name}-cc-0.13-0.13.so
44467c6
%{_libdir}/lib%{name}-cxx-0.13-0.13.so
44467c6
%{_libdir}/lib%{name}-in-0.13-0.13.so
44467c6
%{_libdir}/lib%{name}-version-0.13-0.13.so
78e723f
78e723f
%files -n       lib%{name}-devel
78e723f
%{_includedir}/lib%{name}
78e723f
%{_libdir}/lib%{name}.so
44467c6
%{_libdir}/lib%{name}-bash{,-0.13}.so
44467c6
%{_libdir}/lib%{name}-bin{,-0.13}.so
44467c6
%{_libdir}/lib%{name}-c{,-0.13}.so
44467c6
%{_libdir}/lib%{name}-cc{,-0.13}.so
44467c6
%{_libdir}/lib%{name}-cxx{,-0.13}.so
44467c6
%{_libdir}/lib%{name}-in{,-0.13}.so
44467c6
%{_libdir}/lib%{name}-version{,-0.13}.so
44467c6
%{_libdir}/pkgconfig/lib%{name}{,.shared}.pc
44467c6
%{_libdir}/pkgconfig/lib%{name}-bash{,.shared}.pc
44467c6
%{_libdir}/pkgconfig/lib%{name}-bin{,.shared}.pc
44467c6
%{_libdir}/pkgconfig/lib%{name}-c{,.shared}.pc
44467c6
%{_libdir}/pkgconfig/lib%{name}-cc{,.shared}.pc
44467c6
%{_libdir}/pkgconfig/lib%{name}-cxx{,.shared}.pc
44467c6
%{_libdir}/pkgconfig/lib%{name}-in{,.shared}.pc
44467c6
%{_libdir}/pkgconfig/lib%{name}-version{,.shared}.pc
78e723f
78e723f
%if %{with static}
78e723f
%files -n       lib%{name}-static
78e723f
%{_libdir}/lib%{name}.a
78e723f
%{_libdir}/lib%{name}-bash.a
78e723f
%{_libdir}/lib%{name}-bin.a
78e723f
%{_libdir}/lib%{name}-c.a
78e723f
%{_libdir}/lib%{name}-cc.a
78e723f
%{_libdir}/lib%{name}-cxx.a
78e723f
%{_libdir}/lib%{name}-in.a
78e723f
%{_libdir}/lib%{name}-version.a
78e723f
%{_libdir}/pkgconfig/lib%{name}.static.pc
78e723f
%{_libdir}/pkgconfig/lib%{name}-bash.static.pc
78e723f
%{_libdir}/pkgconfig/lib%{name}-bin.static.pc
78e723f
%{_libdir}/pkgconfig/lib%{name}-c.static.pc
78e723f
%{_libdir}/pkgconfig/lib%{name}-cc.static.pc
78e723f
%{_libdir}/pkgconfig/lib%{name}-cxx.static.pc
78e723f
%{_libdir}/pkgconfig/lib%{name}-in.static.pc
78e723f
%{_libdir}/pkgconfig/lib%{name}-version.static.pc
78e723f
%endif
78e723f
362b3f8
%files -n       libbutl
362b3f8
%dir %{_defaultlicensedir}/libbutl
44467c6
%license %{_defaultlicensedir}/libbutl/AUTHORS
44467c6
%license %{_defaultlicensedir}/libbutl/COPYRIGHT
362b3f8
%license %{_defaultlicensedir}/libbutl/LICENSE
44467c6
%{_libdir}/libbutl-0.13.so
362b3f8
362b3f8
%files -n       libbutl-devel
362b3f8
%dir %{_docdir}/libbutl
362b3f8
%doc %{_docdir}/libbutl/manifest
362b3f8
%doc %{_docdir}/libbutl/NEWS
362b3f8
%doc %{_docdir}/libbutl/README
362b3f8
%{_includedir}/libbutl
362b3f8
%{_libdir}/libbutl.so
44467c6
%{_libdir}/pkgconfig/libbutl{,.shared}.pc
362b3f8
362b3f8
%if %{with static}
362b3f8
%files -n       libbutl-static
362b3f8
%{_libdir}/libbutl.a
362b3f8
%{_libdir}/pkgconfig/libbutl.static.pc
362b3f8
%endif
362b3f8
362b3f8
%files -n       libbpkg
362b3f8
%dir %{_defaultlicensedir}/libbpkg
44467c6
%license %{_defaultlicensedir}/libbpkg/AUTHORS
362b3f8
%license %{_defaultlicensedir}/libbpkg/LICENSE
44467c6
%{_libdir}/libbpkg-0.13.so
362b3f8
362b3f8
%files -n       libbpkg-devel
362b3f8
%dir %{_docdir}/libbpkg
362b3f8
%doc %{_docdir}/libbpkg/manifest
362b3f8
%doc %{_docdir}/libbpkg/NEWS
362b3f8
%doc %{_docdir}/libbpkg/README
362b3f8
%{_includedir}/libbpkg
362b3f8
%{_libdir}/libbpkg.so
44467c6
%{_libdir}/pkgconfig/libbpkg{,.shared}.pc
362b3f8
362b3f8
%if %{with static}
362b3f8
%files -n       libbpkg-static
362b3f8
%{_libdir}/libbpkg.a
362b3f8
%{_libdir}/pkgconfig/libbpkg.static.pc
362b3f8
%endif
362b3f8
362b3f8
%files -n       bpkg
362b3f8
%dir %{_defaultlicensedir}/bpkg
362b3f8
%dir %{_docdir}/bpkg
44467c6
%license %{_defaultlicensedir}/bpkg/AUTHORS
44467c6
%license %{_defaultlicensedir}/bpkg/LEGAL
362b3f8
%license %{_defaultlicensedir}/bpkg/LICENSE
362b3f8
%doc %{_docdir}/bpkg/NEWS
362b3f8
%doc %{_docdir}/bpkg/README
362b3f8
%{_bindir}/bpkg
362b3f8
%{_mandir}/man1/bpkg.1*
362b3f8
%{_mandir}/man1/bpkg-*1.*
362b3f8
362b3f8
%files -n       bpkg-doc
362b3f8
%dir %{_docdir}/bpkg
362b3f8
%doc %{_docdir}/bpkg/%{name}-package-manager-manual*
362b3f8
%doc %{_docdir}/bpkg/bpkg*.xhtml
362b3f8
%doc %{_docdir}/bpkg/manifest
362b3f8
362b3f8
%files -n       bdep
362b3f8
%dir %{_defaultlicensedir}/bdep
362b3f8
%dir %{_docdir}/bdep
44467c6
%license %{_defaultlicensedir}/bdep/AUTHORS
44467c6
%license %{_defaultlicensedir}/bdep/LEGAL
362b3f8
%license %{_defaultlicensedir}/bdep/LICENSE
362b3f8
%doc %{_docdir}/bdep/NEWS
362b3f8
%doc %{_docdir}/bdep/README
362b3f8
%{_bindir}/bdep
362b3f8
%{_mandir}/man1/bdep.1*
362b3f8
%{_mandir}/man1/bdep-*1.*
362b3f8
362b3f8
%files -n       bdep-doc
362b3f8
%dir %{_docdir}/bdep
362b3f8
%doc %{_docdir}/bdep/bdep*.xhtml
362b3f8
%doc %{_docdir}/bdep/manifest
362b3f8
362b3f8
%files -n       %{name}-rpm-macros
362b3f8
%{_rpmmacrodir}/macros.%{name}
362b3f8
362b3f8
%changelog
44467c6
* Sat Jul 18 2020 Matthew Krupcale <mkrupcale@matthewkrupcale.com> - 0.13.0-1
44467c6
- Update to v0.13.0
44467c6
934fd95
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.12.0-2
934fd95
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
934fd95
78e723f
* Wed Nov 20 2019 Matthew Krupcale <mkrupcale@matthewkrupcale.com> - 0.12.0-1
78e723f
- Update to v0.12.0
78e723f
fc4effc
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.11.0-2
fc4effc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
fc4effc
362b3f8
* Tue Jun 11 2019 Matthew Krupcale <mkrupcale@matthewkrupcale.com> - 0.11.0-1
362b3f8
- Initial package