]> git.pld-linux.org Git - packages/clutter-gesture.git/blob - clutter-gesture.spec
23348cf3c316945ce094d45b6ff6a31b866f613c
[packages/clutter-gesture.git] / clutter-gesture.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # don't build static libraries
4 #
5 Summary:        Clutter Gesture library
6 Summary(pl.UTF-8):      Biblioteka gestów Clutter
7 Name:           clutter-gesture
8 Version:        0.0.2
9 %define snap    20100106
10 Release:        0.%{snap}.1
11 License:        LGPL v2.1
12 Group:          Libraries
13 # git clone git://git.moblin.org/clutter-gesture
14 Source0:        %{name}.tar.xz
15 # Source0-md5:  7f3b287e4213f5be4e2f0054e1112e6b
16 Patch0:         %{name}-link.patch
17 URL:            http://www.moblin.org/
18 BuildRequires:  autoconf >= 2.61
19 BuildRequires:  automake
20 BuildRequires:  clutter-devel >= 1.0.0
21 BuildRequires:  glib2-devel >= 2
22 #BuildRequires: gtk-doc >= 1.9
23 BuildRequires:  libtool
24 BuildRequires:  pkgconfig
25 BuildRequires:  tar >= 1:1.22
26 BuildRequires:  xz
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 Clutter Gesture library allows clutter applications to be aware of
31 gestures and to easily attach some handlers to the gesture events.
32
33 %description -l pl.UTF-8
34 Biblioteka Clutter Gesture pozwala aplikacjom wykorzystujacych
35 bibliotekę clutter na obsługę gestów i łatwe podłączanie procedur
36 obsługi do zdarzeń gestów.
37
38 %package devel
39 Summary:        Header files for Clutter Gesture library
40 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki Clutter Gesture
41 Group:          Development/Libraries
42 Requires:       %{name} = %{version}-%{release}
43 Requires:       clutter-devel >= 1.0.0
44 Requires:       glib2-devel >= 2
45
46 %description devel
47 Header files for Clutter Gesture library.
48
49 %description devel -l pl.UTF-8
50 Pliki nagłówkowe biblioteki Clutter Gesture.
51
52 %package static
53 Summary:        Static Clutter Gesture library
54 Summary(pl.UTF-8):      Statyczna biblioteka Clutter Gesture
55 Group:          Development/Libraries
56 Requires:       %{name}-devel = %{version}-%{release}
57
58 %description static
59 Static Clutter Gesture library.
60
61 %description static -l pl.UTF-8
62 Statyczna biblioteka Clutter Gesture.
63
64 %prep
65 %setup -q -n %{name}
66 %patch0 -p1
67
68 %build
69 %{__libtoolize}
70 %{__aclocal}
71 %{__autoconf}
72 %{__autoheader}
73 %{__automake}
74 # disable some warnings, so it builds with -Werror
75 CFLAGS="%{rpmcflags} -Wno-unused-but-set-variable -Wno-deprecated-declarations -Wno-switch -Wno-unused-result"
76 %configure \
77         %{!?with_static_libs:--disable-static} \
78         --with-html-dir=%{_gtkdocdir}
79 %{__make}
80
81 %install
82 rm -rf $RPM_BUILD_ROOT
83
84 %{__make} install \
85         DESTDIR=$RPM_BUILD_ROOT
86
87 # obsoleted by pkg-config
88 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
89
90 %clean
91 rm -rf $RPM_BUILD_ROOT
92
93 %post   -p /sbin/ldconfig
94 %postun -p /sbin/ldconfig
95
96 %files
97 %defattr(644,root,root,755)
98 %doc README
99 %attr(755,root,root) %{_libdir}/libcluttergesture-0.0.2.so.*.*.*
100 %attr(755,root,root) %ghost %{_libdir}/libcluttergesture-0.0.2.so.0
101
102 %files devel
103 %defattr(644,root,root,755)
104 %attr(755,root,root) %{_libdir}/libcluttergesture-0.0.2.so
105 %{_includedir}/clutter-gesture
106 %{_pkgconfigdir}/clutter-gesture.pc
107
108 %if %{with static_libs}
109 %files static
110 %defattr(644,root,root,755)
111 %{_libdir}/libcluttergesture-0.0.2.a
112 %endif
This page took 0.037856 seconds and 2 git commands to generate.