Compare commits

...
Sign in to create a new pull request.

13 commits

Author SHA1 Message Date
Stephen Gallagher
e50f0128db
Merge branch 'master' into epel-libmodulemd2 2019-07-03 16:36:37 -04:00
Stephen Gallagher
67da020e93
Merge branch 'master' into epel-libmodulemd2 2019-05-29 16:35:39 -04:00
Stephen Gallagher
e6c6cec5e8
Merge branch 'master' into epel-libmodulemd2 2019-05-22 17:00:11 -04:00
Stephen Gallagher
9fd2f62c65
Add script to build for Fedora Infrastructure
Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
2019-05-13 10:31:14 -04:00
Stephen Gallagher
8a4bab66ea
Merge branch 'master' into epel-libmodulemd2 2019-05-13 10:06:29 -04:00
Stephen Gallagher
9999d60b75
Merge branch 'master' into epel-libmodulemd2 2019-05-03 08:37:06 -04:00
Stephen Gallagher
aeeeaab625
Disable tests for now
Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
2019-04-23 10:14:27 -04:00
Stephen Gallagher
0dc497e5dd
Merge branch 'master' into epel-libmodulemd2 2019-04-22 20:47:48 -04:00
Stephen Gallagher
b6ee3746a4
Merge branch 'master' into epel-libmodulemd2 2019-04-03 09:11:12 -04:00
Stephen Gallagher
3c389d6897
Add py2 overrides flag
Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
2019-04-01 14:18:22 -04:00
Stephen Gallagher
9fe7272cab
Merge branch 'master' into epel-libmodulemd2 2019-04-01 14:12:00 -04:00
Stephen Gallagher
f361903729
Merge branch 'master' into epel-libmodulemd2 2019-03-27 14:54:41 -04:00
Stephen Gallagher
b78c7b3c63
Release libmodulemd 2.x for COPR on EPEL 7
Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
2019-03-27 09:58:12 -04:00
2 changed files with 46 additions and 113 deletions

29
build-infra.sh Executable file
View file

@ -0,0 +1,29 @@
#!/bin/bash
set -e
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
VERSION=$(rpm -q --specfile --qf='%{version}\n' $SCRIPT_DIR/libmodulemd.spec | head -n1)
RELEASE=$(rpm -q --define 'dist .el7.infra' --specfile --qf='%{release}\n' $SCRIPT_DIR/libmodulemd.spec | head -n1)
rpmbuild --define "_sourcedir $SCRIPT_DIR" \
--define "_specdir $SCRIPT_DIR" \
--define "_builddir $SCRIPT_DIR" \
--define "_srcrpmdir $SCRIPT_DIR" \
--define "_rpmdir $SCRIPT_DIR" \
--define 'dist .el7.infra' \
--define 'rhel 7' \
--eval '%undefine fedora' \
--define 'el7 1' \
--eval '%undefine fc30' \
--nodeps \
-bs \
$SCRIPT_DIR/libmodulemd.spec
if [ -f $SCRIPT_DIR/libmodulemd-$VERSION-$RELEASE.src.rpm ]; then
koji build epel7-infra $SCRIPT_DIR/libmodulemd-$VERSION-$RELEASE.src.rpm
else
echo "Missing $SCRIPT_DIR/libmodulemd-$VERSION-$RELEASE.src.rpm"
fi

View file

@ -1,15 +1,6 @@
%global libmodulemd_version 2.6.0
%global libmodulemd_v1_version 1.8.13
# Python 2 is dead on F31+
%if ( 0%{?fedora} && 0%{?fedora} <= 30 ) || ( 0%{?rhel} && 0%{?rhel} <= 7)
%global meson_override_flags -Dwith_py3_overrides=true -Dwith_py2_overrides=true
%global build_python2 1
%else
%global meson_override_flags -Dwith_py3_overrides=true -Dwith_py2_overrides=false
%global build_python2 0
%endif
Name: libmodulemd
Version: %{libmodulemd_version}
Release: 1%{?dist}
@ -27,19 +18,14 @@ BuildRequires: pkgconfig(gobject-2.0)
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(yaml-0.1)
BuildRequires: pkgconfig(gtk-doc)
%if %{build_python2}
BuildRequires: python2-devel
BuildRequires: python-gobject-base
%endif
BuildRequires: python3-devel
BuildRequires: python3-gobject-base
BuildRequires: python36-devel
BuildRequires: python36-gobject-base
%ifarch %{valgrind_arches}
BuildRequires: valgrind
%endif
# Make sure we upgrade libmodulemd1 to match
Conflicts: libmodulemd1 < %{libmodulemd_v1_version}-%{release}
# Patches
@ -50,7 +36,6 @@ See https://github.com/fedora-modularity/libmodulemd/blob/master/README.md for
more details.
%if %{build_python2}
%package -n python2-%{name}
Summary: Python 2 bindings for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
@ -60,89 +45,34 @@ Obsoletes: python2-modulemd < 1.3.4
%description -n python2-%{name}
Python 2 bindings for %{name}
%endif
%package -n python3-%{name}
Summary: Python 3 bindings for %{name}
%package -n python36-%{name}
Summary: Python 3.6 bindings for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: python3-gobject-base
Requires: python-gobject-base
Requires: %{py3_dist six}
Obsoletes: python3-modulemd < 1.3.4
%description -n python3-%{name}
Python 3 bindings for %{name}
%description -n python36-%{name}
Python 3.6 bindings for %{name}
%package devel
Summary: Development files for libmodulemd
Requires: %{name}%{?_isa} = %{version}-%{release}
Conflicts: libmodulemd1-devel
%description devel
Development files for libmodulemd.
%package -n libmodulemd1
Summary: Compatibility package for libmodulemd 1.x
Version: %{libmodulemd_v1_version}
Obsoletes: libmodulemd < 2
Provides: libmodulemd = %{libmodulemd_v1_version}-%{release}
Provides: libmodulemd%{?_isa} = %{libmodulemd_v1_version}-%{release}
%description -n libmodulemd1
Compatibility library for libmodulemd 1.x
%package -n libmodulemd1-devel
Summary: Compatibility development package for libmodulemd 1.x
Version: %{libmodulemd_v1_version}
Requires: libmodulemd1%{?_isa} = %{libmodulemd_v1_version}-%{release}
Conflicts: %{name}-devel
Obsoletes: libmodulemd-devel < 2
Provides: libmodulemd-devel = %{libmodulemd_v1_version}-%{release}
RemovePathPostfixes: .compat
%description -n libmodulemd1-devel
Development files for libmodulemd 1.x
%if %{build_python2}
%package -n python2-libmodulemd1
Summary: Python 2 bindings for %{name}1
Version: %{libmodulemd_v1_version}
Requires: libmodulemd1 = %{libmodulemd_v1_version}-%{release}
Requires: python-gobject-base
Obsoletes: python2-libmodulemd < 2
Provides: python2-libmodulemd = %{libmodulemd_v1_version}-%{release}
%description -n python2-libmodulemd1
Python 2 bindings for libmodulemd1
%endif
%package -n python3-libmodulemd1
Summary: Python 3 bindings for %{name}1
Version: %{libmodulemd_v1_version}
Requires: libmodulemd1 = %{libmodulemd_v1_version}-%{release}
Requires: python3-gobject-base
Obsoletes: python3-libmodulemd < 2
Provides: python3-libmodulemd = %{libmodulemd_v1_version}-%{release}
%description -n python3-libmodulemd1
Python 3 bindings for libmodulemd1
%prep
%autosetup -p1 -n modulemd-%{libmodulemd_version}
%build
%meson -Ddeveloper_build=false -Dbuild_api_v1=true -Dbuild_api_v2=true %{meson_override_flags}
%meson -Ddeveloper_build=false -Dbuild_api_v1=false -Dbuild_api_v2=true -Dwith_py2_overrides=true
%meson_build
@ -162,16 +92,16 @@ export MMD_SKIP_VALGRIND=1
# Don't run tests on ARM for now. There are problems with
# performance on the builders and often these time out.
%ifnarch %{arm} aarch64
%meson_test
# Temporarily disable tests on EPEL 7 builds because they're timing out in
# COPR
# %%meson_test
%endif
%install
%meson_install
ln -s libmodulemd.so.%{libmodulemd_v1_version} \
%{buildroot}%{_libdir}/%{name}.so.compat
%files
%license COPYING
@ -193,43 +123,14 @@ ln -s libmodulemd.so.%{libmodulemd_v1_version} \
%{_datadir}/gtk-doc/html/modulemd-2.0/
%if %{build_python2}
%files -n python2-%{name}
%{python2_sitearch}/gi/overrides/
%endif
%files -n python3-%{name}
%files -n python36-%{name}
%{python3_sitearch}/gi/overrides/
%if %{build_python2}
%files -n python2-libmodulemd1
%endif
%files -n python3-libmodulemd1
%files -n libmodulemd1
%license COPYING
%doc README.md
%{_bindir}/modulemd-validator-v1
%{_libdir}/%{name}.so.1*
%dir %{_libdir}/girepository-1.0
%{_libdir}/girepository-1.0/Modulemd-1.0.typelib
%files -n libmodulemd1-devel
%{_libdir}/%{name}.so.compat
%{_libdir}/pkgconfig/modulemd.pc
%{_includedir}/modulemd/
%dir %{_datadir}/gir-1.0
%{_datadir}/gir-1.0/Modulemd-1.0.gir
%dir %{_datadir}/gtk-doc
%dir %{_datadir}/gtk-doc/html
%{_datadir}/gtk-doc/html/modulemd-1.0/
%changelog
* Wed Jul 03 2019 Stephen Gallagher <sgallagh@redhat.com> - 2.6.0-1
- Update to 2.6.0
@ -288,6 +189,9 @@ ln -s libmodulemd.so.%{libmodulemd_v1_version} \
- Add support for python2 on RHEL and Fedora < 31
- Make python subpackages archful for GObject overrides
* Wed Mar 27 2019 Stephen Gallagher <sgallagh@redhat.com> - 2.2.1-1
- Release libmodulemd 2.x for COPR on EPEL 7
* Tue Mar 26 2019 Stephen Gallagher <sgallagh@redhat.com> - 2.2.1-1
- Update to libmodulemd 2.2.1
- Fixes builds on i686