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