]> git.pld-linux.org Git - packages/esmart.git/blob - esmart.spec
- rel 2
[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:        2
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 BuildRequires:  pkgconfig
27 Requires:       %{name}-libs = %{version}-%{release}
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %undefine       __cxx
31
32 %description
33 Esmart contains "smart" pre-built evas objects. It currently includes
34 a thumbnail generator and a horizontal/vertical container.
35
36 %description -l pl.UTF-8
37 Esmart zawiera "inteligentne" wstępnie zbudowane obiekty evas.
38 Aktualnie zawiera generator miniaturek i kontener poziomy/pionowy.
39
40 %package libs
41 Summary:        Esmart libraries
42 Summary(pl.UTF-8):      Biblioteka Esmart
43 Group:          X11/Libraries
44
45 %description libs
46 Esmart libraries.
47
48 %description libs -l pl.UTF-8
49 Biblioteka Esmart.
50
51 %package devel
52 Summary:        Evas "smart objects" header files
53 Summary(pl.UTF-8):      Pliki nagłówkowe "inteligentnych obiektów" Evas
54 Group:          Development/Libraries
55 Requires:       %{name}-libs = %{version}-%{release}
56 # ecore-evas ecore-x
57 Requires:       ecore-devel >= 0.9.9.038
58 Requires:       edje-devel >= 0.5.0.038
59 Requires:       epsilon-devel >= 0.3.0.008
60 Requires:       evas-devel >= 0.9.9.038
61 Requires:       imlib2-devel >= 1.0.0
62 Requires:       libltdl-devel
63
64 %description devel
65 Evas "smart objects" development headers.
66
67 %description devel -l pl.UTF-8
68 Pliki nagłówkowe "inteligentnych obiektów" Evas.
69
70 %package static
71 Summary:        Static Esmart libraries
72 Summary(pl.UTF-8):      Statyczne biblioteki Esmart
73 Group:          Development/Libraries
74 Requires:       %{name}-devel = %{version}-%{release}
75
76 %description static
77 Static Esmart libraries.
78
79 %description static -l pl.UTF-8
80 Statyczne biblioteki Esmart.
81
82 %prep
83 %setup -q
84 %patch0 -p1
85
86 %build
87 %{__libtoolize}
88 %{__aclocal}
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 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/layout/*.{la,a}
103
104 %clean
105 rm -rf $RPM_BUILD_ROOT
106
107 %post   libs -p /sbin/ldconfig
108 %postun libs -p /sbin/ldconfig
109
110 %files
111 %defattr(644,root,root,755)
112 %doc AUTHORS COPYING README
113 %attr(755,root,root) %{_bindir}/esmart_file_dialog_test
114 %attr(755,root,root) %{_bindir}/esmart_test
115 %{_datadir}/%{name}
116
117 %files libs
118 %defattr(644,root,root,755)
119 %attr(755,root,root) %{_libdir}/libesmart_*.so.*.*.*
120 %dir %{_libdir}/%{name}
121 %dir %{_libdir}/%{name}/layout
122 %attr(755,root,root) %{_libdir}/%{name}/layout/*.so
123
124 %files devel
125 %defattr(644,root,root,755)
126 %attr(755,root,root) %{_bindir}/esmart-config
127 %attr(755,root,root) %{_libdir}/libesmart_*.so
128 %{_libdir}/libesmart_*.la
129 %dir %{_includedir}/Esmart
130 %{_includedir}/Esmart/Esmart_*
131 %{_pkgconfigdir}/esmart.pc
132
133 %if %{with static_libs}
134 %files static
135 %defattr(644,root,root,755)
136 %{_libdir}/libesmart_*.a
137 %endif
This page took 0.030505 seconds and 4 git commands to generate.