1 | #
|
---|
2 | # spec file for package libidl
|
---|
3 | #
|
---|
4 | # Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
---|
5 | #
|
---|
6 | # All modifications and additions to the file contributed by third parties
|
---|
7 | # remain the property of their copyright owners, unless otherwise agreed
|
---|
8 | # upon. The license for this file, and modifications and additions to the
|
---|
9 | # file, is the same license as for the pristine package itself (unless the
|
---|
10 | # license for the pristine package is not an Open Source License, in which
|
---|
11 | # case the license is the MIT License). An "Open Source License" is a
|
---|
12 | # license that conforms to the Open Source Definition (Version 1.9)
|
---|
13 | # published by the Open Source Initiative.
|
---|
14 |
|
---|
15 | # Please submit bugfixes or comments via http://bugs.opensuse.org/
|
---|
16 | #
|
---|
17 |
|
---|
18 | #%define svn_url n:/src/ports/libidl
|
---|
19 | %define svn_url http://svn.netlabs.org/repos/ports/libidl/trunk
|
---|
20 | %define svn_rev 1205
|
---|
21 |
|
---|
22 | Name: libidl
|
---|
23 | %define _name libIDL
|
---|
24 | Url: http://www.gnome.org
|
---|
25 | Version: 0.8.14
|
---|
26 | Release: 4%{?dist}
|
---|
27 | #Release: 42.20
|
---|
28 | # NOTE: on upgrade to a new upstream version, change the Obsoletes from <= to < (here and in baselibs.conf)
|
---|
29 | Summary: IDL Parsing Library
|
---|
30 | Vendor: Andrew T. Veliath <andrewtv@usa.net>
|
---|
31 | License: LGPL-2.1+
|
---|
32 | Group: System/Libraries
|
---|
33 | Provides: %{name} = %{version}
|
---|
34 | # Note: we keep <= (and a rpmlint warning...) until we get a version higher than 0.8.14 (when this provides/obsoletes was introduced)
|
---|
35 | Obsoletes: %{name} <= %{version}
|
---|
36 | # bug437293
|
---|
37 | #%ifarch ppc64
|
---|
38 | #Obsoletes: libidl-64bit
|
---|
39 | #%endif
|
---|
40 | #
|
---|
41 | Source: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
|
---|
42 | #Source: http://ftp.gnome.org/pub/GNOME/sources/%{_name}/0.8/%{_name}-%{version}.tar.bz2
|
---|
43 | #Source99: baselibs.conf
|
---|
44 | Requires: glib2 libgcc1
|
---|
45 | BuildRequires: bison
|
---|
46 | BuildRequires: flex
|
---|
47 | BuildRequires: glib2-devel
|
---|
48 | BuildRequires: pkgconfig
|
---|
49 | BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
---|
50 |
|
---|
51 | %description
|
---|
52 | LibIDL is a small library for creating parse trees of CORBA
|
---|
53 | v2.2-compliant Interface Definition Language (IDL) files. IDL is a
|
---|
54 | specification for defining interfaces that can be used between
|
---|
55 | different CORBA implementations.
|
---|
56 |
|
---|
57 | %package devel
|
---|
58 | Summary: Include Files and Libraries mandatory for Development
|
---|
59 | Group: Development/Languages/Other
|
---|
60 | Requires: %{name} = %{version}-%{release}
|
---|
61 | #PreReq: %install_info_prereq
|
---|
62 | # bug437293
|
---|
63 | #%ifarch ppc64
|
---|
64 | #Obsoletes: libidl-devel-64bit
|
---|
65 | #%endif
|
---|
66 | #
|
---|
67 |
|
---|
68 | %description devel
|
---|
69 | LibIDL is a small library for creating parse trees of CORBA v2.2
|
---|
70 | compliant Interface Definition Language (IDL) files, which is a
|
---|
71 | specification for defining interfaces which can be used between
|
---|
72 | different CORBA implementations.
|
---|
73 |
|
---|
74 | %debug_package
|
---|
75 |
|
---|
76 | %prep
|
---|
77 | %if %{?svn_rev:%(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')}%{!?svn_rev):0}
|
---|
78 | %setup -q
|
---|
79 | %else
|
---|
80 | %setup -q -n "%{name}-%{version}" -Tc
|
---|
81 | svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
|
---|
82 | rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip"
|
---|
83 | (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}")
|
---|
84 | %endif
|
---|
85 |
|
---|
86 | %build
|
---|
87 | export \
|
---|
88 | LDFLAGS="-Zhigh-mem" CFLAGS="-D__OS2__ -D__EMX__" RANLIB=echo
|
---|
89 |
|
---|
90 | autoreconf -fiv
|
---|
91 |
|
---|
92 | %configure \
|
---|
93 | --prefix=%{_prefix} \
|
---|
94 | --enable-shared \
|
---|
95 | --enable-static
|
---|
96 |
|
---|
97 | # Work around ASH bug: change RANLIB="echo\n" to RANLIB="echo" in libtool
|
---|
98 | sed -e ':a;N;$!ba;s/RANLIB\=\"echo\n/RANLIB="echo/g' \
|
---|
99 | <%{_builddir}/%{?buildsubdir}/libtool \
|
---|
100 | >%{_builddir}/%{?buildsubdir}/libtool2
|
---|
101 | rm -rf %{_builddir}/%{?buildsubdir}/libtool
|
---|
102 | mv -f %{_builddir}/%{?buildsubdir}/libtool2 %{_builddir}/%{?buildsubdir}/libtool
|
---|
103 |
|
---|
104 | %{__make} %{?jobs:-j%jobs}
|
---|
105 |
|
---|
106 | %install
|
---|
107 | %makeinstall
|
---|
108 | find %{buildroot} -type f -name "*.la" -exec %{__rm} -fv {} +
|
---|
109 | mkdir -p $RPM_BUILD_ROOT%{_datadir}
|
---|
110 | # mkdir $RPM_BUILD_ROOT%{_datadir}/idl
|
---|
111 | rm -f %{buildroot}%{_datadir}/info/dir
|
---|
112 | # rm -f %{buildroot}%{_libdir}/*.lib
|
---|
113 | emxomf -o %{buildroot}%{_libdir}/IDL-2.lib %{buildroot}%{_libdir}/IDL-2.a
|
---|
114 | emximp -o %{buildroot}%{_libdir}/IDL-2_dll.lib %{buildroot}%{_libdir}/idl20.dll
|
---|
115 | emximp -o %{buildroot}%{_libdir}/IDL-20_dll.lib %{buildroot}%{_libdir}/idl20.dll
|
---|
116 | # change shell path in libIDL-config-2
|
---|
117 | sed -e 's-\#\! \/bin\/sh-#! /@unixroot/usr/bin/sh-g' \
|
---|
118 | <%{buildroot}%{_bindir}/libIDL-config-2 \
|
---|
119 | >%{buildroot}%{_bindir}/libIDL-config-1
|
---|
120 | rm -rf %{buildroot}%{_bindir}/libIDL-config-2
|
---|
121 | mv -f %{buildroot}%{_bindir}/libIDL-config-1 %{buildroot}%{_bindir}/libIDL-config-2
|
---|
122 | chmod 755 %{buildroot}%{_bindir}/libIDL-config-2
|
---|
123 |
|
---|
124 | %clean
|
---|
125 | rm -rf $RPM_BUILD_ROOT
|
---|
126 |
|
---|
127 | # %post -n libIDL-2-0 -p /sbin/ldconfig
|
---|
128 |
|
---|
129 | # %postun -n libIDL-2-0 -p /sbin/ldconfig
|
---|
130 |
|
---|
131 | %post devel
|
---|
132 | ### @todo Replace with ``%%info_post %%{_name}2.info`` when its available.
|
---|
133 | if [ -f %{_infodir}/%{_name}2.info ]; then
|
---|
134 | %{_sbindir}/install-info.exe %{_infodir}/%{_name}2.info %{_infodir}/dir
|
---|
135 | fi
|
---|
136 |
|
---|
137 | %postun devel
|
---|
138 | ### @todo Replace with ``%%info_postun %%{_name}2.info`` when its available.
|
---|
139 | if [ $1 -eq 0 ]; then
|
---|
140 | if [ -f %{_infodir}/%{_name}2.info ]; then
|
---|
141 | %{_sbindir}/install-info.exe --delete %{_infodir}/%{_name}2.info %{_infodir}/dir
|
---|
142 | fi
|
---|
143 | fi
|
---|
144 |
|
---|
145 | %files
|
---|
146 | %defattr(-,root,root)
|
---|
147 | %doc COPYING ChangeLog AUTHORS README* NEWS BUGS tstidl.c
|
---|
148 | %{_libdir}/idl*.dll
|
---|
149 | # generic directory for idl files
|
---|
150 | # %dir %{_datadir}/idl
|
---|
151 |
|
---|
152 | %files devel
|
---|
153 | %defattr(-,root,root)
|
---|
154 | %{_bindir}/%{_name}-config-2
|
---|
155 | %{_includedir}/*
|
---|
156 | %doc %{_infodir}/%{_name}2.info
|
---|
157 | %{_libdir}/pkgconfig/*.pc
|
---|
158 | %{_libdir}/IDL-2.a
|
---|
159 | %{_libdir}/IDL-2_dll.a
|
---|
160 | %{_libdir}/IDL-20_dll.a
|
---|
161 | %{_libdir}/IDL-2.lib
|
---|
162 | %{_libdir}/IDL-2_dll.lib
|
---|
163 | %{_libdir}/IDL-20_dll.lib
|
---|
164 |
|
---|
165 | %changelog
|
---|
166 | * Thu Mar 10 2016 Valery Sedletski <_valerius@mail.ru> - 0.8.14-4
|
---|
167 | - fixed permissions for libIDL-config-2 to be 755
|
---|
168 | - fixed Requires directive for 'devel' package to depend on %{name} = %{version}-%{release}
|
---|
169 |
|
---|
170 | * Mon Feb 29 2016 Valery Sedletski <_valerius@mail.ru> - 0.8.14-3
|
---|
171 | - Added needed Requires and BuildRequires directives
|
---|
172 |
|
---|
173 | * Thu Feb 18 2016 Valery Sedletski - <_valerius@mail.ru> 0.8.14-2
|
---|
174 | - changed libs format to both a.out and OMF
|
---|
175 | - added debug package
|
---|
176 | - added OS/2 DLL shortname
|
---|
177 |
|
---|
178 | * Thu Dec 03 2015 Valery Sedletski - <_valerius@mail.ru> Initial OS/2 build
|
---|
179 | - Initial OS/2 port
|
---|