[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 |
---|
[12550] | 4 | Release: 3%{?_dist_release} |
---|
| 5 | Group: system |
---|
[12446] | 6 | Vendor: Project Vine |
---|
| 7 | Distribution: Vine Linux |
---|
| 8 | Packager: iwaim |
---|
| 9 | |
---|
[11637] | 10 | License: GPLv3 |
---|
| 11 | URL: https://launchpad.net/libindicator |
---|
| 12 | Source0: %{name}-%{version}.tar.gz |
---|
[12446] | 13 | Patch1: libindicator-12.10.1-glib262-g_define_type_with_private.patch |
---|
| 14 | |
---|
[11637] | 15 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 16 | |
---|
[12446] | 17 | BuildRequires: gnome-common |
---|
[11637] | 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 | |
---|
[12446] | 24 | |
---|
[11637] | 25 | %package devel |
---|
| 26 | Summary: Header files and libraries for %{name} |
---|
[12550] | 27 | Group: programming |
---|
[11637] | 28 | Requires: %{name} = %{version}-%{release} |
---|
| 29 | |
---|
| 30 | %description devel |
---|
| 31 | The %{name}-devel package contains the header files and libraries. |
---|
| 32 | |
---|
[12446] | 33 | |
---|
[12550] | 34 | %debug_package |
---|
| 35 | |
---|
| 36 | |
---|
[11637] | 37 | %prep |
---|
| 38 | %setup -q |
---|
[12446] | 39 | %patch1 -p2 |
---|
[11637] | 40 | |
---|
[12446] | 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 | |
---|
[11637] | 63 | %build |
---|
[12446] | 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} |
---|
[11637] | 70 | |
---|
[12446] | 71 | |
---|
[11637] | 72 | %install |
---|
| 73 | rm -rf $RPM_BUILD_ROOT |
---|
| 74 | %makeinstall |
---|
[12446] | 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 | |
---|
[11637] | 92 | %__rm -f $RPM_BUILD_ROOT%{_libdir}/*.la |
---|
| 93 | |
---|
[12446] | 94 | |
---|
[11637] | 95 | %clean |
---|
| 96 | rm -rf $RPM_BUILD_ROOT |
---|
| 97 | |
---|
| 98 | |
---|
[12550] | 99 | %ldconfig_scriptlets |
---|
[12446] | 100 | |
---|
| 101 | |
---|
[11637] | 102 | %files |
---|
| 103 | %defattr(-,root,root,-) |
---|
[12446] | 104 | %license COPYING |
---|
| 105 | %doc README AUTHORS ChangeLog NEWS |
---|
[11637] | 106 | %{_libdir}/*.so.* |
---|
| 107 | %{_libexecdir}/indicator-loader3 |
---|
[12446] | 108 | %dir %{_datadir}/libindicator/ |
---|
| 109 | %dir %{_datadir}/libindicator/icons/ |
---|
[11637] | 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 | |
---|
[12446] | 118 | |
---|
[11637] | 119 | %changelog |
---|
[12550] | 120 | * Fri Feb 26 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 12.10.1-3 |
---|
| 121 | - rebuilt with current environment. |
---|
| 122 | |
---|
[12446] | 123 | * Tue Aug 04 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 12.10.1-2 |
---|
| 124 | - rebuilt with current environment. |
---|
| 125 | |
---|
[11637] | 126 | * Sat May 19 2018 IWAI, Masaharu <iwaim.sub@gmail.com> 12.10.1-1 |
---|
| 127 | - Initial build. |
---|