1 | Summary: a set of symbols and convience functions that all indicators would like to use |
---|
2 | Name: libindicator |
---|
3 | Version: 12.10.1 |
---|
4 | Release: 2%{?_dist_release} |
---|
5 | Vendor: Project Vine |
---|
6 | Distribution: Vine Linux |
---|
7 | Packager: iwaim |
---|
8 | |
---|
9 | License: GPLv3 |
---|
10 | URL: https://launchpad.net/libindicator |
---|
11 | Source0: %{name}-%{version}.tar.gz |
---|
12 | Patch1: libindicator-12.10.1-glib262-g_define_type_with_private.patch |
---|
13 | |
---|
14 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
15 | |
---|
16 | BuildRequires: gnome-common |
---|
17 | BuildRequires: gtk3-devel >= 2.91 |
---|
18 | BuildRequires: glib2-devel >= 2.22 |
---|
19 | |
---|
20 | %description |
---|
21 | A set of symbols and convience functions that all indicators would like to use. Not of real use outside of the Ayatana indicators project. |
---|
22 | |
---|
23 | |
---|
24 | %package devel |
---|
25 | Summary: Header files and libraries for %{name} |
---|
26 | Group: Development/Libraries |
---|
27 | Requires: %{name} = %{version}-%{release} |
---|
28 | |
---|
29 | %description devel |
---|
30 | The %{name}-devel package contains the header files and libraries. |
---|
31 | |
---|
32 | |
---|
33 | %prep |
---|
34 | %setup -q |
---|
35 | %patch1 -p2 |
---|
36 | |
---|
37 | sed -i.addvar configure.ac \ |
---|
38 | -e '\@LIBINDICATOR_LIBS@s|\$LIBM| \$LIBM|' |
---|
39 | |
---|
40 | # http://bazaar.launchpad.net/~indicator-applet-developers/libindicator/trunk.12.10/view/head:/autogen.sh |
---|
41 | cat > autogen.sh <<EOF |
---|
42 | #!/bin/sh |
---|
43 | |
---|
44 | PKG_NAME="libindicator" |
---|
45 | |
---|
46 | which gnome-autogen.sh || { |
---|
47 | echo "You need gnome-common from GNOME SVN" |
---|
48 | exit 1 |
---|
49 | } |
---|
50 | |
---|
51 | USE_GNOME2_MACROS=1 \ |
---|
52 | . gnome-autogen.sh |
---|
53 | EOF |
---|
54 | |
---|
55 | NOCONFIGURE=1 \ |
---|
56 | sh autogen.sh |
---|
57 | |
---|
58 | |
---|
59 | %build |
---|
60 | export CFLAGS="%{optflags} -Wno-error=deprecated-declarations" |
---|
61 | %configure --with-gtk=3 --disable-static --disable-silent-rules |
---|
62 | sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool |
---|
63 | sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool |
---|
64 | sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool |
---|
65 | make %{?_smp_mflags} |
---|
66 | |
---|
67 | |
---|
68 | %install |
---|
69 | rm -rf $RPM_BUILD_ROOT |
---|
70 | %makeinstall |
---|
71 | |
---|
72 | ( |
---|
73 | PKG_CONFIG_PATH=%{buildroot}%{_libdir}/pkgconfig |
---|
74 | export PKG_CONFIG_PATH |
---|
75 | for var in \ |
---|
76 | iconsdir \ |
---|
77 | indicatordir \ |
---|
78 | %{nil} |
---|
79 | do |
---|
80 | vardir=$(pkg-config --variable=${var} indicator3-0.4) |
---|
81 | mkdir -p %{buildroot}${vardir} |
---|
82 | done |
---|
83 | ) |
---|
84 | |
---|
85 | # Ubuntu doesn't package the dummy indicator |
---|
86 | rm -f %{buildroot}%{_libdir}/libdummy-indicator*.so |
---|
87 | |
---|
88 | %__rm -f $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
89 | |
---|
90 | |
---|
91 | %clean |
---|
92 | rm -rf $RPM_BUILD_ROOT |
---|
93 | |
---|
94 | |
---|
95 | %post -p /sbin/ldconfig |
---|
96 | %postun -p /sbin/ldconfig |
---|
97 | |
---|
98 | |
---|
99 | %files |
---|
100 | %defattr(-,root,root,-) |
---|
101 | %license COPYING |
---|
102 | %doc README AUTHORS ChangeLog NEWS |
---|
103 | %{_libdir}/*.so.* |
---|
104 | %{_libexecdir}/indicator-loader3 |
---|
105 | %dir %{_datadir}/libindicator/ |
---|
106 | %dir %{_datadir}/libindicator/icons/ |
---|
107 | %{_datadir}/%{name}/80indicator-debugging |
---|
108 | |
---|
109 | %files devel |
---|
110 | %defattr(-,root,root,-) |
---|
111 | %{_libdir}/pkgconfig/indicator3-0.4.pc |
---|
112 | %{_includedir}/%{name}3-0.4 |
---|
113 | %{_libdir}/libindicator3.so |
---|
114 | |
---|
115 | |
---|
116 | %changelog |
---|
117 | * Tue Aug 04 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 12.10.1-2 |
---|
118 | - rebuilt with current environment. |
---|
119 | |
---|
120 | * Sat May 19 2018 IWAI, Masaharu <iwaim.sub@gmail.com> 12.10.1-1 |
---|
121 | - Initial build. |
---|