latexila-vl.spec 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. Name: latexila
  2. Version: 2.2.2
  3. Release: 1%{?_dist_release}
  4. Summary: Integrated LaTeX Environment for the GNOME desktop
  5. Group: Applications/Publishing
  6. License: GPLv3+
  7. URL: http://projects.gnome.org/latexila/
  8. Source0: http://ftp.gnome.org/pub/GNOME/sources/%{name}/2.2/%{name}-%{version}.tar.xz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  10. BuildRequires: gettext
  11. BuildRequires: cmake
  12. BuildRequires: gtksourceview2-devel
  13. BuildRequires: desktop-file-utils
  14. BuildRequires: libgee-devel
  15. BuildRequires: unique-devel
  16. BuildRequires: itstool
  17. Requires: hicolor-icon-theme
  18. Requires: itstool
  19. Requires: latexmk
  20. Requires: rubber
  21. Requires: gsettings-desktop-schemas
  22. Vendor: Project Vine
  23. Distribution: Vine Linux
  24. %description
  25. LaTeXila is an Integrated LaTeX Environment for GNOME. The main features are:
  26. * Configurable buttons to compile, convert and view a document in one click
  27. * LaTeX commands auto-completion
  28. * Symbol tables (Greek letters, arrows, ...)
  29. * File browser integrated
  30. * Template managing
  31. * Menus with the most commonly used LaTeX commands
  32. * Easy projects management
  33. %prep
  34. %setup -q
  35. %build
  36. %cmake -DCMAKE_C_FLAGS:STRING="%{optflags}" .
  37. make VERBOSE=1 %{?_smp_mflags}
  38. %install
  39. rm -rf %{buildroot}
  40. make install DESTDIR=%{buildroot}
  41. %find_lang %{name}
  42. #Adding folders for .desktop file and icons
  43. for s in 16 22 24 32 48; do
  44. install -Dp data/images/app/icon$s.png \
  45. %{buildroot}%{_datadir}/icons/hicolor/${s}x$s/apps/%{name}.png
  46. done
  47. desktop-file-install \
  48. --dir %{buildroot}%{_datadir}/applications \
  49. %{buildroot}%{_datadir}/applications/%{name}.desktop
  50. %clean
  51. rm -rf %{buildroot}
  52. %post
  53. update-desktop-database &> /dev/null || :
  54. touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
  55. if [ $1 -eq 1 ] ; then
  56. glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
  57. fi
  58. %postun
  59. update-desktop-database &> /dev/null || :
  60. if [ $1 -eq 0 ] ; then
  61. touch --no-create %{_datadir}/icons/hicolor &>/dev/null
  62. gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  63. fi
  64. glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
  65. %posttrans
  66. gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  67. %files -f %{name}.lang
  68. %defattr(-,root,root,-)
  69. %doc AUTHORS COPYING README NEWS HACKING TODO
  70. %{_mandir}/man1/%{name}.1.*
  71. %{_bindir}/*
  72. %{_datadir}/%{name}/
  73. %{_datadir}/applications/%{name}.desktop
  74. %{_datadir}/icons/hicolor/16x16/apps/%{name}.png
  75. %{_datadir}/icons/hicolor/22x22/apps/%{name}.png
  76. %{_datadir}/icons/hicolor/24x24/apps/%{name}.png
  77. %{_datadir}/icons/hicolor/32x32/apps/%{name}.png
  78. %{_datadir}/icons/hicolor/48x48/apps/%{name}.png
  79. %{_datadir}/glib-2.0/schemas/org.gnome.%{name}.gschema.xml
  80. %{_datadir}/gnome/help/%{name}
  81. %changelog
  82. * Mon Oct 10 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.2.2-1
  83. - initial build for Vine Linux
  84. * Tue Jul 12 2011 Thibault North <tnorth@fedoraproject.org> - 2.0.8-1
  85. - Update to 2.0.8
  86. * Thu Apr 7 2011 Thibault North <tnorth@fedoraproject.org> - 2.0.7-1
  87. - Update to 2.0.7
  88. * Sun Mar 20 2011 Thibault North <tnorth@fedoraproject.org> - 2.0.6-1
  89. - Update to 2.0.6
  90. * Tue Feb 15 2011 Thibault North <tnorth@fedoraproject.org> - 2.0.5-1
  91. - Update to 2.0.5, thanks Sébastien Wilmet
  92. * Thu Nov 25 2010 Thibault North <tnorth@fedoraproject.org> - 2.0.1-4
  93. - A few more fixes
  94. * Mon Nov 22 2010 Thibault North <tnorth@fedoraproject.org> - 2.0.1-3
  95. - Use %%find_lang, fixes by Mohamed El Morabity
  96. * Sun Nov 21 2010 Thibault North <tnorth@fedoraproject.org> - 2.0.1-2
  97. - Small fixes
  98. * Sun Nov 21 2010 Sébastien Wilmet <sebastien.wilmet@gmail.com> - 2.0.1-1
  99. - Release 2.0.1
  100. * Sun Nov 14 2010 Thibault North <tnorth@fedoraproject.org> - 2.0.0-1
  101. - Release 2.0
  102. * Mon Mar 1 2010 Sébastien Wilmet <sebastien.wilmet@gmail.com> - 0.2-1
  103. - New upstream release
  104. - Icons support
  105. * Fri Dec 25 2009 Sébastien Wilmet <sebastien.wilmet@gmail.com> - 0.1-1
  106. - Initial package for Fedora