libindicator-vl.spec 2.9 KB

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