diff --git a/README.md b/README.md index bd392a8..e0c4fd7 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # liblangtag +liblangtag is an interface library to access/deal with tags for identifying languages, which is described in RFC 5646. + diff --git a/liblangtag-0.5.1-gcc-4.5.patch b/liblangtag-0.5.1-gcc-4.5.patch new file mode 100644 index 0000000..f5c8951 --- /dev/null +++ b/liblangtag-0.5.1-gcc-4.5.patch @@ -0,0 +1,11 @@ +--- liblangtag-0.5.1/liblangtag/lt-trie.c.orig 2013-05-27 15:42:55.448188626 +0200 ++++ liblangtag-0.5.1/liblangtag/lt-trie.c 2013-05-27 15:41:12.677086344 +0200 +@@ -37,7 +37,7 @@ + lt_iter_t parent; + lt_list_t *stack; + lt_string_t *pos_str; +-} lt_trie_iter_t; ++}; + + /*< private >*/ + static lt_trie_node_t * diff --git a/liblangtag.spec b/liblangtag.spec new file mode 100644 index 0000000..ac4441f --- /dev/null +++ b/liblangtag.spec @@ -0,0 +1,111 @@ +Name: liblangtag +Version: 0.5.2 +Release: 1mamba +Summary: An interface library to access/deal with tags for identifying languages +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://tagoh.bitbucket.org/liblangtag/ +Source: https://bitbucket.org/tagoh/liblangtag/downloads/liblangtag-%{version}.tar.bz2 +Patch0: liblangtag-0.5.1-gcc-4.5.patch +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libffi-devel +BuildRequires: libglib-devel +BuildRequires: liblzma-devel +BuildRequires: libxml2-devel +BuildRequires: libz-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +liblangtag is an interface library to access/deal with tags for identifying languages, which is described in RFC 5646. + +%package devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config + +%description devel +This package contains libraries and header files for developing applications that use %{name}. + +%package apidocs +Group: Documentation +Summary: %{name} API documentation +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: gtk-doc + +%description apidocs +This package includes the %{name} API documentation. + +%debug_package + +%prep +%setup -q +#%patch0 -p1 + +%build +%configure --enable-gtk-doc +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_libdir}/liblangtag-gobject.so.* +%{_libdir}/liblangtag.so.* +%dir %{_libdir}/liblangtag +%{_libdir}/liblangtag/liblangtag-ext-ldml-t.a +%{_libdir}/liblangtag/liblangtag-ext-ldml-t.la +%{_libdir}/liblangtag/liblangtag-ext-ldml-t.so +%{_libdir}/liblangtag/liblangtag-ext-ldml-u.a +%{_libdir}/liblangtag/liblangtag-ext-ldml-u.la +%{_libdir}/liblangtag/liblangtag-ext-ldml-u.so +%{_libdir}/girepository-1.0/LangTag-*.typelib +%dir %{_datadir}/liblangtag/common/bcp47 +%{_datadir}/liblangtag/common/bcp47/*.xml +%dir %{_datadir}/liblangtag/common/supplemental +%{_datadir}/liblangtag/common/supplemental/likelySubtags.xml +%{_datadir}/liblangtag/language-subtag-registry.xml +%doc AUTHORS COPYING + +%files devel +%defattr(-,root,root) +%dir %{_includedir}/liblangtag +%{_includedir}/liblangtag/*.h +%{_libdir}/liblangtag-gobject.a +%{_libdir}/liblangtag-gobject.la +%{_libdir}/liblangtag-gobject.so +%{_libdir}/liblangtag.a +%{_libdir}/liblangtag.la +%{_libdir}/liblangtag.so +%{_libdir}/pkgconfig/liblangtag-gobject.pc +%{_libdir}/pkgconfig/liblangtag.pc +%{_datadir}/gir-1.0/LangTag-*.gir +%doc ChangeLog NEWS README + +%files apidocs +%defattr(-,root,root) +%dir %{_datadir}/gtk-doc/html/liblangtag +%{_datadir}/gtk-doc/html/liblangtag/* + +%changelog +* Sat Sep 07 2013 Automatic Build System 0.5.2-1mamba +- automatic update by autodist + +* Fri May 17 2013 Automatic Build System 0.5.1-1mamba +- automatic version update by autodist + +* Wed Feb 13 2013 Silvan Calarco 0.4.0-1mamba +- package created by silvan using the webbuild interface