xmlcopyeditor-vl.spec 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. Summary: Fast, free, validating XML editor
  2. Summary(ja): 高速な XML 検証エディタ
  3. Name: xmlcopyeditor
  4. Version: 1.2.1.3
  5. Release: 2%{?_dist_release}
  6. License: GPLv2
  7. Group: Applications/Editors
  8. URL: http://xml-copy-editor.sourceforge.net/
  9. Source0: xmlcopyeditor-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildRequires: aspell-devel
  12. BuildRequires: desktop-file-utils
  13. BuildRequires: enchant-devel
  14. BuildRequires: expat-devel
  15. BuildRequires: libboost-devel
  16. BuildRequires: libxml2-devel
  17. BuildRequires: libxslt-devel
  18. BuildRequires: pcre-devel
  19. BuildRequires: xerces-c-devel
  20. BuildRequires: wxGTK-devel >= 2.8
  21. Requires(post): desktop-file-utils
  22. Requires(postun): desktop-file-utils
  23. %description
  24. XML Copy Editor is an XML editor focusing on editing document markup languages like DITA, DocBook, WordprocessingML. It features DTD/XML Schema/RELAX NG validation, XSLT, XPath, pretty-printing, syntax highlighting, folding, tag completion/locking, and a spelling/style check.
  25. %prep
  26. %setup -q
  27. find src -type f -print0 | xargs -0 chmod a-x
  28. tr -d '\r' < src/copying/gpl.txt > COPYING
  29. chmod a-x AUTHORS COPYING NEWS
  30. %build
  31. %configure
  32. make %{?_smp_mflags}
  33. %install
  34. rm -rf $RPM_BUILD_ROOT
  35. make install DESTDIR=$RPM_BUILD_ROOT
  36. desktop-file-install \
  37. --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  38. --remove-key=Icon \
  39. --set-key=Icon --set-value=xmlcopyeditor.png \
  40. $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
  41. %find_lang %{name}
  42. %clean
  43. rm -rf $RPM_BUILD_ROOT
  44. %post
  45. update-desktop-database &> /dev/null || :
  46. %postun
  47. update-desktop-database &> /dev/null || :
  48. %files -f %{name}.lang
  49. %defattr(-,root,root)
  50. %doc AUTHORS COPYING NEWS
  51. %{_bindir}/%{name}
  52. %{_datadir}/appdata/%{name}.appdata.xml
  53. %{_datadir}/applications/%{name}.desktop
  54. %{_datadir}/pixmaps/%{name}.png
  55. %{_datadir}/%{name}
  56. %{_mandir}/man1/*
  57. %changelog
  58. * Thu Sep 01 2016 Toshiaki Ara <ara_t@384.jp> - 1.2.1.3-2
  59. - rebuild with gcc-5.4.0
  60. * Sat Jan 24 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> - 1.2.1.3-1
  61. - new upstream release
  62. - built with xerces-c 3.1.1
  63. * Wed Jul 11 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.2.0.6.2-2
  64. - changed Buildrequires: wx-gtk2-devel >= 2.8 to wxGTK-devel >= 2.8
  65. * Tue Feb 23 2010 Shu KONNO <owa@bg.wakwak.com> 1.2.0.6.2-1
  66. - initial build for vine seed