3 %bcond_without apidocs # don't build documentation
4 %bcond_without static_libs # don't build static library
6 Summary: edelib library for EDE
7 Summary(pl.UTF-8): Biblioteka pomocnicza dla EDE
13 Source0: http://downloads.sourceforge.net/ede/%{name}-%{version}.tar.gz
14 # Source0-md5: 4964c7395a097bf747ebf9da1f836e6e
15 Patch0: %{name}-ksh.patch
16 Patch1: %{name}-am.patch
17 URL: http://equinox-project.org/
18 BuildRequires: autoconf >= 2.63
19 BuildRequires: automake >= 1:1.10
20 BuildRequires: dbus-devel
21 %{?with_apidocs:BuildRequires: doxygen}
22 BuildRequires: fltk-devel >= 1.1.7
23 BuildRequires: libtool >= 2:2.2
24 BuildRequires: pkgconfig
25 BuildRequires: tar >= 1:1.22
26 Requires: glib2 >= 1:2.26.0
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 edelib is small and portable C++ library for EDE (Equinox Desktop
33 Aims are to provide enough background for easier EDE components
34 construction and development.
36 %description -l pl.UTF-8
37 edelib jest małą przenośną biblioteką C++ dla środowiska EDE.
39 Jej celem jest dostarczenie wystarczającej podstawy dla konstruowania
40 i rozwijania komponentów środowiska EDE.
43 Summary: edelib header files
44 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki edelib
46 Group: Development/Libraries
47 Requires: %{name} = %{version}-%{release}
50 Header files for edelib-based programs development.
52 %description devel -l pl.UTF-8
53 Pliki nagłówkowe do tworzenia programów opartych o edelib.
56 Summary: Static edelib library
57 Summary(pl.UTF-8): Statyczna biblioteka edelib
59 Group: Development/Libraries
60 Requires: %{name}-devel = %{version}-%{release}
63 Static edelib library.
65 %description static -l pl.UTF-8
66 Statyczna biblioteka edelib.
69 Summary: edelib API documentation
70 Summary(pl.UTF-8): Dokumentacja API biblioteki edelib
74 edelib API documentation.
76 %description apidocs -l pl.UTF-8
77 Dokumentacja API biblioteki edelib.
91 %{!?with_static_libs:--disable-static} \
100 rm -rf $RPM_BUILD_ROOT
103 DESTDIR=$RPM_BUILD_ROOT
105 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
108 rm -rf $RPM_BUILD_ROOT
110 %post -p /sbin/ldconfig
111 %postun -p /sbin/ldconfig
114 %defattr(644,root,root,755)
115 %doc ChangeLog README
116 %attr(755,root,root) %{_bindir}/*
117 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
118 %attr(755,root,root) %ghost %{_libdir}/libedelib.so.2
119 %attr(755,root,root) %ghost %{_libdir}/libedelib_dbus.so.2
120 %attr(755,root,root) %ghost %{_libdir}/libedelib_gui.so.2
121 %dir %{_libdir}/edelib
122 %{_libdir}/edelib/sslib
125 %defattr(644,root,root,755)
126 %attr(755,root,root) %{_libdir}/libedelib.so
127 %attr(755,root,root) %{_libdir}/libedelib_dbus.so
128 %attr(755,root,root) %{_libdir}/libedelib_gui.so
129 %{_pkgconfigdir}/*.pc
130 %{_includedir}/edelib
132 %if %{with static_libs}
134 %defattr(644,root,root,755)
140 %defattr(644,root,root,755)