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