libindicator-vl.spec 3.0 KB

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