]> git.pld-linux.org Git - SPECS.git/blob - libIDL.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / libIDL.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # don't build static library
4 #
5 Summary:        Library for parsing IDL (Interface Definition Language)
6 Summary(pl.UTF-8):      Biblioteka do parsowania IDL (języka definicji interfejsu)
7 Name:           libIDL
8 Version:        0.8.14
9 Release:        8
10 License:        LGPL v2+
11 Group:          Libraries
12 Source0:        http://ftp.gnome.org/pub/GNOME/sources/libIDL/0.8/%{name}-%{version}.tar.bz2
13 # Source0-md5:  bb8e10a218fac793a52d404d14adedcb
14 Patch0:         %{name}-info.patch
15 URL:            https://projects-old.gnome.org/ORBit2/
16 BuildRequires:  autoconf
17 BuildRequires:  automake >= 1:1.9
18 BuildRequires:  bison
19 BuildRequires:  flex
20 BuildRequires:  glib2-devel >= 1:2.14.1
21 BuildRequires:  libtool
22 BuildRequires:  pkgconfig >= 1:0.8
23 BuildRequires:  texinfo
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 libIDL is a library for parsing IDL (Interface Definition Language).
28 It can be used for both COM-style and CORBA-style IDL.
29
30 %description -l pl.UTF-8
31 libIDL to biblioteka do parsowania IDL (Interface Definition Language
32 - języka definicji interfejsu). Może być używana z IDL w stylu COM lub
33 CORBA.
34
35 %package devel
36 Summary:        Header files for libIDL
37 Summary(pl.UTF-8):      Pliki nagłówkowe libIDL
38 Group:          Development/Libraries
39 Requires:       %{name} = %{version}-%{release}
40 Requires:       glib2-devel >= 1:2.14.1
41
42 %description devel
43 libIDL is a library for parsing IDL (Interface Definition Language).
44 It can be used for both COM-style and CORBA-style IDL.
45
46 This package contains the header files and libraries needed to write
47 or compile programs that use libIDL.
48
49 %description devel -l pl.UTF-8
50 Ten pakiet zawiera pliki nagłówkowe potrzebne do kompilowania
51 programów używających libIDL.
52
53 %package static
54 Summary:        Static libIDL libraries
55 Summary(pl.UTF-8):      Statyczne biblioteki libIDL
56 Group:          Development/Libraries
57 Requires:       %{name}-devel = %{version}-%{release}
58
59 %description static
60 Static libIDL libraries.
61
62 %description static -l pl.UTF-8
63 Statyczne biblioteki libIDL.
64
65 %prep
66 %setup -q
67 %patch0 -p1
68
69 %build
70 %{__libtoolize}
71 %{__aclocal}
72 %{__autoconf}
73 %{__automake}
74 %configure \
75         --disable-silent-rules \
76         %{!?with_static_libs:--disable-static}
77 %{__make}
78
79 %install
80 rm -rf $RPM_BUILD_ROOT
81
82 %{__make} install \
83         DESTDIR=$RPM_BUILD_ROOT
84
85 # obsoleted by pkg-config
86 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libIDL-2.la
87
88 %clean
89 rm -rf $RPM_BUILD_ROOT
90
91 %post   -p /sbin/ldconfig
92 %postun -p /sbin/ldconfig
93
94 %post   devel -p /sbin/postshell
95 -/usr/sbin/fix-info-dir -c %{_infodir}
96
97 %postun devel -p /sbin/postshell
98 -/usr/sbin/fix-info-dir -c %{_infodir}
99
100 %files
101 %defattr(644,root,root,755)
102 %doc AUTHORS ChangeLog README NEWS
103 %attr(755,root,root) %{_libdir}/libIDL-2.so.*.*.*
104 %attr(755,root,root) %ghost %{_libdir}/libIDL-2.so.0
105
106 %files devel
107 %defattr(644,root,root,755)
108 %attr(755,root,root) %{_bindir}/libIDL-config-2
109 %attr(755,root,root) %{_libdir}/libIDL-2.so
110 %{_includedir}/libIDL-2.0
111 %{_pkgconfigdir}/libIDL-2.0.pc
112 %{_infodir}/libIDL2.info*
113
114 %if %{with static_libs}
115 %files static
116 %defattr(644,root,root,755)
117 %{_libdir}/libIDL-2.a
118 %endif
This page took 0.84147 seconds and 3 git commands to generate.