]> git.pld-linux.org Git - packages/esmart.git/blob - esmart.spec
- -BR: epeg-devel, required by epsilon-devel
[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.007
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:  a65b4a08818ac9ef9de3dd9d4f20f148
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:  epsilon-devel
24 BuildRequires:  libtool
25 Requires:       %{name}-libs = %{version}-%{release}
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %undefine       __cxx
29
30 %description
31 Esmart contains "smart" pre-built evas objects. It currently includes
32 a thumbnail generator and a horizontal/vertical container.
33
34 %description -l pl
35 Esmart zawiera "inteligentne" wstêpnie zbudowane obiekty evas.
36 Aktualnie zawiera generator miniaturek i kontener poziomy/pionowy.
37
38 %package libs
39 Summary:        Esmart libraries
40 Summary(pl):    Biblioteka Esmart
41 Group:          X11/Libraries
42
43 %description libs
44 Esmart libraries.
45
46 %description libs -l pl
47 Biblioteka Esmart.
48
49 %package devel
50 Summary:        Evas "smart objects" header files
51 Summary(pl):    Pliki nag³ówkowe "inteligentnych obiektów" Evas
52 Group:          Development/Libraries
53 Requires:       %{name}-libs = %{version}-%{release}
54 Requires:       edje-devel
55 Requires:       epeg-devel
56 Requires:       epsilon-devel
57
58 %description devel
59 Evas "smart objects" development headers.
60
61 %description devel -l pl
62 Pliki nag³ówkowe "inteligentnych obiektów" Evas.
63
64 %package static
65 Summary:        Static Esmart libraries
66 Summary(pl):    Statyczne biblioteki Esmart
67 Group:          Development/Libraries
68 Requires:       %{name}-devel = %{version}-%{release}
69
70 %description static
71 Static Esmart libraries.
72
73 %description static -l pl
74 Statyczne biblioteki Esmart.
75
76 %prep
77 %setup -q
78 # -n %{name}
79 %patch0 -p1
80 %patch1 -p1
81
82 %build
83 %{__libtoolize}
84 %{__aclocal} -I m4
85 %{__autoconf}
86 %{__autoheader}
87 %{__automake}
88 %configure \
89         %{!?with_static_libs:--disable-static}
90 %{__make}
91
92 %install
93 rm -rf $RPM_BUILD_ROOT
94
95 %{__make} install \
96         DESTDIR=$RPM_BUILD_ROOT
97
98 %clean
99 rm -rf $RPM_BUILD_ROOT
100
101 %post libs      -p /sbin/ldconfig
102 %postun libs    -p /sbin/ldconfig
103
104 %files
105 %defattr(644,root,root,755)
106 %doc AUTHORS COPYING* README
107 %attr(755,root,root) %{_bindir}/esmart_file_dialog_test
108 %attr(755,root,root) %{_bindir}/esmart_test
109 %{_datadir}/%{name}
110
111 %files libs
112 %defattr(644,root,root,755)
113 %attr(755,root,root) %{_libdir}/libesmart_*.so.*.*.*
114 %dir %{_libdir}/%{name}
115 %dir %{_libdir}/%{name}/layout
116 %attr(755,root,root) %{_libdir}/%{name}/layout/*.so
117
118 %files devel
119 %defattr(644,root,root,755)
120 %attr(755,root,root) %{_bindir}/esmart-config
121 %attr(755,root,root) %{_libdir}/libesmart_*.so
122 %{_libdir}/libesmart_*.la
123 %{_libdir}/%{name}/layout/*.la
124 %dir %{_includedir}/Esmart
125 %{_includedir}/Esmart/Esmart_*
126 %{_pkgconfigdir}/esmart.pc
127
128 %if %{with static_libs}
129 %files static
130 %defattr(644,root,root,755)
131 %{_libdir}/libesmart_*.a
132 %{_libdir}/%{name}/layout/*.a
133 %endif
This page took 0.074633 seconds and 4 git commands to generate.