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