libdesktop-agnostic-vl.spec 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. Name: libdesktop-agnostic
  2. Version: 0.3.92
  3. Release: 2%{?_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. sed -i "s/gladeui-1.0/gladeui-2.0/g" data/wscript
  47. %build
  48. export CFLAGS="%{optflags}"
  49. PYTHONDIR=%{python_sitearch} ./waf configure \
  50. --prefix=%{_prefix} \
  51. --libdir=%{_libdir} \
  52. --sysconfdir=%{_sysconfdir} \
  53. --enable-debug \
  54. --config-backends=gconf \
  55. --vfs-backends=gio \
  56. --desktop-entry-backends=glib \
  57. --with-glade \
  58. --disable-gi
  59. ./waf -v build
  60. %install
  61. rm -rf $RPM_BUILD_ROOT
  62. DESTDIR=$RPM_BUILD_ROOT ./waf install
  63. # install man files
  64. #mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1/
  65. #install -D -p -m 0644 debian/lda*1 $RPM_BUILD_ROOT%{_mandir}/man1
  66. # fix permissions so debuginfo is stripped from .so files
  67. find $RPM_BUILD_ROOT%{_libdir} -name *.so -exec chmod 755 {} \;
  68. %find_lang %{name}
  69. %clean
  70. rm -rf $RPM_BUILD_ROOT
  71. %post -p /sbin/ldconfig
  72. %postun -p /sbin/ldconfig
  73. %files -f %{name}.lang
  74. %defattr(-,root,root,-)
  75. %doc COPYING COPYING.GPL-2 debian/changelog
  76. %config(noreplace) %{_sysconfdir}/xdg/libdesktop-agnostic/desktop-agnostic.ini
  77. %{_libdir}/*.so.*
  78. %dir %{_libdir}/desktop-agnostic
  79. %dir %{_libdir}/desktop-agnostic/modules
  80. %{_libdir}/desktop-agnostic/modules/libda-*.so
  81. %files bin
  82. %defattr(-,root,root,-)
  83. %{_bindir}/lda-desktop-entry-editor
  84. %{_bindir}/lda-schema-to-gconf
  85. #%{_mandir}/man1/lda*1.gz
  86. %files -n python-desktop-agnostic
  87. %defattr(-,root,root,-)
  88. %dir %{python_sitearch}/desktopagnostic
  89. %{python_sitearch}/desktopagnostic/__init__.p*
  90. %{python_sitearch}/desktopagnostic/*.so
  91. %files devel
  92. %defattr(-,root,root,-)
  93. %{_includedir}/*
  94. %{_datadir}/pygtk/2.0/defs/desktopagnostic*defs
  95. %{_datadir}/vala/vapi/desktop-agnostic*
  96. %{_datadir}/glade/catalogs/desktop-agnostic.xml
  97. %{_libdir}/pkgconfig/desktop-agnostic.pc
  98. %{_libdir}/*.so
  99. %changelog
  100. * Wed Feb 29 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.3.92-2
  101. - rebuild with python-2.7.2
  102. * Mon Mar 14 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 0.3.92-1
  103. - initial build for Vine Linux based on fedora development
  104. * Wed Feb 09 2011 Leigh Scott <leigh123linux@googlemail.com> - 0.3.90-13
  105. - merge all upstream changes
  106. - add disable gi
  107. - add Br intltool gettext
  108. * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3.90-12
  109. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  110. * Mon Dec 06 2010 leigh scott <leigh123linux@googlemail.com> - 0.3.90-11
  111. - rebuilt
  112. * Sat Jul 31 2010 Orcan Ogetbil <oget[dot]fedora[at]gmail[dot]com> - 0.3.90-10
  113. - Hack to fool the builder the .gir file version. May need real fix.
  114. - Comment out BR: waf
  115. * Fri Jul 23 2010 leigh scott <leigh123linux@googlemail.com> - 0.3.90-9
  116. - drop Br gir-repository-devel
  117. * Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 0.3.90-8
  118. - Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
  119. * Sat Apr 24 2010 leigh scott <leigh123linux@googlemail.com> - 0.3.90-7
  120. - fix mistake in spec file
  121. * Mon Apr 19 2010 leigh scott <leigh123linux@googlemail.com> - 0.3.90-6
  122. - merge the remaining sub-package libs into the main package
  123. * Thu Apr 15 2010 leigh scott <leigh123linux@googlemail.com> - 0.3.90-5
  124. - merge gir sub-package into main package
  125. - fix license tag
  126. * Thu Apr 15 2010 leigh scott <leigh123linux@googlemail.com> - 0.3.90-4
  127. - make recommended review changes
  128. * Thu Apr 15 2010 leigh scott <leigh123linux@googlemail.com> - 0.3.90-3
  129. - add requires pkgconfig to devel package
  130. - drop unwanted sub-packages
  131. * Mon Apr 12 2010 leigh scott <leigh123linux@googlemail.com> - 0.3.90-2
  132. - move vala package and python defs to devel
  133. * Mon Apr 12 2010 leigh scott <leigh123linux@googlemail.com> - 0.3.90-1
  134. - update to 0.3.90
  135. * Tue Mar 30 2010 leigh scott <leigh123linux@googlemail.com> - 0.3.9-bzr383.01
  136. - inital build