]>
Commit | Line | Data |
---|---|---|
d470277b JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static library | |
4 | # | |
aa3c5a33 | 5 | %define ecore_ver 0.9.9.050 |
07e33737 | 6 | |
d470277b JB |
7 | Summary: freedesktop.org standards implementation for the EFL |
8 | Summary(pl.UTF-8): Implementacja standardów freedesktop.org dla EFL | |
9 | Name: efreet | |
aa3c5a33 | 10 | Version: 0.5.0.050 |
11 | Release: 0.1 | |
d470277b JB |
12 | License: BSD |
13 | Group: X11/Libraries | |
aa3c5a33 | 14 | Source0: http://download.enlightenment.org/snapshots/2008-09-25/%{name}-%{version}.tar.bz2 |
ef9ed673 | 15 | # Source0-md5: 029accd22bb5b014866dedc38269c82c |
d470277b | 16 | URL: http://enlightenment.org/p.php?p=about/libs/efreet |
93cc5570 JB |
17 | BuildRequires: autoconf >= 2.52 |
18 | BuildRequires: automake >= 1.6 | |
d470277b | 19 | # ecore-file; ecore-desktop for tests |
07e33737 | 20 | BuildRequires: ecore-devel >= %{ecore_ver} |
d470277b JB |
21 | BuildRequires: libtool |
22 | BuildRequires: pkgconfig | |
23 | BuildRequires: sed >= 4.0 | |
07e33737 | 24 | Requires: ecore-file >= %{ecore_ver} |
d470277b JB |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
26 | ||
27 | %description | |
28 | Efreet is an implementation of the following specifications from | |
29 | freedesktop.org: | |
30 | - Base Directory - Locations for system and user specific desktop | |
31 | configuration files, | |
32 | - Desktop Entries - The metadata associated with the applications | |
33 | installed on a system, | |
34 | - Application Menus - The arrangement of available applications into | |
35 | a hierarchical menu, | |
36 | - Icon Themes - A means of associating icons with various objects on | |
37 | the desktop in a themable fashion. | |
38 | ||
39 | By following these specifications, Enlightenment 0.17 uses the same | |
40 | format for describing application launchers, menus and icon themes as | |
41 | the GNOME, KDE and XFCE Desktop Environments. A system must only | |
42 | provide a single set of this data for use with any of these desktops. | |
43 | ||
44 | %description -l pl.UTF-8 | |
45 | Efreet to implementacja następujących specyfikacji z freedesktop.org: | |
46 | - Base Directory - położenie plików konfiguracyjnych środowiska dla | |
47 | systemu i użytkownika, | |
48 | - Desktop Entries - metadane związane z aplikacjami zainstalowanymi w | |
49 | systemie, | |
50 | - Application Menus - uporządkowanie dostępnych aplikacji w menu | |
51 | hierarchiczne, | |
52 | - Icon Themes - sposób wiązania ikon z różnymi obiektami w środowisku | |
53 | w sposób pozwalający na ustawianie motywów. | |
54 | ||
55 | %package devel | |
56 | Summary: Efreet header files | |
57 | Summary(pl.UTF-8): Pliki nagłówkowe Efreet | |
58 | Group: Development/Libraries | |
59 | Requires: %{name} = %{version}-%{release} | |
60 | # ecore-file | |
07e33737 | 61 | BuildRequires: ecore-devel >= %{ecore_ver} |
d470277b JB |
62 | |
63 | %description devel | |
64 | Header files for Efreet. | |
65 | ||
66 | %description devel -l pl.UTF-8 | |
67 | Pliki nagłówkowe Efreet. | |
68 | ||
69 | %package static | |
70 | Summary: Static Efreet library | |
71 | Summary(pl.UTF-8): Statyczna biblioteka Efreet | |
72 | Group: Development/Libraries | |
73 | Requires: %{name}-devel = %{version}-%{release} | |
74 | ||
75 | %description static | |
76 | Static Efreet library. | |
77 | ||
78 | %description static -l pl.UTF-8 | |
79 | Statyczna biblioteka Efreet. | |
80 | ||
81 | %prep | |
aa3c5a33 | 82 | %setup -q -n %{name}-%{version} |
d470277b JB |
83 | |
84 | sed -i -e 's/-g -O0//' src/lib/Makefile.am | |
85 | ||
86 | %build | |
87 | %{__libtoolize} | |
88 | %{__aclocal} -I m4 | |
89 | %{__autoconf} | |
90 | %{__autoheader} | |
91 | %{__automake} | |
92 | %configure \ | |
93 | %{!?with_static_libs:--disable-static} | |
94 | %{__make} | |
95 | ||
96 | %install | |
97 | rm -rf $RPM_BUILD_ROOT | |
98 | ||
99 | %{__make} install \ | |
100 | DESTDIR=$RPM_BUILD_ROOT | |
101 | ||
102 | # just tests | |
58bc5952 BZ |
103 | rm -f $RPM_BUILD_ROOT%{_bindir}/efreet_{alloc,menu_alloc,test,spec_test,cache_test} |
104 | rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/test | |
d470277b JB |
105 | |
106 | %clean | |
107 | rm -rf $RPM_BUILD_ROOT | |
108 | ||
109 | %post -p /sbin/ldconfig | |
110 | %postun -p /sbin/ldconfig | |
111 | ||
112 | %files | |
113 | %defattr(644,root,root,755) | |
114 | %doc AUTHORS COPYING README TODO | |
93cc5570 JB |
115 | %attr(755,root,root) %{_libdir}/libefreet.so.*.*.* |
116 | %attr(755,root,root) %ghost %{_libdir}/libefreet.so.0 | |
117 | %attr(755,root,root) %{_libdir}/libefreet_mime.so.*.*.* | |
118 | %attr(755,root,root) %ghost %{_libdir}/libefreet_mime.so.0 | |
adf62b9b | 119 | %attr(755,root,root) %{_libdir}/libefreet_trash.so.*.*.* |
120 | %attr(755,root,root) %ghost %{_libdir}/libefreet_trash.so.0 | |
d470277b JB |
121 | |
122 | %files devel | |
123 | %defattr(644,root,root,755) | |
93cc5570 JB |
124 | %attr(755,root,root) %{_libdir}/libefreet.so |
125 | %attr(755,root,root) %{_libdir}/libefreet_mime.so | |
adf62b9b | 126 | %attr(755,root,root) %{_libdir}/libefreet_trash.so |
93cc5570 JB |
127 | %{_libdir}/libefreet.la |
128 | %{_libdir}/libefreet_mime.la | |
adf62b9b | 129 | %{_libdir}/libefreet_trash.la |
d470277b | 130 | %{_includedir}/efreet |
93cc5570 JB |
131 | %{_pkgconfigdir}/efreet.pc |
132 | %{_pkgconfigdir}/efreet-mime.pc | |
adf62b9b | 133 | %{_pkgconfigdir}/efreet-trash.pc |
d470277b JB |
134 | |
135 | %if %{with static_libs} | |
136 | %files static | |
137 | %defattr(644,root,root,755) | |
93cc5570 JB |
138 | %{_libdir}/libefreet.a |
139 | %{_libdir}/libefreet_mime.a | |
adf62b9b | 140 | %{_libdir}/libefreet_trash.a |
d470277b | 141 | %endif |