From 0d4f4c9b4d0479314b62ad447402a4671eeeeec8 Mon Sep 17 00:00:00 2001 From: David Tardon Date: Oct 11 2012 11:22:09 +0000 Subject: initial import --- diff --git a/.gitignore b/.gitignore index e69de29..97873e5 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/liblangtag-0.3.tar.bz2 diff --git a/liblangtag.spec b/liblangtag.spec new file mode 100644 index 0000000..d39a630 --- /dev/null +++ b/liblangtag.spec @@ -0,0 +1,97 @@ +Name: liblangtag +Version: 0.3 +Release: 1%{?dist} +Summary: An interface library to access tags for identifying languages + +Group: System Environment/Libraries +License: LGPLv3+ +URL: https://github.com/tagoh/liblangtag/ +Source0: https://github.com/downloads/tagoh/%{name}/%{name}-%{version}.tar.bz2 + +BuildRequires: glib2-devel +BuildRequires: gtk-doc +BuildRequires: libxml2-devel + +%description +%{name} is an interface library to access tags for identifying +languages. + +Features: +* several subtag registry database supports: + - language + - extlang + - script + - region + - variant + - extension + - grandfathered + - redundant +* handling of the language tags + - parser + - matching + - canonicalizing + +%package devel +Summary: Development files for %{name} +Group: Development/Libraries +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + +%package doc +Summary: Documentation of %{name} API +Group: Documentation +BuildArch: noarch + +%description doc +The %{name}-doc package contains documentation files for %{name}. + + +%prep +%setup -q + + +%build +%configure --disable-static --enable-shared --disable-introspection +sed -i \ + -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \ + -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \ + libtool +make %{?_smp_mflags} + + +%install +make install DESTDIR=%{buildroot} +rm -f %{buildroot}/%{_libdir}/*.la %{buildroot}/%{_libdir}/%{name}/*.la + + +%post -p /sbin/ldconfig + + +%postun -p /sbin/ldconfig + + +%files +%doc AUTHORS COPYING NEWS README +%{_libdir}/%{name}.so.* +%{_libdir}/%{name}-gobject.so.* +%{_libdir}/%{name}/*.so +%{_datadir}/%{name} + +%files devel +%{_includedir}/%{name} +%{_libdir}/%{name}.so +%{_libdir}/%{name}-gobject.so +%{_libdir}/pkgconfig/%{name}.pc +%{_libdir}/pkgconfig/%{name}-gobject.pc + +%files doc +%doc COPYING +%{_datadir}/gtk-doc/html/%{name} + + +%changelog +* Sun Sep 09 2012 David Tardon - 0.3-1 +- initial import diff --git a/sources b/sources index e69de29..99077fd 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +b86997ac89a4a66e8cfc0a79b0af17e3 liblangtag-0.3.tar.bz2