commit dc5b8796db8114d6e3bf27249f82e70b47d17d7e Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 10:56:36 2019 -0400 Package init diff --git a/libIDL-0.8.14.tar.bz2 b/libIDL-0.8.14.tar.bz2 new file mode 100644 index 0000000..9109c69 Binary files /dev/null and b/libIDL-0.8.14.tar.bz2 differ diff --git a/libIDL-0.8.6-multilib.patch b/libIDL-0.8.6-multilib.patch new file mode 100644 index 0000000..769cbf3 --- /dev/null +++ b/libIDL-0.8.6-multilib.patch @@ -0,0 +1,39 @@ +--- libIDL-0.8.6/libIDL-config-2.in.multilib 2002-09-19 21:05:16.000000000 -0400 ++++ libIDL-0.8.6/libIDL-config-2.in 2006-05-23 14:52:15.000000000 -0400 +@@ -1,8 +1,11 @@ + #! /bin/sh + +-prefix=@prefix@ +-exec_prefix=@exec_prefix@ ++name=libIDL-2.0 ++prefix=`pkg-config --variable prefix $name` ++exec_prefix=`pkg-config --variable exec_prefix $name` + exec_prefix_set=no ++includedir=`pkg-config --variable includedir $name` ++libdir=`pkg-config --variable libdir $name` + + usage() + { +@@ -46,11 +49,11 @@ + echo_exec_prefix=yes + ;; + --version) +- echo @LIBIDL_VERSION@ ++ pkg-config --modversion $name + exit 0 + ;; + --cflags) +- includes="-I@includedir@/libIDL-2.0" ++ includes="-I$includedir/libIDL-2.0" + echo_cflags=yes + ;; + --libs) +@@ -75,7 +78,7 @@ + all_flags="$all_flags $includes $cflags `pkg-config --cflags glib-2.0`" + fi + if test "$echo_libs" = "yes"; then +- all_flags="$all_flags -L@libdir@ -lIDL-2 `pkg-config --libs glib-2.0`" ++ all_flags="$all_flags -L$libdir -lIDL-2 `pkg-config --libs glib-2.0`" + fi + + # Straight out any possible duplicates, but be careful to diff --git a/libIDL.spec b/libIDL.spec new file mode 100644 index 0000000..6ebbd34 --- /dev/null +++ b/libIDL.spec @@ -0,0 +1,65 @@ +Name: libIDL +Version: 0.8.14 +Release: 17 +URL: http://ftp.gnome.org/pub/gnome/sources/libIDL/0.8 +Source0: http://download.gnome.org/sources/libIDL/0.8/%{name}-%{version}.tar.bz2 +Patch0: libIDL-0.8.6-multilib.patch +License: LGPLv2+ +BuildRequires: gcc flex bison +BuildRequires: glib2-devel >= 2.0 +BuildRequires: pkgconfig >= 0.8 +Summary: This is a library for Interface Definition Language. + +%description +libIDL is a library licensed under the GNU LGPL for creating trees +of CORBA Interface Definition Language (IDL) files, which is a +specification for defining portable interfaces. + +%package devel +Summary: Development library package for libIDL. +Requires: glib2-devel >= 2.0 +Requires: pkgconfig >= 1:0.8 +Requires: %{name} = %{version}-%{release} + +%description devel +The devel package provide header files and dynamic libraries for libIDL. + +%prep +%setup -q -n %{name}-%{version} +%patch0 -p1 -b .multilib + +%build +%configure +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT +rm -f $RPM_BUILD_ROOT%{_libdir}/*a +rm -f $RPM_BUILD_ROOT%{_infodir}/dir + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%preun devel +if [ $1 = 0 ]; then + /sbin/install-info --quiet --delete %{_infodir}/libIDL2.info.gz %{_infodir}/dir || : +fi + +%post devel +/sbin/install-info --quiet %{_infodir}/libIDL2.info.gz %{_infodir}/dir || : + +%files +%doc AUTHORS COPYING README NEWS BUGS MAINTAINERS +%{_libdir}/libIDL-*.so.* + +%files devel +%{_infodir}/libIDL2.info.gz +%{_libdir}/pkgconfig/libIDL-*.pc +%{_libdir}/libIDL-*.so +%{_bindir}/libIDL-config-2 +%{_includedir}/libIDL-2.0/ + +%changelog +* Mon Aug 26 2019 openEuler Buildteam - 0.8.14-17 +- Package init