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