source: spec/trunk/SPECS/libidl.spec@ 788

Last change on this file since 788 was 687, checked in by valerius, 10 years ago

spec: libidl: Fixed libidl-devel from libidl dependency.

File size: 6.0 KB
Line 
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
22Name: libidl
23%define _name libIDL
24Url: http://www.gnome.org
25Version: 0.8.14
26Release: 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)
29Summary: IDL Parsing Library
30Vendor: Andrew T. Veliath <andrewtv@usa.net>
31License: LGPL-2.1+
32Group: System/Libraries
33Provides: %{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)
35Obsoletes: %{name} <= %{version}
36# bug437293
37#%ifarch ppc64
38#Obsoletes: libidl-64bit
39#%endif
40#
41Source: %{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
44Requires: glib2 libgcc1
45BuildRequires: bison
46BuildRequires: flex
47BuildRequires: glib2-devel
48BuildRequires: pkgconfig
49BuildRoot: %{_tmppath}/%{name}-%{version}-build
50
51%description
52LibIDL is a small library for creating parse trees of CORBA
53v2.2-compliant Interface Definition Language (IDL) files. IDL is a
54specification for defining interfaces that can be used between
55different CORBA implementations.
56
57%package devel
58Summary: Include Files and Libraries mandatory for Development
59Group: Development/Languages/Other
60Requires: %{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
69LibIDL is a small library for creating parse trees of CORBA v2.2
70compliant Interface Definition Language (IDL) files, which is a
71specification for defining interfaces which can be used between
72different 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
81svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
82rm -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
87export \
88 LDFLAGS="-Zhigh-mem" CFLAGS="-D__OS2__ -D__EMX__" RANLIB=echo
89
90autoreconf -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
98sed -e ':a;N;$!ba;s/RANLIB\=\"echo\n/RANLIB="echo/g' \
99 <%{_builddir}/%{?buildsubdir}/libtool \
100 >%{_builddir}/%{?buildsubdir}/libtool2
101rm -rf %{_builddir}/%{?buildsubdir}/libtool
102mv -f %{_builddir}/%{?buildsubdir}/libtool2 %{_builddir}/%{?buildsubdir}/libtool
103
104%{__make} %{?jobs:-j%jobs}
105
106%install
107%makeinstall
108find %{buildroot} -type f -name "*.la" -exec %{__rm} -fv {} +
109mkdir -p $RPM_BUILD_ROOT%{_datadir}
110# mkdir $RPM_BUILD_ROOT%{_datadir}/idl
111rm -f %{buildroot}%{_datadir}/info/dir
112# rm -f %{buildroot}%{_libdir}/*.lib
113emxomf -o %{buildroot}%{_libdir}/IDL-2.lib %{buildroot}%{_libdir}/IDL-2.a
114emximp -o %{buildroot}%{_libdir}/IDL-2_dll.lib %{buildroot}%{_libdir}/idl20.dll
115emximp -o %{buildroot}%{_libdir}/IDL-20_dll.lib %{buildroot}%{_libdir}/idl20.dll
116# change shell path in libIDL-config-2
117sed -e 's-\#\! \/bin\/sh-#! /@unixroot/usr/bin/sh-g' \
118 <%{buildroot}%{_bindir}/libIDL-config-2 \
119 >%{buildroot}%{_bindir}/libIDL-config-1
120rm -rf %{buildroot}%{_bindir}/libIDL-config-2
121mv -f %{buildroot}%{_bindir}/libIDL-config-1 %{buildroot}%{_bindir}/libIDL-config-2
122chmod 755 %{buildroot}%{_bindir}/libIDL-config-2
123
124%clean
125rm -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.
133if [ -f %{_infodir}/%{_name}2.info ]; then
134 %{_sbindir}/install-info.exe %{_infodir}/%{_name}2.info %{_infodir}/dir
135fi
136
137%postun devel
138### @todo Replace with ``%%info_postun %%{_name}2.info`` when its available.
139if [ $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
143fi
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
Note: See TracBrowser for help on using the repository browser.