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