203642
%global girname LangTag
203642
%global girapiversion 0.6
203642
203642
Name: liblangtag
203642
Version: 0.6.2
203642
Release: 1.1%{?dist}
203642
Summary: An interface library to access tags for identifying languages
203642
203642
License: (LGPLv3+ or MPLv2.0) and UCD
203642
URL: http://tagoh.bitbucket.org/liblangtag/
203642
Source0: https://bitbucket.org/tagoh/%{name}/downloads/%{name}-%{version}.tar.bz2
203642
203642
BuildRequires: glibc-common
203642
BuildRequires: gtk-doc
203642
BuildRequires: libtool
203642
BuildRequires: pkgconfig(check)
203642
BuildRequires: pkgconfig(gobject-2.0)
203642
BuildRequires: pkgconfig(gobject-introspection-1.0)
203642
BuildRequires: pkgconfig(libxml-2.0)
203642
203642
%description
203642
%{name} is an interface library to access tags for identifying
203642
languages.
203642
203642
Features:
203642
* several subtag registry database supports:
203642
  - language
203642
  - extlang
203642
  - script
203642
  - region
203642
  - variant
203642
  - extension
203642
  - grandfathered
203642
  - redundant
203642
* handling of the language tags
203642
  - parser
203642
  - matching
203642
  - canonicalizing
203642
203642
%package gobject
203642
Summary: GObject introspection for %{name}
203642
Requires: %{name}%{?_isa} = %{version}-%{release}
203642
203642
%description gobject
203642
The %{name}-gobject package contains files for GObject introspection for
203642
%{name}.
203642
203642
%package devel
203642
Summary: Development files for %{name}
203642
Requires: %{name}%{?_isa} = %{version}-%{release}
203642
Requires: %{name}-gobject%{?_isa} = %{version}-%{release}
203642
203642
%description devel
203642
The %{name}-devel package contains libraries and header files for
203642
developing applications that use %{name}.
203642
203642
%package doc
203642
Summary: Documentation of %{name} API
203642
BuildArch: noarch
203642
203642
%description doc
203642
The %{name}-doc package contains documentation files for %{name}.
203642
203642
%prep
203642
%setup -q
203642
203642
%build
203642
%configure --disable-silent-rules --disable-static --enable-shared --enable-introspection
203642
sed -i \
203642
    -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
203642
    -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
203642
    libtool
203642
export LD_LIBRARY_PATH=`pwd`/liblangtag/.libs:`pwd`/liblangtag-gobject/.libs${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
203642
make %{?_smp_mflags}
203642
# workaround gnome-introspection bug that causes multilib problems
203642
sed -i \
203642
    -e 's/lt_pointer_t/LtPointer/' \
203642
    -e 's/lt_grandfathered_t/LtGrandfathered/' \
203642
    -e 's/lt_redundant_t/LtRedundant/' \
203642
    -e 's/lt_variant_t/LtVariant/' \
203642
    -e 's/lt_extlang_t/LtExtlang/' \
203642
    -e 's/lt_script_t/LtScript/' \
203642
    -e 's/lt_lang_t/LtLang/' \
203642
    liblangtag-gobject/%{girname}-%{girapiversion}.gir
203642
203642
%install
203642
make install DESTDIR=%{buildroot}
203642
rm -f %{buildroot}/%{_libdir}/*.la %{buildroot}/%{_libdir}/%{name}/*.la
203642
203642
%post -p /sbin/ldconfig
203642
203642
%postun -p /sbin/ldconfig
203642
203642
%check
203642
export LD_LIBRARY_PATH=`pwd`/liblangtag/.libs:`pwd`/liblangtag-gobject/.libs${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
203642
make %{?_smp_mflags} check
203642
203642
%files
203642
%doc AUTHORS COPYING NEWS README
203642
%{_libdir}/%{name}.so.*
203642
%{_libdir}/%{name}/*.so
203642
%{_datadir}/%{name}
203642
203642
%files gobject
203642
%{_libdir}/%{name}-gobject.so.*
203642
%{_libdir}/girepository-1.0/%{girname}-%{girapiversion}.typelib
203642
203642
%files devel
203642
%{_includedir}/%{name}
203642
%{_libdir}/%{name}.so
203642
%{_libdir}/%{name}-gobject.so
203642
%{_libdir}/pkgconfig/%{name}.pc
203642
%{_libdir}/pkgconfig/%{name}-gobject.pc
203642
%{_datadir}/gir-1.0/%{girname}-%{girapiversion}.gir
203642
203642
%files doc
203642
%doc COPYING
203642
%{_datadir}/gtk-doc/html/%{name}
203642
203642
%changelog
203642
* Mon Sep 11 2017 Akira TAGOH <tagoh@redhat.com> - 0.6.2-1.1
203642
- Resolves: rhbz#1477212 Fix multilib issue.
203642
203642
* Mon Sep 11 2017 Akira TAGOH <tagoh@redhat.com> - 0.6.2-1
203642
- Resolves: rhbz#1477212 Rebase to 0.6.2.
203642
203642
* Fri Nov 07 2014 David Tardon <dtardon@redhat.com> - 0.5.4-8
203642
- Related: rhbz#1132077 really resolve multilib conflict in -devel
203642
203642
* Fri Nov 07 2014 David Tardon <dtardon@redhat.com> - 0.5.4-7
203642
- Related: rhbz#1132077 resolve multilib conflict in -devel
203642
203642
* Fri Sep 05 2014 David Tardon <dtardon@redhat.com> - 0.5.4-6
203642
- Related: rhbz#1132077 add explicit dep on -gobject to -devel
203642
203642
* Fri Sep 05 2014 David Tardon <dtardon@redhat.com> - 0.5.4-5
203642
- split GObject introspection files out of main package
203642
203642
* Fri Sep 05 2014 David Tardon <dtardon@redhat.com> - 0.5.3-1
203642
- Resolves: rhbz#1132077 rebase to 0.5.4
203642
203642
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.5.1-4
203642
- Mass rebuild 2014-01-24
203642
203642
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.5.1-3
203642
- Mass rebuild 2013-12-27
203642
203642
* Thu May 16 2013 Eike Rathke <erack@redhat.com> - 0.5.1-2-UNBUILT
203642
- updated .spec with MPLv2.0 and UCD licenses
203642
203642
* Tue Apr 30 2013 David Tardon <dtardon@redhat.com> - 0.5.1-1
203642
- fix ABI breakage
203642
203642
* Mon Apr 29 2013 David Tardon <dtardon@redhat.com> - 0.5.0-1
203642
- new release
203642
203642
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-3
203642
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
203642
203642
* Sat Dec 01 2012 David Tardon <dtardon@redhat.com> - 0.4.0-2
203642
- fix build on ppc
203642
203642
* Sun Nov 25 2012 David Tardon <dtardon@redhat.com> - 0.4.0-1
203642
- new upstream release
203642
203642
* Sun Sep 09 2012 David Tardon <dtardon@redhat.com> - 0.3-1
203642
- initial import