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