26c808
%global girname LangTag
26c808
%global girapiversion 0.6
26c808
%global soversion 1
26c808
%global soversion_gobject 0
26c808
26c808
Name: liblangtag
26c808
Version: 0.6.3
26c808
Release: 8%{?dist}.1
26c808
Summary: An interface library to access tags for identifying languages
26c808
26c808
License: LGPLv3+ or MPLv2.0
26c808
URL: http://tagoh.bitbucket.org/liblangtag/
26c808
Source0: https://bitbucket.org/tagoh/%{name}/downloads/%{name}-%{version}.tar.bz2
26c808
Patch0: liblangtag-noparallel-gir.patch
26c808
26c808
Requires: %{name}-data = %{version}-%{release}
26c808
26c808
BuildRequires: glibc-common
26c808
%if ! 0%{?flatpak}
26c808
BuildRequires: gtk-doc
26c808
%endif
26c808
BuildRequires: pkgconfig(check)
26c808
BuildRequires: pkgconfig(gobject-2.0)
26c808
BuildRequires: pkgconfig(gobject-introspection-1.0)
26c808
BuildRequires: pkgconfig(libxml-2.0)
26c808
BuildRequires: make
26c808
BuildRequires: gcc
26c808
26c808
%description
26c808
%{name} is an interface library to access tags for identifying
26c808
languages.
26c808
26c808
Features:
26c808
* several subtag registry database supports:
26c808
  - language
26c808
  - extlang
26c808
  - script
26c808
  - region
26c808
  - variant
26c808
  - extension
26c808
  - grandfathered
26c808
  - redundant
26c808
* handling of the language tags
26c808
  - parser
26c808
  - matching
26c808
  - canonicalizing
26c808
26c808
%package data
26c808
Summary: %{name} data files
26c808
License: Unicode
26c808
BuildArch: noarch
26c808
26c808
%description data
26c808
The %{name}-data package contains data files for %{name}.
26c808
26c808
%package gobject
26c808
Summary: GObject introspection for %{name}
26c808
Requires: %{name}%{?_isa} = %{version}-%{release}
26c808
26c808
%description gobject
26c808
The %{name}-gobject package contains files for GObject introspection for
26c808
%{name}.
26c808
26c808
%package devel
26c808
Summary: Development files for %{name}
26c808
Requires: %{name}%{?_isa} = %{version}-%{release}
26c808
Requires: %{name}-gobject%{?_isa} = %{version}-%{release}
26c808
26c808
%description devel
26c808
The %{name}-devel package contains libraries and header files for
26c808
developing applications that use %{name}.
26c808
26c808
%package doc
26c808
Summary: Documentation of %{name} API
26c808
BuildArch: noarch
26c808
26c808
%description doc
26c808
The %{name}-doc package contains documentation files for %{name}.
26c808
26c808
%prep
26c808
%autosetup -p1
26c808
26c808
%build
26c808
%configure \
26c808
%if 0%{?flatpak}
26c808
    --disable-gtk-doc \
26c808
%endif
26c808
    --disable-silent-rules --disable-static --enable-shared --enable-introspection
26c808
sed -i \
26c808
    -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
26c808
    -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
26c808
    libtool
26c808
export LD_LIBRARY_PATH=`pwd`/liblangtag/.libs:`pwd`/liblangtag-gobject/.libs${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
26c808
%make_build
26c808
26c808
%install
26c808
%make_install
26c808
rm -f %{buildroot}/%{_libdir}/*.la %{buildroot}/%{_libdir}/%{name}/*.la
26c808
26c808
%ldconfig_scriptlets
26c808
26c808
%ldconfig_scriptlets gobject
26c808
26c808
%check
26c808
export LD_LIBRARY_PATH=`pwd`/liblangtag/.libs:`pwd`/liblangtag-gobject/.libs${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
26c808
%make_build check
26c808
26c808
%files
26c808
%doc AUTHORS NEWS README
26c808
%{_libdir}/%{name}.so.%{soversion}
26c808
%{_libdir}/%{name}.so.%{soversion}.*
26c808
%dir %{_libdir}/%{name}
26c808
%{_libdir}/%{name}/*.so
26c808
26c808
%files data
26c808
%license COPYING
26c808
%{_datadir}/%{name}
26c808
26c808
%files gobject
26c808
%{_libdir}/%{name}-gobject.so.%{soversion_gobject}
26c808
%{_libdir}/%{name}-gobject.so.%{soversion_gobject}.*
26c808
%{_libdir}/girepository-1.0/%{girname}-%{girapiversion}.typelib
26c808
26c808
%files devel
26c808
%{_includedir}/%{name}
26c808
%{_libdir}/%{name}.so
26c808
%{_libdir}/%{name}-gobject.so
26c808
%{_libdir}/pkgconfig/%{name}.pc
26c808
%{_libdir}/pkgconfig/%{name}-gobject.pc
26c808
%{_datadir}/gir-1.0/%{girname}-%{girapiversion}.gir
26c808
26c808
%files doc
26c808
%license COPYING
26c808
%{_datadir}/gtk-doc/html/%{name}
26c808
26c808
%changelog
26c808
* Wed Sep 29 2021 Akira TAGOH <tagoh@redhat.com> - 0.6.3-8.1
26c808
- Add CI test.
26c808
  Resolves: rhbz#2008783
26c808
26c808
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.6.3-8
26c808
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
26c808
  Related: rhbz#1991688
26c808
26c808
* Wed May 19 2021 Timm Bäder <tbaeder@redhat.com> - 0.6.3-7
26c808
- Add gcc buildrequires
26c808
- Use make macros
26c808
26c808
* Wed May 19 2021 Akira TAGOH <tagoh@redhat.com> - 0.6.3-6
26c808
- Update License field for liblangtag-data.
26c808
  It is actually Unicode but not UCD.
26c808
26c808
* Wed Apr 21 2021 Akira TAGOH <tagoh@redhat.com> - 0.6.3-5
26c808
- Suppress documentation in Flatpak builds
26c808
- build gir with non-parallel to avoid strange behavior.
26c808
26c808
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.3-4
26c808
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
26c808
26c808
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.3-3
26c808
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
26c808
26c808
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.3-2
26c808
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
26c808
26c808
* Thu Sep 26 2019 Caolán McNamara <caolanm@redhat.com> - 0.6.3-1
26c808
- Resolves: rhbz#1755875 latest available version
26c808
26c808
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-8
26c808
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
26c808
26c808
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-7
26c808
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
26c808
26c808
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-6
26c808
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
26c808
26c808
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-5
26c808
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
26c808
26c808
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-4
26c808
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
26c808
26c808
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-3
26c808
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
26c808
26c808
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-2
26c808
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
26c808
26c808
* Fri Sep 30 2016 David Tardon <dtardon@redhat.com> - 0.6.2-1
26c808
- new upstream release
26c808
26c808
* Thu Sep 22 2016 David Tardon <dtardon@redhat.com> - 0.6.1-1
26c808
- new upstream release
26c808
26c808
* Wed Mar 23 2016 David Tardon <dtardon@redhat.com> - 0.6.0-1
26c808
- new upstream release
26c808
26c808
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.8-2
26c808
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
26c808
26c808
* Tue Nov 10 2015 David Tardon <dtardon@redhat.com> - 0.5.8-1
26c808
- new upstream release
26c808
26c808
* Fri Jun 26 2015 David Tardon <dtardon@redhat.com> - 0.5.7-1
26c808
- new upstream release
26c808
26c808
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.6-2
26c808
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
26c808
26c808
* Tue Mar 31 2015 Caolán McNamara <caolanm@redhat.com> - 0.5.6-1
26c808
- Resolves: rhbz#1207452 latest available version
26c808
26c808
* Fri Mar 27 2015 David Tardon <dtardon@redhat.com> - 0.5.5-3
26c808
- another header fix
26c808
26c808
* Fri Mar 27 2015 David Tardon <dtardon@redhat.com> - 0.5.5-2
26c808
- fix installation of headers
26c808
26c808
* Fri Mar 20 2015 David Tardon <dtardon@redhat.com> - 0.5.5-1
26c808
- new upstream release
26c808
26c808
* Tue Jan 20 2015 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.5.4-6
26c808
- Let liblangtag package own %%{_libdir}/%%{name} (RHBZ#1183882).
26c808
26c808
* Fri Sep 05 2014 David Tardon <dtardon@redhat.com> - 0.5.4-5
26c808
- split GObject introspection files out of main package
26c808
26c808
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.4-4
26c808
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
26c808
26c808
* Tue Jul 22 2014 Kalev Lember <kalevlember@gmail.com> - 0.5.4-3
26c808
- Rebuilt for gobject-introspection 1.41.4
26c808
26c808
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.4-2
26c808
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
26c808
26c808
* Fri May 23 2014 David Tardon <dtardon@redhat.com> - 0.5.4-1
26c808
- new upstream release
26c808
26c808
* Fri Apr 11 2014 David Tardon <dtardon@redhat.com> - 0.5.3-1
26c808
- new upstream release
26c808
26c808
* Mon Sep 02 2013 David Tardon <dtardon@redhat.com> - 0.5.2-1
26c808
- new release
26c808
26c808
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-3
26c808
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
26c808
26c808
* Thu May 16 2013 Eike Rathke <erack@redhat.com> - 0.5.1-2-UNBUILT
26c808
- updated .spec with MPLv2.0 and UCD licenses
26c808
26c808
* Tue Apr 30 2013 David Tardon <dtardon@redhat.com> - 0.5.1-1
26c808
- fix ABI breakage
26c808
26c808
* Mon Apr 29 2013 David Tardon <dtardon@redhat.com> - 0.5.0-1
26c808
- new release
26c808
26c808
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-3
26c808
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
26c808
26c808
* Sat Dec 01 2012 David Tardon <dtardon@redhat.com> - 0.4.0-2
26c808
- fix build on ppc
26c808
26c808
* Sun Nov 25 2012 David Tardon <dtardon@redhat.com> - 0.4.0-1
26c808
- new upstream release
26c808
26c808
* Sun Sep 09 2012 David Tardon <dtardon@redhat.com> - 0.3-1
26c808
- initial import