cinnamon-control-center-vl.spec 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. Summary: Cinnamon Control Center.
  2. Summary(ja): Cinnamon コントロールセンター
  3. Name: cinnamon-control-center
  4. Version: 2.8.1
  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: upower-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: libsocialweb-devel
  56. BuildRequires: iso-codes
  57. %description
  58. The control-center package provides the Cinnamon Control Center utilities
  59. that allow you to setup and configure your system's Cinnamon environment
  60. (things like the desktop background and theme, the screensaver,
  61. the window manager, system sounds, and mouse behavior).
  62. %description -l ja
  63. Cinnamon-control-center パッケージには、あなたの Cinnamon 環境の設定に使う
  64. Cinnamon コントロールセンター・ユーティリティが含まれています。
  65. (これを使うと、デスクトップの壁紙や、テーマ、スクリーンセーバ、ウィン
  66. ドウマネージャ、サウンド、マウス、その他いろいろな設定を行えます。)
  67. %package devel
  68. Summary: Development files for Cinnamon Control Center
  69. Summary(ja): Cinnamon コントロールセンターの開発用ファイル
  70. Group: Development/Libraries
  71. Requires: %{name} = %{version}-%{release}
  72. %description devel
  73. Development tool for Cinnamon Control Center
  74. %descriotion -l ja devel
  75. Cinnamon コントロールセンターの開発用ファイルが含まれています。
  76. %prep
  77. %setup -q
  78. %build
  79. autoreconf -if
  80. %configure --disable-static \
  81. --disable-update-mimedb \
  82. --with-libsocialweb=yes
  83. CFLAGS="$RPM_OPT_FLAGS -Wno-error"
  84. # drop unneeded direct library deps with --as-needed
  85. # libtool doesn't make this easy, so we do it the hard way
  86. 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
  87. make %{?_smp_mflags}
  88. %install
  89. rm -rf $RPM_BUILD_ROOT
  90. make install DESTDIR=$RPM_BUILD_ROOT
  91. #desktop-file-install --delete-original \
  92. # --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  93. # --add-only-show-in GNOME \
  94. # $RPM_BUILD_ROOT%{_datadir}/applications/*.desktop
  95. # We don't want these
  96. rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/autostart
  97. rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/cursor-fonts
  98. # remove useless libtool archive files
  99. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} \;
  100. # don't package mime caches
  101. rm -f $RPM_BUILD_ROOT%{_datadir}/mime/XMLnamespaces
  102. rm -f $RPM_BUILD_ROOT%{_datadir}/mime/aliases
  103. rm -f $RPM_BUILD_ROOT%{_datadir}/mime/application/x-gnome-theme-package.xml
  104. rm -f $RPM_BUILD_ROOT%{_datadir}/mime/globs
  105. rm -f $RPM_BUILD_ROOT%{_datadir}/mime/magic
  106. rm -f $RPM_BUILD_ROOT%{_datadir}/mime/subclasses
  107. rm -f $RPM_BUILD_ROOT%{_datadir}/mime/mime.cache
  108. rm -f $RPM_BUILD_ROOT%{_datadir}/applications/mimeinfo.cache
  109. %find_lang %{name}-timezones
  110. %clean
  111. rm -rf $RPM_BUILD_ROOT
  112. %post
  113. /sbin/ldconfig
  114. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  115. update-mime-database %{_datadir}/mime > /dev/null
  116. touch --no-create %{_datadir}/icons/hicolor
  117. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  118. /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
  119. fi
  120. %postun
  121. /sbin/ldconfig
  122. update-desktop-database %{_datadir}/applications >& /dev/null ||:
  123. update-mime-database %{_datadir}/mime > /dev/null
  124. touch --no-create %{_datadir}/icons/hicolor
  125. if [ -x /usr/bin/gtk-update-icon-cache ]; then
  126. /usr/bin/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor ||:
  127. fi
  128. %files -f %{name}-timezones.lang
  129. %defattr(-, root, root)
  130. %doc AUTHORS COPYING ChangeLog NEWS README
  131. %{_sysconfdir}/xdg/autostart/cinnamon-sound-applet.desktop
  132. %{_sysconfdir}/xdg/menus/cinnamoncc.menu
  133. %{_bindir}/%{name}
  134. %{_bindir}/cinnamon-sound-applet
  135. %{_libdir}/libcinnamon-control-center.so.*
  136. %{_libdir}/%{name}-1
  137. %{_datadir}/applications/*.desktop
  138. %{_datadir}/%{name}
  139. %{_datadir}/desktop-directories/cinnamoncc.directory
  140. %{_datadir}/icons/hicolor/*/*/*
  141. %{_datadir}/polkit-1/rules.d/%{name}.rules
  142. %files devel
  143. %defattr(-, root, root)
  144. %{_includedir}/cinnamon-control-center-1/
  145. %{_libdir}/libcinnamon-control-center.so
  146. %{_libdir}/pkgconfig/libcinnamon-control-center.pc
  147. %changelog
  148. * Fri Nov 13 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.1-1
  149. - new upstream release
  150. * Sun May 10 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.2-2
  151. - add BuildRequires: libsocialweb-devel
  152. * Sat Jan 03 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.4.2-1
  153. - new upstream release
  154. * Sun Sep 21 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.2.11-2
  155. - change BuildRequires: upower-devel instead of libupower09-devel
  156. * Sun Aug 31 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.2.11-1
  157. - new upstream release
  158. * Wed Jul 02 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.2.10-1
  159. - new upstream release
  160. * Sun Apr 20 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.2.3-1
  161. - initial build