]> git.pld-linux.org Git - packages/esmart.git/blob - esmart.spec
- up to 0.9.0.042
[packages/esmart.git] / esmart.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # don't build static library
4 #
5 %define         ecore_ver       0.9.9.043
6 %define         edje_ver        0.9.9.043
7 %define         epsilon_ver     0.3.0.012
8 %define         evas_ver        0.9.9.043
9
10 Summary:        Evas "smart objects"
11 Summary(pl.UTF-8):      "Inteligentne obiekty" Evas
12 Name:           esmart
13 Version:        0.9.0.042
14 Release:        1
15 License:        BSD
16 Group:          X11/Libraries
17 Source0:        http://download.enlightenment.org/snapshots/2008-01-25/%{name}-%{version}.tar.bz2
18 # Source0-md5:  62c1d73d2610da148b260efc36b1d03a
19 Patch0:         %{name}-layout_in_libdir.patch
20 URL:            http://enlightenment.org/
21 BuildRequires:  autoconf
22 BuildRequires:  automake
23 # ecore-evas ecore-x
24 BuildRequires:  ecore-devel >= %{ecore_ver}
25 BuildRequires:  edje-devel >= %{edje_ver}
26 BuildRequires:  epsilon-devel >= %{epsilon_ver}
27 BuildRequires:  evas-devel >= %{evas_ver}
28 BuildRequires:  imlib2-devel >= 1.0.0
29 BuildRequires:  libltdl-devel
30 BuildRequires:  libtool
31 BuildRequires:  pkgconfig
32 Requires:       %{name}-libs = %{version}-%{release}
33 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35 %undefine       __cxx
36
37 %description
38 Esmart contains "smart" pre-built evas objects. It currently includes
39 a thumbnail generator and a horizontal/vertical container.
40
41 %description -l pl.UTF-8
42 Esmart zawiera "inteligentne" wstępnie zbudowane obiekty evas.
43 Aktualnie zawiera generator miniaturek i kontener poziomy/pionowy.
44
45 %package libs
46 Summary:        Esmart libraries
47 Summary(pl.UTF-8):      Biblioteka Esmart
48 Group:          X11/Libraries
49
50 %description libs
51 Esmart libraries.
52
53 %description libs -l pl.UTF-8
54 Biblioteka Esmart.
55
56 %package devel
57 Summary:        Evas "smart objects" header files
58 Summary(pl.UTF-8):      Pliki nagłówkowe "inteligentnych obiektów" Evas
59 Group:          Development/Libraries
60 Requires:       %{name}-libs = %{version}-%{release}
61 # ecore-evas ecore-x
62 Requires:       ecore-devel >= %{ecore_ver}
63 Requires:       edje-devel >= %{edje_ver}
64 Requires:       epsilon-devel >= %{epsilon_ver}
65 Requires:       evas-devel >= %{evas_ver}
66 Requires:       imlib2-devel >= 1.0.0
67 Requires:       libltdl-devel
68
69 %description devel
70 Evas "smart objects" development headers.
71
72 %description devel -l pl.UTF-8
73 Pliki nagłówkowe "inteligentnych obiektów" Evas.
74
75 %package static
76 Summary:        Static Esmart libraries
77 Summary(pl.UTF-8):      Statyczne biblioteki Esmart
78 Group:          Development/Libraries
79 Requires:       %{name}-devel = %{version}-%{release}
80
81 %description static
82 Static Esmart libraries.
83
84 %description static -l pl.UTF-8
85 Statyczne biblioteki Esmart.
86
87 %prep
88 %setup -q
89 %patch0 -p1
90
91 %build
92 %{__libtoolize}
93 %{__aclocal}
94 %{__autoconf}
95 %{__autoheader}
96 %{__automake}
97 %configure \
98         %{!?with_static_libs:--disable-static}
99 %{__make}
100
101 %install
102 rm -rf $RPM_BUILD_ROOT
103
104 %{__make} install \
105         DESTDIR=$RPM_BUILD_ROOT
106
107 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/layout/*.{la,a}
108
109 %clean
110 rm -rf $RPM_BUILD_ROOT
111
112 %post   libs -p /sbin/ldconfig
113 %postun libs -p /sbin/ldconfig
114
115 %files
116 %defattr(644,root,root,755)
117 %doc AUTHORS COPYING README
118 %attr(755,root,root) %{_bindir}/esmart_text_entry_test
119 %attr(755,root,root) %{_bindir}/esmart_test
120 %{_datadir}/%{name}
121
122 %files libs
123 %defattr(644,root,root,755)
124 %attr(755,root,root) %{_libdir}/libesmart_*.so.*
125 %dir %{_libdir}/%{name}
126 %dir %{_libdir}/%{name}/layout
127 %attr(755,root,root) %{_libdir}/%{name}/layout/*.so
128
129 %files devel
130 %defattr(644,root,root,755)
131 #%attr(755,root,root) %{_bindir}/esmart-config
132 %attr(755,root,root) %{_libdir}/libesmart_*.so
133 %{_libdir}/libesmart_*.la
134 %dir %{_includedir}/Esmart
135 %{_includedir}/Esmart/Esmart_*.h
136 %{_pkgconfigdir}/esmart_*.pc
137
138 %if %{with static_libs}
139 %files static
140 %defattr(644,root,root,755)
141 %{_libdir}/libesmart_*.a
142 %endif
This page took 0.064583 seconds and 4 git commands to generate.