]> git.pld-linux.org Git - packages/esmart.git/blob - esmart.spec
- fixed on amd64
[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):    "Inteligentne obiekty" Evas
7 Name:           esmart
8 Version:        0.9.0.005
9 #%define        _snap   20051025
10 Release:        2
11 #.%{_snap}.1
12 License:        BSD
13 Group:          X11/Libraries
14 Source0:        http://enlightenment.freedesktop.org/files/%{name}-%{version}.tar.gz
15 # Source0-md5:  62952b15ceb672a29ec4d21908e96e51
16 #Source0:       http://sparky.homelinux.org/snaps/enli/e17/libs/%{name}-%{_snap}.tar.bz2
17 Patch0:         efl-m4.patch
18 Patch1:         %{name}-layout_in_libdir.patch
19 URL:            http://enlightenment.org/
20 #BuildRequires: autoconf
21 #BuildRequires: automake
22 BuildRequires:  edje-devel
23 BuildRequires:  epeg-devel
24 BuildRequires:  epsilon-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
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):    Biblioteka Esmart
42 Group:          X11/Libraries
43
44 %description libs
45 Esmart libraries.
46
47 %description libs -l pl
48 Biblioteka Esmart.
49
50 %package devel
51 Summary:        Evas "smart objects" header files
52 Summary(pl):    Pliki nag³ówkowe "inteligentnych obiektów" Evas
53 Group:          Development/Libraries
54 Requires:       %{name}-libs = %{version}-%{release}
55 Requires:       edje-devel
56 Requires:       epeg-devel
57 Requires:       epsilon-devel
58
59 %description devel
60 Evas "smart objects" development headers.
61
62 %description devel -l pl
63 Pliki nag³ówkowe "inteligentnych obiektów" Evas.
64
65 %package static
66 Summary:        Static Esmart libraries
67 Summary(pl):    Statyczne biblioteki Esmart
68 Group:          Development/Libraries
69 Requires:       %{name}-devel = %{version}-%{release}
70
71 %description static
72 Static Esmart libraries.
73
74 %description static -l pl
75 Statyczne biblioteki Esmart.
76
77 %prep
78 %setup -q
79 # -n %{name}
80 %patch0 -p1
81 %patch1 -p1
82
83 %build
84 %{__libtoolize}
85 %{__aclocal} -I m4
86 %{__autoconf}
87 %{__autoheader}
88 %{__automake}
89 %configure \
90         %{!?with_static_libs:--disable-static}
91 %{__make}
92
93 %install
94 rm -rf $RPM_BUILD_ROOT
95
96 %{__make} install \
97         DESTDIR=$RPM_BUILD_ROOT
98
99 %clean
100 rm -rf $RPM_BUILD_ROOT
101
102 %post libs      -p /sbin/ldconfig
103 %postun libs    -p /sbin/ldconfig
104
105 %files
106 %defattr(644,root,root,755)
107 %doc AUTHORS COPYING* README
108 %attr(755,root,root) %{_bindir}/esmart_file_dialog_test
109 %attr(755,root,root) %{_bindir}/esmart_test
110 %{_datadir}/%{name}
111
112 %files libs
113 %defattr(644,root,root,755)
114 %attr(755,root,root) %{_libdir}/libesmart_*.so.*.*.*
115 %dir %{_libdir}/%{name}
116 %dir %{_libdir}/%{name}/layout
117 %attr(755,root,root) %{_libdir}/%{name}/layout/*.so
118
119 %files devel
120 %defattr(644,root,root,755)
121 %attr(755,root,root) %{_bindir}/esmart-config
122 %attr(755,root,root) %{_libdir}/libesmart_*.so
123 %{_libdir}/libesmart_*.la
124 %{_libdir}/%{name}/layout/*.la
125 %dir %{_includedir}/Esmart
126 %{_includedir}/Esmart/Esmart_*
127 %{_pkgconfigdir}/esmart.pc
128
129 %if %{with static_libs}
130 %files static
131 %defattr(644,root,root,755)
132 %{_libdir}/libesmart_*.a
133 %{_libdir}/%{name}/layout/*.a
134 %endif
This page took 0.105518 seconds and 4 git commands to generate.