cinnamon-control-center-vl.spec 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. Summary: Cinnamon Control Center.
  2. Summary(ja): Cinnamon コントロールセンター
  3. Name: cinnamon-control-center
  4. Version: 2.2.11
  5. Release: 1%{?_dist_release}
  6. License: GPLv2+ and GFDL+
  7. Group: User Interface/Desktops
  8. URL: https://github.com/linuxmint/cinnamon-control-center
  9. Source: %{name}-%{version}.tar.gz
  10. Vendor: Project Vine
  11. Distribution: Vine Linux
  12. Packager: Takemikaduchi
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. Requires: usermode
  15. Requires: cinnamon-settings-daemon
  16. Requires: gnome-icon-theme
  17. Requires: cinnamon-desktop
  18. Requires: dbus-x11
  19. Requires: apg
  20. Requires(post,postun): desktop-file-utils shared-mime-info gtk3
  21. BuildRequires: gnome-common
  22. BuildRequires: glib2-devel
  23. BuildRequires: gtk3-devel
  24. BuildRequires: cinnamon-desktop-devel
  25. BuildRequires: libgnomekbd-devel
  26. BuildRequires: desktop-file-utils
  27. BuildRequires: startup-notification-devel
  28. BuildRequires: libxklavier-devel
  29. BuildRequires: cinnamon-menus-devel
  30. BuildRequires: gnome-doc-utils
  31. BuildRequires: evolution-data-server-devel
  32. BuildRequires: cinnamon-settings-daemon-devel
  33. BuildRequires: libcanberra-gtk3-devel
  34. BuildRequires: nautilus-devel
  35. BuildRequires: alsa-lib-devel
  36. BuildRequires: autoconf
  37. BuildRequires: gettext-devel
  38. BuildRequires: librsvg2-devel
  39. BuildRequires: libXScrnSaver-devel
  40. BuildRequires: libXxf86misc-devel
  41. BuildRequires: libSM-devel
  42. BuildRequires: unique3-devel
  43. BuildRequires: polkit-devel
  44. BuildRequires: libgtop2-devel
  45. BuildRequires: libupower09-devel
  46. BuildRequires: pulseaudio-libs-devel
  47. BuildRequires: cups-devel
  48. BuildRequires: colord-devel
  49. BuildRequires: colord-gtk-devel
  50. BuildRequires: libnm-gtk-devel
  51. BuildRequires: NetworkManager-glib-devel
  52. BuildRequires: ModemManager-glib-devel
  53. BuildRequires: libnotify-devel
  54. BuildRequires: libwacom-devel
  55. BuildRequires: iso-codes
  56. %description
  57. The control-center package provides the Cinnamon Control Center utilities
  58. that allow you to setup and configure your system's Cinnamon environment
  59. (things like the desktop background and theme, the screensaver,
  60. the window manager, system sounds, and mouse behavior).
  61. %description -l ja
  62. Cinnamon-control-center パッケージには、あなたの Cinnamon 環境の設定に使う
  63. Cinnamon コントロールセンター・ユーティリティが含まれています。
  64. (これを使うと、デスクトップの壁紙や、テーマ、スクリーンセーバ、ウィン
  65. ドウマネージャ、サウンド、マウス、その他いろいろな設定を行えます。)
  66. %package devel
  67. Summary: Development files for Cinnamon Control Center
  68. Summary(ja): Cinnamon コントロールセンターの開発用ファイル
  69. Group: Development/Libraries
  70. Requires: %{name} = %{version}-%{release}
  71. %description devel
  72. Development tool for Cinnamon Control Center
  73. %descriotion -l ja devel
  74. Cinnamon コントロールセンターの開発用ファイルが含まれています。
  75. %prep
  76. %setup -q
  77. %build
  78. autoreconf -if
  79. %configure --disable-static \
  80. --disable-update-mimedb \
  81. --with-libsocialweb=no
  82. CFLAGS="$RPM_OPT_FLAGS -Wno-error"
  83. # drop unneeded direct library deps with --as-needed
  84. # libtool doesn't make this easy, so we do it the hard way
  85. sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' -e 's/ if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then/ func_append compile_command " -Wl,-O1,--as-needed"\n func_append finalize_command " -Wl,-O1,--as-needed"\n\0/' libtool
  86. make %{?_smp_mflags}
  87. %install
  88. rm -rf $RPM_BUILD_ROOT
  89. make install DESTDIR=$RPM_BUILD_ROOT
  90. #desktop-file-install --delete-original \
  91. # --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  92. # --add-only-show-in GNOME \
  93. # $RPM_BUILD_ROOT%{_datadir}/applications/*.desktop
  94. # We don't want these
  95. rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/autostart
  96. rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/cursor-fonts
  97. # remove useless libtool archive files
  98. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
  99. # don't package mime caches
  100. rm -f $RPM_BUILD_ROOT%{_datadir}/mime/XMLnamespaces
  101. rm -f $RPM_BUILD_ROOT%{_datadir}/mime/aliases
  102. rm -f $RPM_BUILD_ROOT%{_datadir}/mime/application/x-gnome-theme-package.xml
  103. rm -f $RPM_BUILD_ROOT%{_datadir}/mime/globs
  104. rm -f $RPM_BUILD_ROOT%{_datadir}/mime/magic
  105. rm -f $RPM_BUILD_ROOT%{_datadir}/mime/subclasses
  106. rm -f $RPM_BUILD_ROOT%{_datadir}/mime/mime.cache
  107. rm -f $RPM_BUILD_ROOT%{_datadir}/applications/mimeinfo.cache
  108. %find_lang %{name}-timezones
  109. %clean
  110. rm -rf $RPM_BUILD_ROOT
  111. %post
  112. /sbin/ldconfig
  113. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  114. update-mime-database %{_datadir}/mime > /dev/null
  115. touch --no-create %{_datadir}/icons/hicolor
  116. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  117. /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
  118. fi
  119. %postun
  120. /sbin/ldconfig
  121. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  122. update-mime-database %{_datadir}/mime > /dev/null
  123. touch --no-create %{_datadir}/icons/hicolor
  124. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  125. /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
  126. fi
  127. %files -f %{name}-timezones.lang
  128. %defattr(-, root, root)
  129. %doc AUTHORS COPYING ChangeLog NEWS README
  130. %{_sysconfdir}/xdg/autostart/cinnamon-sound-applet.desktop
  131. %{_sysconfdir}/xdg/menus/cinnamoncc.menu
  132. %{_bindir}/%{name}
  133. %{_bindir}/cinnamon-sound-applet
  134. %{_libdir}/libcinnamon-control-center.so.*
  135. %{_libdir}/%{name}-1
  136. %{_datadir}/applications/*.desktop
  137. %{_datadir}/%{name}
  138. %{_datadir}/desktop-directories/cinnamoncc.directory
  139. %{_datadir}/icons/hicolor/*/*/*
  140. %{_datadir}/polkit-1/rules.d/%{name}.rules
  141. %files devel
  142. %defattr(-, root, root)
  143. %{_includedir}/cinnamon-control-center-1/
  144. %{_libdir}/libcinnamon-control-center.so
  145. %{_libdir}/pkgconfig/libcinnamon-control-center.pc
  146. %changelog
  147. * Sun Aug 31 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.2.11-1
  148. - new upstream release
  149. * Wed Jul 02 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.2.10-1
  150. - new upstream release
  151. * Sun Apr 20 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.2.3-1
  152. - initial build