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