]>
Commit | Line | Data |
---|---|---|
5d4a1861 KK |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static library | |
4 | # | |
15bac222 | 5 | %define ecore_ver 0.9.9.044 |
6 | %define edje_ver 0.9.9.044 | |
7 | %define efreet_ver 0.5.0.044 | |
8 | %define emotion_ver 0.1.0.043 | |
9 | %define epsilon_ver 0.3.0.013 | |
10 | %define evas_ver 0.9.9.044 | |
11 | %define _snap 20080813 | |
79422052 | 12 | |
2f85ead4 | 13 | Summary: Enlightenment Widget Library |
4aa4f601 | 14 | Summary(pl.UTF-8): Biblioteka widgetów Enlightenmenta (Enlightenment Widget Library) |
2f85ead4 | 15 | Name: ewl |
15bac222 | 16 | Version: 0.5.2.043 |
17 | Release: 0.%{_snap}.1 | |
2f85ead4 | 18 | License: BSD |
bb4aaab4 | 19 | Group: Libraries |
15bac222 | 20 | Source0: %{name}-%{version}-%{_snap}.tar.bz2 |
21 | # Source0-md5: bc0e325e0982fbb2246cfc69ab2beb62 | |
599790b3 | 22 | URL: http://enlightenment.org/p.php?p=about/libs/ewl |
741adf82 JB |
23 | BuildRequires: autoconf >= 2.52 |
24 | BuildRequires: automake >= 1.6 | |
4f8337e8 | 25 | # ecore-file ecore-txt |
79422052 BZ |
26 | BuildRequires: ecore-devel >= %{ecore_ver} |
27 | BuildRequires: edje >= %{edje_ver} | |
28 | BuildRequires: edje-devel >= %{edje_ver} | |
29 | BuildRequires: efreet-devel >= %{efreet_ver} | |
30 | BuildRequires: emotion-devel >= %{emotion_ver} | |
31 | BuildRequires: epsilon-devel >= %{epsilon_ver} | |
32 | BuildRequires: evas-devel >= %{evas_ver} | |
2f85ead4 | 33 | BuildRequires: libtool |
4f8337e8 JB |
34 | BuildRequires: pkgconfig |
35 | BuildRequires: xorg-lib-libX11-devel | |
93f2afb5 | 36 | Requires: %{name}-libs = %{version}-%{release} |
2f85ead4 | 37 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
38 | ||
0dfafa11 | 39 | %undefine __cxx |
40 | ||
2f85ead4 | 41 | %description |
42 | EWL is a widget library which uses the E Foundation Libraries (EFL). | |
43 | ||
89433bb5 JR |
44 | %description -l pl.UTF-8 |
45 | EWL to biblioteka widgetów używająca EFL (E Foundation Libraries - | |
b74cb4c8 JB |
46 | podstawowych bibliotek Englightenmenta). |
47 | ||
93f2afb5 | 48 | %package libs |
49 | Summary: EWL library | |
4aa4f601 | 50 | Summary(pl.UTF-8): Biblioteka EWL |
bb4aaab4 | 51 | Group: Libraries |
79422052 BZ |
52 | Requires: ecore-file >= %{ecore_ver} |
53 | Requires: ecore-txt >= %{ecore_ver} | |
54 | Requires: edje-libs >= %{edje_ver} | |
55 | Requires: efreet >= %{efreet_ver} | |
56 | Requires: emotion >= %{emotion_ver} | |
57 | Requires: epsilon-libs >= %{epsilon_ver} | |
58 | Requires: evas >= %{evas_ver} | |
93f2afb5 | 59 | |
60 | %description libs | |
61 | EWL library. | |
62 | ||
89433bb5 | 63 | %description libs -l pl.UTF-8 |
bb4aaab4 JB |
64 | Biblioteka EWL. |
65 | ||
2f85ead4 | 66 | %package devel |
b74cb4c8 | 67 | Summary: EWL header files and test programs |
4aa4f601 | 68 | Summary(pl.UTF-8): Pliki nagłówkowe i programy testowe dla biblioteki EWL |
2f85ead4 | 69 | Group: Development/Libraries |
93f2afb5 | 70 | Requires: %{name}-libs = %{version}-%{release} |
4f8337e8 | 71 | # ecore-file ecore-txt |
79422052 BZ |
72 | Requires: ecore-devel >= %{ecore_ver} |
73 | Requires: edje-devel >= %{edje_ver} | |
74 | Requires: efreet-devel >= %{efreet_ver} | |
75 | Requires: emotion-devel >= %{emotion_ver} | |
76 | Requires: epsilon-devel >= %{epsilon_ver} | |
77 | Requires: evas-devel >= %{evas_ver} | |
2f85ead4 | 78 | |
79 | %description devel | |
b74cb4c8 JB |
80 | EWL header files and test programs. |
81 | ||
89433bb5 JR |
82 | %description devel -l pl.UTF-8 |
83 | Pliki nagłówkowe i programy testowe dla biblioteki EWL. | |
2f85ead4 | 84 | |
85 | %package static | |
b74cb4c8 | 86 | Summary: Static EWL library |
4aa4f601 | 87 | Summary(pl.UTF-8): Statyczna biblioteka EWL |
2f85ead4 | 88 | Group: Development/Libraries |
b74cb4c8 | 89 | Requires: %{name}-devel = %{version}-%{release} |
2f85ead4 | 90 | |
91 | %description static | |
b74cb4c8 JB |
92 | Static EWL library. |
93 | ||
89433bb5 | 94 | %description static -l pl.UTF-8 |
b74cb4c8 | 95 | Statyczna biblioteka EWL. |
2f85ead4 | 96 | |
97 | %prep | |
15bac222 | 98 | %setup -q -n %{name}-%{version}-%{_snap} |
2f85ead4 | 99 | |
100 | %build | |
15bac222 | 101 | %{__libtoolize} |
102 | %{__aclocal} -I m4 | |
103 | %{__autoconf} | |
104 | %{__autoheader} | |
105 | %{__automake} | |
5d4a1861 KK |
106 | %configure \ |
107 | %{!?with_static_libs:--disable-static} | |
2f85ead4 | 108 | %{__make} |
109 | ||
110 | %install | |
111 | rm -rf $RPM_BUILD_ROOT | |
b74cb4c8 | 112 | |
2f85ead4 | 113 | %{__make} install \ |
114 | DESTDIR=$RPM_BUILD_ROOT | |
115 | ||
4f8337e8 JB |
116 | rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*/*.{la,a} |
117 | ||
2f85ead4 | 118 | %clean |
119 | rm -rf $RPM_BUILD_ROOT | |
120 | ||
bb4aaab4 JB |
121 | %post libs -p /sbin/ldconfig |
122 | %postun libs -p /sbin/ldconfig | |
2f85ead4 | 123 | |
124 | %files | |
125 | %defattr(644,root,root,755) | |
741adf82 | 126 | %doc AUTHORS COPYING ChangeLog README |
4f8337e8 | 127 | %attr(755,root,root) %{_bindir}/ewl_config |
93f2afb5 | 128 | %attr(755,root,root) %{_bindir}/ewl_test |
4f8337e8 JB |
129 | %attr(755,root,root) %{_bindir}/ewl_embed_test |
130 | %attr(755,root,root) %{_bindir}/ewl_simple_test | |
131 | %dir %{_sysconfdir}/ewl | |
132 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ewl/ewl.cfg | |
133 | %dir %{_libdir}/%{name}/tests | |
134 | %attr(755,root,root) %{_libdir}/%{name}/tests/ewl_*.so | |
2f85ead4 | 135 | %{_datadir}/%{name} |
136 | ||
93f2afb5 | 137 | %files libs |
138 | %defattr(644,root,root,755) | |
741adf82 JB |
139 | %attr(755,root,root) %{_libdir}/libewl.so.*.*.* |
140 | %attr(755,root,root) %ghost %{_libdir}/libewl.so.1 | |
1925ae5a | 141 | %dir %{_libdir}/%{name} |
4f8337e8 JB |
142 | %dir %{_libdir}/%{name}/engines |
143 | # missing -avoid-version | |
144 | %attr(755,root,root) %{_libdir}/%{name}/engines/*.so* | |
145 | %dir %{_libdir}/%{name}/plugins | |
146 | %attr(755,root,root) %{_libdir}/%{name}/plugins/ewl_io_manager_*.so | |
93f2afb5 | 147 | |
2f85ead4 | 148 | %files devel |
149 | %defattr(644,root,root,755) | |
b74cb4c8 JB |
150 | %attr(755,root,root) %{_libdir}/libewl.so |
151 | %{_libdir}/libewl.la | |
152 | %dir %{_includedir}/ewl | |
153 | %{_includedir}/ewl/Ewl.h | |
4f8337e8 | 154 | %{_includedir}/ewl/Ewl_Test.h |
b74cb4c8 JB |
155 | %{_includedir}/ewl/ewl_*.h |
156 | %{_pkgconfigdir}/ewl.pc | |
2f85ead4 | 157 | |
5d4a1861 | 158 | %if %{with static_libs} |
2f85ead4 | 159 | %files static |
160 | %defattr(644,root,root,755) | |
161 | %{_libdir}/libewl.a | |
5d4a1861 | 162 | %endif |