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