]>
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 |
a4bcdd10 | 8 | Version: 0.0.4.007 |
0a55fae5 | 9 | Release: 2 |
2f85ead4 | 10 | License: BSD |
bb4aaab4 | 11 | Group: Libraries |
b459b7f9 | 12 | Source0: http://enlightenment.freedesktop.org/files/%{name}-%{version}.tar.gz |
a4bcdd10 | 13 | # Source0-md5: 29bc8aec80b53480c2ea53aea1796e15 |
04447382 | 14 | URL: http://enlightenment.org/Libraries/Ewl/ |
2f85ead4 | 15 | BuildRequires: autoconf |
16 | BuildRequires: automake | |
93f2afb5 | 17 | BuildRequires: edje |
2f85ead4 | 18 | BuildRequires: edje-devel |
19 | BuildRequires: emotion-devel | |
2f85ead4 | 20 | BuildRequires: libtool |
93f2afb5 | 21 | Requires: %{name}-libs = %{version}-%{release} |
2f85ead4 | 22 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
23 | ||
0dfafa11 | 24 | %undefine __cxx |
25 | ||
2f85ead4 | 26 | %description |
27 | EWL is a widget library which uses the E Foundation Libraries (EFL). | |
28 | ||
89433bb5 JR |
29 | %description -l pl.UTF-8 |
30 | EWL to biblioteka widgetów używająca EFL (E Foundation Libraries - | |
b74cb4c8 JB |
31 | podstawowych bibliotek Englightenmenta). |
32 | ||
93f2afb5 | 33 | %package libs |
34 | Summary: EWL library | |
4aa4f601 | 35 | Summary(pl.UTF-8): Biblioteka EWL |
bb4aaab4 | 36 | Group: Libraries |
93f2afb5 | 37 | |
38 | %description libs | |
39 | EWL library. | |
40 | ||
89433bb5 | 41 | %description libs -l pl.UTF-8 |
bb4aaab4 JB |
42 | Biblioteka EWL. |
43 | ||
2f85ead4 | 44 | %package devel |
b74cb4c8 | 45 | Summary: EWL header files and test programs |
4aa4f601 | 46 | Summary(pl.UTF-8): Pliki nagłówkowe i programy testowe dla biblioteki EWL |
2f85ead4 | 47 | Group: Development/Libraries |
93f2afb5 | 48 | Requires: %{name}-libs = %{version}-%{release} |
2f85ead4 | 49 | |
50 | %description devel | |
b74cb4c8 JB |
51 | EWL header files and test programs. |
52 | ||
89433bb5 JR |
53 | %description devel -l pl.UTF-8 |
54 | Pliki nagłówkowe i programy testowe dla biblioteki EWL. | |
2f85ead4 | 55 | |
56 | %package static | |
b74cb4c8 | 57 | Summary: Static EWL library |
4aa4f601 | 58 | Summary(pl.UTF-8): Statyczna biblioteka EWL |
2f85ead4 | 59 | Group: Development/Libraries |
b74cb4c8 | 60 | Requires: %{name}-devel = %{version}-%{release} |
2f85ead4 | 61 | |
62 | %description static | |
b74cb4c8 JB |
63 | Static EWL library. |
64 | ||
89433bb5 | 65 | %description static -l pl.UTF-8 |
b74cb4c8 | 66 | Statyczna biblioteka EWL. |
2f85ead4 | 67 | |
68 | %prep | |
b459b7f9 | 69 | %setup -q |
2f85ead4 | 70 | |
71 | %build | |
5d4a1861 KK |
72 | %configure \ |
73 | %{!?with_static_libs:--disable-static} | |
2f85ead4 | 74 | %{__make} |
75 | ||
76 | %install | |
77 | rm -rf $RPM_BUILD_ROOT | |
b74cb4c8 | 78 | |
2f85ead4 | 79 | %{__make} install \ |
80 | DESTDIR=$RPM_BUILD_ROOT | |
81 | ||
82 | %clean | |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
bb4aaab4 JB |
85 | %post libs -p /sbin/ldconfig |
86 | %postun libs -p /sbin/ldconfig | |
2f85ead4 | 87 | |
88 | %files | |
89 | %defattr(644,root,root,755) | |
90 | %doc AUTHORS COPYING* NEWS README TODO | |
93f2afb5 | 91 | %attr(755,root,root) %{_bindir}/ewl_test |
92 | %attr(755,root,root) %{_bindir}/ewl_*_test | |
2f85ead4 | 93 | %{_datadir}/%{name} |
94 | ||
93f2afb5 | 95 | %files libs |
96 | %defattr(644,root,root,755) | |
97 | %attr(755,root,root) %{_libdir}/libewl.so.*.*.* | |
1925ae5a | 98 | %dir %{_libdir}/%{name} |
99 | %dir %{_libdir}/%{name}/tests | |
100 | %attr(755,root,root) %{_libdir}/%{name}/tests/ewl_*.so | |
93f2afb5 | 101 | |
2f85ead4 | 102 | %files devel |
103 | %defattr(644,root,root,755) | |
2f85ead4 | 104 | %attr(755,root,root) %{_bindir}/ewl-config |
b74cb4c8 JB |
105 | %attr(755,root,root) %{_libdir}/libewl.so |
106 | %{_libdir}/libewl.la | |
107 | %dir %{_includedir}/ewl | |
108 | %{_includedir}/ewl/Ewl.h | |
109 | %{_includedir}/ewl/ewl_*.h | |
110 | %{_pkgconfigdir}/ewl.pc | |
111 | %{_aclocaldir}/ewl.m4 | |
2f85ead4 | 112 | |
5d4a1861 | 113 | %if %{with static_libs} |
2f85ead4 | 114 | %files static |
115 | %defattr(644,root,root,755) | |
116 | %{_libdir}/libewl.a | |
5d4a1861 | 117 | %endif |