]> git.pld-linux.org Git - packages/libayatana-indicator.git/blob - libindicator.spec
ce59ee03f4c0d81ccc2ab21587c8a3e0fbbf7ff8
[packages/libayatana-indicator.git] / libindicator.spec
1 Summary:        Shared functions for Ayatana indicators
2 Name:           libindicator
3 Version:        0.4.94
4 Release:        1
5 License:        GPL v3
6 Group:          Libraries
7 URL:            https://launchpad.net/libindicator
8 Source0:        http://launchpad.net/libindicator/0.5/%{version}/+download/%{name}-%{version}.tar.gz
9 # Source0-md5:  f256d3dccfd2612fb31e19ec42ad1824
10 BuildRequires:  dbus-glib-devel
11 BuildRequires:  gtk+2-devel
12 BuildRequires:  gtk+3-devel
13 BuildRequires:  pkgconfig
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
17 A set of symbols and convenience functions that all Ayatana indicators
18 are likely to use.
19
20 %package devel
21 Summary:        Development files for %{name}
22 Group:          Development/Libraries
23 Requires:       %{name} = %{version}-%{release}
24
25 %description devel
26 The %{name}-devel package contains libraries and header files for
27 developing applications that use %{name}.
28
29 %package gtk3
30 Summary:        GTK+3 build of %{name}
31 Group:          Libraries
32
33 %description gtk3
34 A set of symbols and convenience functions that all Ayatana indicators
35 are likely to use. This is the GTK+ 3 build of %{name}, for use by
36 GTK+ 3 apps.
37
38 %package gtk3-devel
39 Summary:        Development files for %{name}-gtk3
40 Group:          Development/Libraries
41 Requires:       %{name}-gtk3 = %{version}-%{release}
42
43 %description gtk3-devel
44 The %{name}-gtk3-devel package contains libraries and header files for
45 developing applications that use %{name}-gtk3.
46
47 %prep
48 %setup -q
49
50 %build
51 # we build it twice, once against GTK+ 3 and once against GTK+ 2, so
52 # both GTK+ 2 and GTK+ 3 apps can use it; the GTK+ 3 build is
53 # libindicator-gtk3. When we have no need for the GTK+ 2 build any more
54 # we can drop the -gtk3 package and have the main package build against
55 # GTK+ 3.
56 install -d build-gtk{2,3}
57 cd build-gtk2
58 ../%configure \
59         --disable-static \
60         --with-gtk=2
61 %{__make} \
62         V=1
63
64 cd ../build-gtk3
65 ../%configure \
66         --disable-static \
67         --with-gtk=3
68 %{__make} \
69         V=1
70
71 %install
72 rm -rf $RPM_BUILD_ROOT
73 %{__make} -C build-gtk2 install -j1 \
74         DESTDIR=$RPM_BUILD_ROOT
75 %{__make} -C build-gtk3 install -j1 \
76         DESTDIR=$RPM_BUILD_ROOT
77
78 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
79
80 # this dummy indicator is fairly useless, it's not shipped in Ubuntu
81 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libdummy-indicator*.so
82
83 %clean
84 rm -rf $RPM_BUILD_ROOT
85
86 %post   -p /sbin/ldconfig
87 %postun -p /sbin/ldconfig
88 %post   gtk3 -p /sbin/ldconfig
89 %postun gtk3 -p /sbin/ldconfig
90
91 %files
92 %defattr(644,root,root,755)
93 %attr(755,root,root) %{_libdir}/libindicator.so.*.*.*
94 %ghost %{_libdir}/libindicator.so.7
95 %attr(755,root,root) %{_libdir}/indicator-loader
96
97 %files devel
98 %defattr(644,root,root,755)
99 %{_includedir}/libindicator-0.4
100 %{_libdir}/libindicator.so
101 %{_pkgconfigdir}/indicator-0.4.pc
102 # Contains 80indicator-debugging
103 # This is marked as 'for development use only'
104 %{_datadir}/libindicator
105
106 %files gtk3
107 %defattr(644,root,root,755)
108 %attr(755,root,root) %{_libdir}/libindicator3.so.*.*.*
109 %ghost %{_libdir}/libindicator3.so.7
110 %attr(755,root,root) %{_libdir}/indicator-loader3
111
112 %files gtk3-devel
113 %defattr(644,root,root,755)
114 %{_includedir}/libindicator3-0.4
115 %{_libdir}/libindicator3.so
116 %{_pkgconfigdir}/indicator3-0.4.pc
This page took 0.108906 seconds and 2 git commands to generate.