libdesktop-agnostic-vl.spec 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. Name: libdesktop-agnostic
  2. Version: 0.3.92
  3. Release: 1%{?_dist_release}
  4. Summary: Provides an extensible configuration API
  5. Group: System Environment/Libraries
  6. License: GPLv2+ and LGPLv2+
  7. URL: https://launchpad.net/libdesktop-agnostic
  8. Source0: http://launchpad.net/libdesktop-agnostic/0.4/%{version}/+download/%{name}-%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  10. BuildRequires: pygtk2-devel
  11. BuildRequires: python-devel
  12. BuildRequires: gobject-introspection-devel
  13. BuildRequires: GConf2-devel
  14. BuildRequires: vala
  15. BuildRequires: gtk+-devel
  16. BuildRequires: gnome-desktop-devel
  17. BuildRequires: glade3-devel
  18. BuildRequires: gettext
  19. BuildRequires: intltool
  20. %description
  21. This library provides an extensible configuration API.
  22. A unified virtual file system API, and a desktop item editor.
  23. %package bin
  24. Summary: Helper applications for %{name}
  25. Group: Applications/System
  26. Requires: %{name} = %{version}-%{release}
  27. %description bin
  28. This package contains helper applications for libdesktop-agnostic, such as a
  29. schema converter.
  30. %package -n python-desktop-agnostic
  31. Summary: Python bindings for %{name}
  32. Group: Development/Languages
  33. Requires: %{name} = %{version}-%{release}
  34. %description -n python-desktop-agnostic
  35. This package contains the Python bindings for the core library.
  36. %package devel
  37. Summary: Development files for %{name}
  38. Group: Development/Libraries
  39. Requires: %{name} = %{version}-%{release}
  40. Requires: pkgconfig
  41. %description devel
  42. The %{name}-devel package contains libraries and header files for
  43. developing applications that use %{name}.
  44. %prep
  45. %setup -q
  46. %build
  47. export CFLAGS="%{optflags}"
  48. PYTHONDIR=%{python_sitearch} ./waf configure \
  49. --prefix=%{_prefix} \
  50. --libdir=%{_libdir} \
  51. --sysconfdir=%{_sysconfdir} \
  52. --enable-debug \
  53. --config-backends=gconf \
  54. --vfs-backends=gio \
  55. --desktop-entry-backends=glib \
  56. --with-glade \
  57. --disable-gi
  58. ./waf -v build
  59. %install
  60. rm -rf $RPM_BUILD_ROOT
  61. DESTDIR=$RPM_BUILD_ROOT ./waf install
  62. # install man files
  63. #mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1/
  64. #install -D -p -m 0644 debian/lda*1 $RPM_BUILD_ROOT%{_mandir}/man1
  65. # fix permissions so debuginfo is stripped from .so files
  66. find $RPM_BUILD_ROOT%{_libdir} -name *.so -exec chmod 755 {} \;
  67. %find_lang %{name}
  68. %clean
  69. rm -rf $RPM_BUILD_ROOT
  70. %post -p /sbin/ldconfig
  71. %postun -p /sbin/ldconfig
  72. %files -f %{name}.lang
  73. %defattr(-,root,root,-)
  74. %doc COPYING COPYING.GPL-2 debian/changelog
  75. %config(noreplace) %{_sysconfdir}/xdg/libdesktop-agnostic/desktop-agnostic.ini
  76. %{_libdir}/*.so.*
  77. %dir %{_libdir}/desktop-agnostic
  78. %dir %{_libdir}/desktop-agnostic/modules
  79. %{_libdir}/desktop-agnostic/modules/libda-*.so
  80. %files bin
  81. %defattr(-,root,root,-)
  82. %{_bindir}/lda-desktop-entry-editor
  83. %{_bindir}/lda-schema-to-gconf
  84. #%{_mandir}/man1/lda*1.gz
  85. %files -n python-desktop-agnostic
  86. %defattr(-,root,root,-)
  87. %dir %{python_sitearch}/desktopagnostic
  88. %{python_sitearch}/desktopagnostic/__init__.p*
  89. %{python_sitearch}/desktopagnostic/*.so
  90. %files devel
  91. %defattr(-,root,root,-)
  92. %{_includedir}/*
  93. %{_datadir}/pygtk/2.0/defs/desktopagnostic*defs
  94. %{_datadir}/vala/vapi/desktop-agnostic*
  95. %{_datadir}/glade3/catalogs/desktop-agnostic.xml
  96. %{_libdir}/pkgconfig/desktop-agnostic.pc
  97. %{_libdir}/*.so
  98. %changelog
  99. * Mon Mar 14 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 0.3.92-1
  100. - initial build for Vine Linux based on fedora development
  101. * Wed Feb 09 2011 Leigh Scott <leigh123linux@googlemail.com> - 0.3.90-13
  102. - merge all upstream changes
  103. - add disable gi
  104. - add Br intltool gettext
  105. * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.90-12
  106. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  107. * Mon Dec 06 2010 leigh scott <leigh123linux@googlemail.com> - 0.3.90-11
  108. - rebuilt
  109. * Sat Jul 31 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 0.3.90-10
  110. - Hack to fool the builder the .gir file version. May need real fix.
  111. - Comment out BR: waf
  112. * Fri Jul 23 2010 leigh scott <leigh123linux@googlemail.com> - 0.3.90-9
  113. - drop Br gir-repository-devel
  114. * Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.3.90-8
  115. - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
  116. * Sat Apr 24 2010 leigh scott <leigh123linux@googlemail.com> - 0.3.90-7
  117. - fix mistake in spec file
  118. * Mon Apr 19 2010 leigh scott <leigh123linux@googlemail.com> - 0.3.90-6
  119. - merge the remaining sub-package libs into the main package
  120. * Thu Apr 15 2010 leigh scott <leigh123linux@googlemail.com> - 0.3.90-5
  121. - merge gir sub-package into main package
  122. - fix license tag
  123. * Thu Apr 15 2010 leigh scott <leigh123linux@googlemail.com> - 0.3.90-4
  124. - make recommended review changes
  125. * Thu Apr 15 2010 leigh scott <leigh123linux@googlemail.com> - 0.3.90-3
  126. - add requires pkgconfig to devel package
  127. - drop unwanted sub-packages
  128. * Mon Apr 12 2010 leigh scott <leigh123linux@googlemail.com> - 0.3.90-2
  129. - move vala package and python defs to devel
  130. * Mon Apr 12 2010 leigh scott <leigh123linux@googlemail.com> - 0.3.90-1
  131. - update to 0.3.90
  132. * Tue Mar 30 2010 leigh scott <leigh123linux@googlemail.com> - 0.3.9-bzr383.01
  133. - inital build