0d4f4c9
Name: liblangtag
55ebe28
Version: 0.5.2
55ebe28
Release: 1%{?dist}
0d4f4c9
Summary: An interface library to access tags for identifying languages
0d4f4c9
0d4f4c9
Group: System Environment/Libraries
8531c9c
License: (LGPLv3+ or MPLv2.0) and UCD
9f29b55
URL: http://tagoh.bitbucket.org/liblangtag/
9f29b55
Source0: https://bitbucket.org/tagoh/%{name}/downloads/%{name}-%{version}.tar.bz2
0d4f4c9
0d4f4c9
BuildRequires: gtk-doc
757654a
BuildRequires: libtool
0d4f4c9
BuildRequires: libxml2-devel
0d4f4c9
0d4f4c9
%description
0d4f4c9
%{name} is an interface library to access tags for identifying
0d4f4c9
languages.
0d4f4c9
0d4f4c9
Features:
0d4f4c9
* several subtag registry database supports:
0d4f4c9
  - language
0d4f4c9
  - extlang
0d4f4c9
  - script
0d4f4c9
  - region
0d4f4c9
  - variant
0d4f4c9
  - extension
0d4f4c9
  - grandfathered
0d4f4c9
  - redundant
0d4f4c9
* handling of the language tags
0d4f4c9
  - parser
0d4f4c9
  - matching
0d4f4c9
  - canonicalizing
0d4f4c9
0d4f4c9
%package devel
0d4f4c9
Summary: Development files for %{name}
0d4f4c9
Group: Development/Libraries
0d4f4c9
Requires: %{name}%{?_isa} = %{version}-%{release}
0d4f4c9
0d4f4c9
%description devel
0d4f4c9
The %{name}-devel package contains libraries and header files for
0d4f4c9
developing applications that use %{name}.
0d4f4c9
0d4f4c9
%package doc
0d4f4c9
Summary: Documentation of %{name} API
0d4f4c9
Group: Documentation
0d4f4c9
BuildArch: noarch
0d4f4c9
0d4f4c9
%description doc
0d4f4c9
The %{name}-doc package contains documentation files for %{name}.
0d4f4c9
0d4f4c9
0d4f4c9
%prep
0d4f4c9
%setup -q
0d4f4c9
0d4f4c9
0d4f4c9
%build
0d4f4c9
%configure --disable-static --enable-shared --disable-introspection
0d4f4c9
sed -i \
0d4f4c9
    -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
0d4f4c9
    -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
0d4f4c9
    libtool
757654a
make %{?_smp_mflags} V=1 \
757654a
    LD_LIBRARY_PATH=`pwd`/liblangtag/.libs${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
0d4f4c9
0d4f4c9
0d4f4c9
%install
0d4f4c9
make install DESTDIR=%{buildroot}
0d4f4c9
rm -f %{buildroot}/%{_libdir}/*.la %{buildroot}/%{_libdir}/%{name}/*.la
0d4f4c9
0d4f4c9
0d4f4c9
%post -p /sbin/ldconfig
0d4f4c9
0d4f4c9
0d4f4c9
%postun -p /sbin/ldconfig
0d4f4c9
0d4f4c9
0d4f4c9
%files
0d4f4c9
%doc AUTHORS COPYING NEWS README
0d4f4c9
%{_libdir}/%{name}.so.*
0d4f4c9
%{_libdir}/%{name}/*.so
0d4f4c9
%{_datadir}/%{name}
0d4f4c9
0d4f4c9
%files devel
0d4f4c9
%{_includedir}/%{name}
0d4f4c9
%{_libdir}/%{name}.so
0d4f4c9
%{_libdir}/pkgconfig/%{name}.pc
0d4f4c9
0d4f4c9
%files doc
0d4f4c9
%doc COPYING
0d4f4c9
%{_datadir}/gtk-doc/html/%{name}
0d4f4c9
0d4f4c9
0d4f4c9
%changelog
55ebe28
* Mon Sep 02 2013 David Tardon <dtardon@redhat.com> - 0.5.2-1
55ebe28
- new release
55ebe28
0e5e9d7
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-3
0e5e9d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
0e5e9d7
8531c9c
* Thu May 16 2013 Eike Rathke <erack@redhat.com> - 0.5.1-2-UNBUILT
8531c9c
- updated .spec with MPLv2.0 and UCD licenses
8531c9c
b3c485e
* Tue Apr 30 2013 David Tardon <dtardon@redhat.com> - 0.5.1-1
b3c485e
- fix ABI breakage
b3c485e
27f028c
* Mon Apr 29 2013 David Tardon <dtardon@redhat.com> - 0.5.0-1
27f028c
- new release
27f028c
5e35dd8
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-3
5e35dd8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
5e35dd8
07f443b
* Sat Dec 01 2012 David Tardon <dtardon@redhat.com> - 0.4.0-2
07f443b
- fix build on ppc
07f443b
757654a
* Sun Nov 25 2012 David Tardon <dtardon@redhat.com> - 0.4.0-1
757654a
- new upstream release
757654a
0d4f4c9
* Sun Sep 09 2012 David Tardon <dtardon@redhat.com> - 0.3-1
0d4f4c9
- initial import