|
|
|
@ -1,3 +1,6 @@
|
|
|
|
|
%global girname LangTag
|
|
|
|
|
%global girapiversion 0.5
|
|
|
|
|
|
|
|
|
|
Name: liblangtag
|
|
|
|
|
Version: 0.5.3
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
@ -14,6 +17,7 @@ BuildRequires: glibc-common
|
|
|
|
|
BuildRequires: gtk-doc
|
|
|
|
|
BuildRequires: libtool
|
|
|
|
|
BuildRequires: pkgconfig(gobject-2.0)
|
|
|
|
|
BuildRequires: pkgconfig(gobject-introspection-1.0)
|
|
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
@ -56,13 +60,13 @@ The %{name}-doc package contains documentation files for %{name}.
|
|
|
|
|
%setup -q -a 1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%configure --disable-static --enable-shared --disable-introspection
|
|
|
|
|
%configure --disable-static --enable-shared --enable-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} V=1 \
|
|
|
|
|
LD_LIBRARY_PATH=`pwd`/liblangtag/.libs${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
|
|
|
|
|
export LD_LIBRARY_PATH=`pwd`/liblangtag/.libs:`pwd`/liblangtag-gobject/.libs${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
|
|
|
|
|
make %{?_smp_mflags} V=1
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
@ -75,13 +79,18 @@ rm -f %{buildroot}/%{_libdir}/*.la %{buildroot}/%{_libdir}/%{name}/*.la
|
|
|
|
|
%files
|
|
|
|
|
%doc AUTHORS COPYING NEWS README
|
|
|
|
|
%{_libdir}/%{name}.so.*
|
|
|
|
|
%{_libdir}/%{name}-gobject.so.*
|
|
|
|
|
%{_libdir}/%{name}/*.so
|
|
|
|
|
%{_libdir}/girepository-1.0/%{girname}-%{girapiversion}.typelib
|
|
|
|
|
%{_datadir}/%{name}
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%{_includedir}/%{name}
|
|
|
|
|
%{_libdir}/%{name}.so
|
|
|
|
|
%{_libdir}/%{name}-gobject.so
|
|
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
|
|
%{_libdir}/pkgconfig/%{name}-gobject.pc
|
|
|
|
|
%{_datadir}/gir-1.0/%{girname}-%{girapiversion}.gir
|
|
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
|
%doc COPYING
|
|
|
|
|