Package init
This commit is contained in:
commit
dc5b8796db
BIN
libIDL-0.8.14.tar.bz2
Normal file
BIN
libIDL-0.8.14.tar.bz2
Normal file
Binary file not shown.
39
libIDL-0.8.6-multilib.patch
Normal file
39
libIDL-0.8.6-multilib.patch
Normal file
@ -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
|
||||||
65
libIDL.spec
Normal file
65
libIDL.spec
Normal file
@ -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 <buildteam@openeuler.org> - 0.8.14-17
|
||||||
|
- Package init
|
||||||
Loading…
x
Reference in New Issue
Block a user