[11637] | 1 | Summary: a set of symbols and convience functions that all indicators would like to use |
---|
| 2 | Name: libindicator |
---|
| 3 | Version: 12.10.1 |
---|
[12446] | 4 | Release: 2%{?_dist_release} |
---|
| 5 | Vendor: Project Vine |
---|
| 6 | Distribution: Vine Linux |
---|
| 7 | Packager: iwaim |
---|
| 8 | |
---|
[11637] | 9 | License: GPLv3 |
---|
| 10 | URL: https://launchpad.net/libindicator |
---|
| 11 | Source0: %{name}-%{version}.tar.gz |
---|
[12446] | 12 | Patch1: libindicator-12.10.1-glib262-g_define_type_with_private.patch |
---|
| 13 | |
---|
[11637] | 14 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 15 | |
---|
[12446] | 16 | BuildRequires: gnome-common |
---|
[11637] | 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 | |
---|
[12446] | 23 | |
---|
[11637] | 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 | |
---|
[12446] | 32 | |
---|
[11637] | 33 | %prep |
---|
| 34 | %setup -q |
---|
[12446] | 35 | %patch1 -p2 |
---|
[11637] | 36 | |
---|
[12446] | 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 | |
---|
[11637] | 59 | %build |
---|
[12446] | 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} |
---|
[11637] | 66 | |
---|
[12446] | 67 | |
---|
[11637] | 68 | %install |
---|
| 69 | rm -rf $RPM_BUILD_ROOT |
---|
| 70 | %makeinstall |
---|
[12446] | 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 | |
---|
[11637] | 88 | %__rm -f $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
| 89 | |
---|
[12446] | 90 | |
---|
[11637] | 91 | %clean |
---|
| 92 | rm -rf $RPM_BUILD_ROOT |
---|
| 93 | |
---|
| 94 | |
---|
[12446] | 95 | %post -p /sbin/ldconfig |
---|
| 96 | %postun -p /sbin/ldconfig |
---|
| 97 | |
---|
| 98 | |
---|
[11637] | 99 | %files |
---|
| 100 | %defattr(-,root,root,-) |
---|
[12446] | 101 | %license COPYING |
---|
| 102 | %doc README AUTHORS ChangeLog NEWS |
---|
[11637] | 103 | %{_libdir}/*.so.* |
---|
| 104 | %{_libexecdir}/indicator-loader3 |
---|
[12446] | 105 | %dir %{_datadir}/libindicator/ |
---|
| 106 | %dir %{_datadir}/libindicator/icons/ |
---|
[11637] | 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 | |
---|
[12446] | 115 | |
---|
[11637] | 116 | %changelog |
---|
[12446] | 117 | * Tue Aug 04 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 12.10.1-2 |
---|
| 118 | - rebuilt with current environment. |
---|
| 119 | |
---|
[11637] | 120 | * Sat May 19 2018 IWAI, Masaharu <iwaim.sub@gmail.com> 12.10.1-1 |
---|
| 121 | - Initial build. |
---|