Blame SPECS/libmodulemd.spec

e83e1c
%global majorversion 1
e83e1c
%global minorversion 6
e83e1c
%global patchversion 3
e83e1c
%global majorminorversion %{majorversion}.%{minorversion}
e83e1c
%global nsversion %{majorversion}.0
e83e1c
e83e1c
Name:           libmodulemd
e83e1c
Version:        %{majorminorversion}%{?patchversion:.%{patchversion}}
e83e1c
Release:        1%{?dist}
e83e1c
Summary:        Module metadata manipulation library
e83e1c
e83e1c
License:        MIT
e83e1c
URL:            https://github.com/fedora-modularity/libmodulemd
e83e1c
Source0:        %{url}/releases/download/%{name}-%{version}/modulemd-%{version}.tar.xz
e83e1c
e83e1c
BuildRequires:  meson
e83e1c
BuildRequires:  pkgconfig
e83e1c
BuildRequires:  gcc
e83e1c
BuildRequires:  pkgconfig(gobject-2.0)
e83e1c
BuildRequires:  pkgconfig(gobject-introspection-1.0)
e83e1c
BuildRequires:  pkgconfig(yaml-0.1)
e83e1c
BuildRequires:  pkgconfig(gtk-doc)
e83e1c
BuildRequires:  valgrind
e83e1c
e83e1c
# Patches
e83e1c
%description
e83e1c
C Library for manipulating module metadata files.
e83e1c
See https://github.com/fedora-modularity/libmodulemd/blob/master/README.md for
e83e1c
more details.
e83e1c
e83e1c
e83e1c
%package devel
e83e1c
Summary:        Development files for libmodulemd
e83e1c
Requires:       %{name}%{?_isa} = %{version}-%{release}
e83e1c
e83e1c
e83e1c
%description devel
e83e1c
Development files for libmodulemd.
e83e1c
e83e1c
e83e1c
%prep
e83e1c
%autosetup -p1 -n modulemd-%{version}
e83e1c
e83e1c
e83e1c
%build
e83e1c
%meson -Ddeveloper_build=false
e83e1c
# ALERT!!! PURE HACK FOR RHEL 7.5! This will not be needed in 7.6+
e83e1c
# https://bugzilla.redhat.com/show_bug.cgi?id=1546757
e83e1c
sed -r -i -e "/g-ir-scanner/s/-l(gobject-2.0|glib-2.0|yaml)//g" %{_host}/build.ninja
e83e1c
%meson_build
e83e1c
e83e1c
e83e1c
%check
e83e1c
e83e1c
export LC_CTYPE=C.utf8
e83e1c
e83e1c
%ifarch %{power64}
e83e1c
# Valgrind is broken on ppc64[le] with GCC7:
e83e1c
# https://bugs.kde.org/show_bug.cgi?id=386945
e83e1c
export MMD_SKIP_VALGRIND=1
e83e1c
%endif
e83e1c
e83e1c
%meson_test
e83e1c
e83e1c
e83e1c
%install
e83e1c
%meson_install
e83e1c
e83e1c
e83e1c
%post -p /sbin/ldconfig
e83e1c
e83e1c
%postun -p /sbin/ldconfig
e83e1c
e83e1c
e83e1c
e83e1c
%files
e83e1c
%license COPYING
e83e1c
%doc README.md
e83e1c
%{_bindir}/modulemd-validator
e83e1c
%{_libdir}/%{name}.so.%{majorversion}*
e83e1c
%dir %{_libdir}/girepository-1.0
e83e1c
%{_libdir}/girepository-1.0/Modulemd-%{nsversion}.typelib
e83e1c
e83e1c
e83e1c
%files devel
e83e1c
%{_libdir}/%{name}.so
e83e1c
%{_libdir}/pkgconfig/modulemd.pc
e83e1c
%{_includedir}/modulemd/
e83e1c
%dir %{_datadir}/gir-1.0
e83e1c
%{_datadir}/gir-1.0/Modulemd-%{nsversion}.gir
e83e1c
%dir %{_datadir}/gtk-doc
e83e1c
%dir %{_datadir}/gtk-doc/html
e83e1c
%{_datadir}/gtk-doc/html/modulemd-1.0/
e83e1c
e83e1c
%changelog
e83e1c
* Tue Sep 04 2018 Stephen Gallagher <sgallagh@redhat.com> - 1.6.3-1
e83e1c
- Update to 1.6.3
e83e1c
- Drop upstreamed patch
e83e1c
- Don't return ModuleStream objects from modulemd_module_new_all_from_*_ext()
e83e1c
- Ensure that Component buildorder property is signed
e83e1c
- Work around optimization bug
e83e1c
- Don't crash dumping translation events without summary or desc
e83e1c
- Remove Obsoletes: python-modulemd from EPEL
e83e1c
e83e1c
* Tue Aug 21 2018 Stephen Gallagher <sgallagh@redhat.com> - 1.6.1-2.1
e83e1c
- Rebuild against GLib from RHEL 7.5
e83e1c
e83e1c
* Thu Aug 09 2018 Stephen Gallagher <sgallagh@redhat.com> - 1.6.2-2
e83e1c
- Fix backwards-incompatible API change
e83e1c
- Resolves: rhbz#1607083
e83e1c
e83e1c
* Tue Aug 07 2018 Stephen Gallagher <sgallagh@redhat.com> - 1.6.2-1
e83e1c
- Update to 1.6.2
e83e1c
- Make buildorder a signed integer to match modulemd specification
e83e1c
e83e1c
* Mon Jul 23 2018 Stephen Gallagher <sgallagh@redhat.com> - 1.6.1-2
e83e1c
- Obsolete unsupported pythonX-modulemd packages
e83e1c
e83e1c
* Fri Jul 20 2018 Stephen Gallagher <sgallagh@redhat.com> - 1.6.1-1
e83e1c
- Update to 1.6.1
e83e1c
- Fix header include ordering
e83e1c
- Suppress empty sections from .dump() ordering
e83e1c
e83e1c
* Wed Jul 18 2018 Stephen Gallagher <sgallagh@redhat.com> - 1.6.0-1
e83e1c
- Update to 1.6.0
e83e1c
- Adds Modulemd.ModuleStream object, deprecating Modulemd.Module
e83e1c
- Adds Modulemd.Translation and Modulemd.TranslationEntry objects
e83e1c
- Adds Modulemd.ImprovedModule object that collects streams, defaults and
e83e1c
  translations together
e83e1c
- Adds new Modulemd.index_from_*() funtions to get a hash table of
e83e1c
  Modulemd.ImprovedModule objects for easier searching
e83e1c
- Moves function documentation to the public headers
e83e1c
- Corrects the license headers to MIT (they were incorrectly listed as MITNFA
e83e1c
  in previous releases)
e83e1c
- Makes the "eol" field optional for Modulemd.ServiceLevel
e83e1c
- Clean up HTML documentation
e83e1c
- Fixes a type error on 32-bit systems
e83e1c
e83e1c
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-2
e83e1c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
e83e1c
e83e1c
* Sat Jun 23 2018 Stephen Gallagher <sgallagh@redhat.com> - 1.5.2-1
e83e1c
- Update to libdmodulemd 1.5.2
e83e1c
- Don't free uninitialized memory
e83e1c
e83e1c
* Fri Jun 22 2018 Stephen Gallagher <sgallagh@redhat.com> - 1.5.1-2
e83e1c
- Fix buildopts property not being initialized
e83e1c
e83e1c
* Tue Jun 19 2018 Stephen Gallagher <sgallagh@redhat.com> - 1.5.1-1
e83e1c
- Update to version 1.5.1
e83e1c
- Re-enable build-time tests
e83e1c
e83e1c
* Mon Jun 18 2018 Stephen Gallagher <sgallagh@redhat.com> - 1.5.0-2
e83e1c
- Temporarily disable build-time tests
e83e1c
e83e1c
* Mon Jun 18 2018 Stephen Gallagher <sgallagh@redhat.com> - 1.5.0-1
e83e1c
- Update to version 1.5.0
e83e1c
- Adds support for "intents" in Modulemd.Defaults
e83e1c
- Adds `Modulemd.get_version()`
e83e1c
- Adds support for RPM whitelists in the buildopts
e83e1c
- Adds a new object: Modulemd.Buildopts
e83e1c
- Deprecates Modulemd.Module.get_rpm_buildopts()
e83e1c
- Deprecates Modulemd.Module.set_rpm_buildopts()
e83e1c
- Fixes some missing license blurbs
e83e1c
e83e1c
* Tue May 08 2018 Stephen Gallagher <sgallagh@redhat.com> - 1.4.1-1
e83e1c
- Update to version 1.4.1
e83e1c
- Improve output from modulemd-validator
e83e1c
- Drop upstreamed patches
e83e1c
e83e1c
* Wed Apr 25 2018 Stephen Gallagher <sgallagh@redhat.com> - 1.4.0-2
e83e1c
- Fix pointer math error
e83e1c
- Fix compilation failure in Fedora build system
e83e1c
e83e1c
* Wed Apr 25 2018 Stephen Gallagher <sgallagh@redhat.com> - 1.4.0-1
e83e1c
- Update to version 1.4.0
e83e1c
- Adds new API for returning failed YAML subdocuments
e83e1c
- Stop emitting log messages by default (polluting consumer logs)
e83e1c
- Validate RPM artifacts for proper NEVRA format
e83e1c
- Improve the validator tool
e83e1c
- Drop upstreamed patch
e83e1c
e83e1c
* Mon Apr 16 2018 Stephen Gallagher <sgallagh@redhat.com> - 1.3.0-2
e83e1c
- Fix serious error in modulemd-defaults emitter
e83e1c
e83e1c
* Fri Apr 13 2018 Stephen Gallagher <sgallagh@redhat.com> - 1.3.0-1
e83e1c
- Update to version 1.3.0
e83e1c
- New Public Objects:
e83e1c
  * Modulemd.Prioritizer - tool to merge module defaults
e83e1c
- New Public Functions:
e83e1c
  * Modulemd.SimpleSet.is_equal()
e83e1c
  * Modulemd.Defaults.copy()
e83e1c
  * Modulemd.Defaults.merge()
e83e1c
e83e1c
* Wed Apr 04 2018 Stephen Gallagher <sgallagh@redhat.com> - 1.2.0-1
e83e1c
- Update to version 1.2.0
e83e1c
- New Functions:
e83e1c
  * Modulemd.objects_from_file()
e83e1c
  * Modulemd.objects_from_string()
e83e1c
  * Modulemd.dump()
e83e1c
  * Modulemd.dumps()
e83e1c
  * Modulemd.Defaults.new_from_file()
e83e1c
  * Modulemd.Defaults.new_from_string()
e83e1c
- Deprecated Functions:
e83e1c
  * Modulemd.Module.new_all_from_file()
e83e1c
  * Modulemd.Module.new_all_from_file_ext()
e83e1c
  * Modulemd.Module.new_all_from_string()
e83e1c
  * Modulemd.Module.new_all_from_string_ext()
e83e1c
  * Modulemd.Module.dump_all()
e83e1c
  * Modulemd.Module.dumps_all()
e83e1c
- Bugfixes
e83e1c
  * Properly use G_BEGIN_DECLS and G_END_DECLS in headers
e83e1c
  * Assorted fixes for memory ownership in GObject Introspection
e83e1c
e83e1c
* Fri Mar 23 2018 Stephen Gallagher <sgallagh@redhat.com> - 1.1.3-2
e83e1c
- Fix missing G_END_DECL from public headers
e83e1c
e83e1c
* Mon Mar 19 2018 Stephen Gallagher <sgallagh@redhat.com> - 1.1.3-1
e83e1c
- Fix numerous memory leaks
e83e1c
- Drop upstreamed patch
e83e1c
e83e1c
* Thu Mar 15 2018 Stephen Gallagher <sgallagh@redhat.com> - 1.1.2-1
e83e1c
- Update to version 1.1.2
e83e1c
- Revert backwards-incompatible API change
e83e1c
- Fix version string in pkgconfig file
e83e1c
e83e1c
* Thu Mar 15 2018 Stephen Gallagher <sgallagh@redhat.com> - 1.1.1-1
e83e1c
- Update to version 1.1.1
e83e1c
- Make default stream and profiles optional
e83e1c
- Fixes: https://github.com/fedora-modularity/libmodulemd/issues/25
e83e1c
- Fixes: https://github.com/fedora-modularity/libmodulemd/issues/26
e83e1c
- Fixes: https://github.com/fedora-modularity/libmodulemd/issues/27
e83e1c
e83e1c
* Wed Mar 14 2018 Stephen Gallagher <sgallagh@redhat.com> - 1.1.0-1
e83e1c
- Update to version 1.1.0
e83e1c
- Adds support for handling modulemd-defaults YAML documents
e83e1c
- Adds peek()/dup() routines to all object properties
e83e1c
- Adds Modulemd.Module.dup_nsvc() to retrieve the canonical form of the unique module identifier.
e83e1c
- Adds support for boolean types in the XMD section
e83e1c
- Revert obsoletion of pythonX-modulemd packages for now
e83e1c
e83e1c
* Tue Mar 13 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.0.4-2
e83e1c
- Obsolete unsupported pythonX-modulemd packages
e83e1c
e83e1c
* Tue Feb 27 2018 Stephen Gallagher <sgallagh@redhat.com> - 1.0.4-1
e83e1c
- Update to 1.0.4
e83e1c
- Rework version autodetection
e83e1c
- Avoid infinite loop on unparseable YAML
e83e1c
e83e1c
* Sun Feb 25 2018 Stephen Gallagher <sgallagh@redhat.com> - 1.0.3-1
e83e1c
- RPM components are properly emitted when no module components exist
e83e1c
- Parser works around late determination of modulemd version
e83e1c
e83e1c
* Fri Feb 16 2018 Stephen Gallagher <sgallagh@redhat.com> - 1.0.2-1
e83e1c
- Be more strict with certain parser edge-cases
e83e1c
- Replace popt argument processing with glib
e83e1c
- Drop upstreamed patches
e83e1c
e83e1c
* Thu Feb 15 2018 Stephen Gallagher <sgallagh@redhat.com> - 1.0.1-2
e83e1c
- Handle certain unlikely format violations
e83e1c
e83e1c
* Thu Feb 15 2018 Stephen Gallagher <sgallagh@redhat.com> - 1.0.1-1
e83e1c
- Support modulemd v2
e83e1c
- Add tool to do quick validation of modulemd
e83e1c
- Fix memory management
e83e1c
- Warn and ignore unparseable sub-documents in the YAML
e83e1c
- Fix several memory issues detected by Coverity scan
e83e1c
e83e1c
* Tue Feb 06 2018 Stephen Gallagher <sgallagh@redhat.com> - 0.2.2-1
e83e1c
- Update to libmodulemd 0.2.2
e83e1c
- Fix numerous minor memory leaks
e83e1c
- Fix issues with EOL/SL dates
e83e1c
e83e1c
* Tue Feb 06 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.1-3
e83e1c
- Own appropriate directories
e83e1c
e83e1c
* Fri Feb 02 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.1-2
e83e1c
- Switch to %%ldconfig_scriptlets
e83e1c
e83e1c
* Fri Jan 05 2018 Stephen Gallagher <sgallagh@redhat.com> - 0.2.1-1
e83e1c
- Update to libmodulemd 0.2.1
e83e1c
- Add 'name' property for Profiles
e83e1c
e83e1c
* Thu Oct 05 2017 Stephen Gallagher <sgallagh@redhat.com> - 0.2.0-2
e83e1c
- Add missing BuildRequires for gtk-doc
e83e1c
e83e1c
* Thu Oct 05 2017 Stephen Gallagher <sgallagh@redhat.com> - 0.2.0-1
e83e1c
- Update to libmodulemd 0.2.0
e83e1c
- Adds gtk-doc generated documentation
e83e1c
- (ABI-break) Makes all optional properties accept NULL as a value to clear
e83e1c
  them
e83e1c
- (ABI-break) Modulemd.SimpleSet takes a STRV (char **) instead of a
e83e1c
  GLib.PtrArray
e83e1c
- Fixes a bug where the name was not always set for components
e83e1c
- Adds support for dumping YAML from the introspected API
e83e1c
- Includes add/remove routines for profiles
e83e1c
e83e1c
* Sat Sep 30 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.0-5
e83e1c
- Use %%_isa in Requires for main package from devel
e83e1c
e83e1c
* Mon Sep 18 2017 Stephen Gallagher <sgallagh@redhat.com> - 0.1.0-4
e83e1c
- Correct the license to MIT
e83e1c
e83e1c
* Mon Sep 18 2017 Stephen Gallagher <sgallagh@redhat.com> - 0.1.0-3
e83e1c
- Modifications requested during package review
e83e1c
e83e1c
* Fri Sep 15 2017 Stephen Gallagher <sgallagh@redhat.com> - 0.1.0-2
e83e1c
- First public release
e83e1c