]> git.pld-linux.org Git - SPECS.git/blob - eldbus.spec
SPECS updated Sat 31 Jul 21:27:02 CEST 2021
[SPECS.git] / eldbus.spec
1 # NOTE: for versions >= 1.8 see efl.spec
2 #
3 # Conditional build:
4 %bcond_without  static_libs     # don't build static library
5 #
6 %define         ecore_ver       1.7.10
7 %define         eina_ver        1.7.10
8
9 Summary:        Easy access to D-Bus from EFL applications
10 Summary(pl.UTF-8):      Łatwy dostęp do usługi D-Bus z aplikacji EFL
11 Name:           eldbus
12 Version:        1.7.10
13 Release:        2
14 License:        LGPL v2.1+
15 Group:          Libraries
16 Source0:        http://download.enlightenment.org/releases/%{name}-%{version}.tar.bz2
17 # Source0-md5:  61fa0a1e555fa8eba3e6f24f8af80618
18 Patch0:         %{name}-link.patch
19 URL:            http://git.enlightenment.org/legacy/eldbus.git/
20 BuildRequires:  autoconf >= 2.60
21 BuildRequires:  automake >= 1.6
22 BuildRequires:  dbus-devel
23 BuildRequires:  ecore-devel >= %{ecore_ver}
24 BuildRequires:  eina-devel >= %{eina_ver}
25 BuildRequires:  libtool
26 BuildRequires:  pkgconfig >= 1:0.22
27 Requires:       ecore >= %{ecore_ver}
28 Requires:       eina >= %{eina_ver}
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 %undefine       __cxx
32
33 %description
34 Eldbus provides easy access to D-Bus from EFL applications.
35
36 Eldbus allows connecting to both system and session buses acting as
37 both client and service roles.
38
39 %description -l pl.UTF-8
40 Eldbus zapewnia łatwy dostęp do usługi D-Bus z aplikacji EFL.
41
42 Eldbus pozwala na łączenie się z szyną systemową lub sesyjną, zarówno
43 w roli klienta, jak i usługi.
44
45 %package devel
46 Summary:        Header files for eldbus library
47 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki eldbus
48 Group:          Development/Libraries
49 Requires:       %{name} = %{version}-%{release}
50 Requires:       dbus-devel
51 Requires:       ecore-devel >= %{ecore_ver}
52 Requires:       eina-devel >= %{eina_ver}
53
54 %description devel
55 Header files for eldbus library.
56
57 %description devel -l pl.UTF-8
58 Pliki nagłówkowe biblioteki eldbus.
59
60 %package static
61 Summary:        Static eldbus library
62 Summary(pl.UTF-8):      Statyczna biblioteka eldbus
63 Group:          Development/Libraries
64 Requires:       %{name}-devel = %{version}-%{release}
65
66 %description static
67 Static eldbus library.
68
69 %description static -l pl.UTF-8
70 Statyczna biblioteka eldbus.
71
72 %prep
73 %setup -q
74 %patch0 -p1
75
76 %build
77 %{__libtoolize}
78 %{__aclocal} -I m4
79 %{__autoconf}
80 %{__autoheader}
81 %{__automake}
82 %configure \
83         --disable-silent-rules \
84         %{?with_static_libs:--enable-static}
85 %{__make}
86
87 %install
88 rm -rf $RPM_BUILD_ROOT
89
90 %{__make} install \
91         DESTDIR=$RPM_BUILD_ROOT
92
93 # obsoleted by pkg-config
94 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libeldbus.la
95
96 %clean
97 rm -rf $RPM_BUILD_ROOT
98
99 %post   -p /sbin/ldconfig
100 %postun -p /sbin/ldconfig
101
102 %files
103 %defattr(644,root,root,755)
104 %doc AUTHORS COPYING README
105 %attr(755,root,root) %{_libdir}/libeldbus.so.*.*.*
106 %attr(755,root,root) %ghost %{_libdir}/libeldbus.so.1
107
108 %files devel
109 %defattr(644,root,root,755)
110 %attr(755,root,root) %{_bindir}/eldbus-codegen
111 %attr(755,root,root) %{_libdir}/libeldbus.so
112 %{_includedir}/eldbus-1
113 %{_pkgconfigdir}/eldbus.pc
114
115 %if %{with static_libs}
116 %files static
117 %defattr(644,root,root,755)
118 %{_libdir}/libeldbus.a
119 %endif
This page took 0.682732 seconds and 3 git commands to generate.