gudev-sharp-vl.spec 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. %define tagname GUDEV_SHARP_0_1
  2. %define relvers 0
  3. %define tsuffix g2c53e2f
  4. %define dsuffix cd3e7df
  5. %global debug_package %{nil}
  6. Name: gudev-sharp
  7. Version: 0.1
  8. Release: 1%{?_dist_release}
  9. Summary: C# bindings for gudev
  10. Group: Development/Libraries
  11. License: LGPLv2
  12. URL: http://github.com/mono/%{name}
  13. # Releases are tarballs downloaded from a tag at github.
  14. # They are releases, but the file is generated on the fly.
  15. # The actual URL is: http://github.com/mono/$name/tarball/$tagname
  16. Source0: mono-%{name}-%{tagname}-%{relvers}-%{tsuffix}.tar.gz
  17. BuildRequires: mono-devel
  18. BuildRequires: autoconf
  19. BuildRequires: automake
  20. BuildRequires: libgudev1-devel
  21. BuildRequires: gtk2-devel
  22. BuildRequires: gtk-sharp2
  23. BuildRequires: gtk-sharp2-gapi
  24. # Mono only available on these:
  25. ExclusiveArch: %ix86 x86_64 ppc ppc64 ia64 %{arm} sparcv9 alpha s390x
  26. %package devel
  27. Summary: Development files for gudev-sharp
  28. Requires: pkgconfig
  29. Requires: %{name} = %{version}-%{release}
  30. %description
  31. C# bindings for gudev
  32. %description devel
  33. Development files for gudev-sharp
  34. %prep
  35. %setup -q -n mono-%{name}-%{dsuffix}
  36. %build
  37. sed -i 's|^\./configure.*||' autogen.sh # Remove the configure step, we'll do it manually
  38. ./autogen.sh
  39. %configure --libdir=%{_prefix}/lib
  40. make %{?_smp_mflags}
  41. %install
  42. make install DESTDIR=$RPM_BUILD_ROOT
  43. chmod 644 `find $RPM_BUILD_ROOT%{_prefix}/lib/mono -name '*.dll.config'`
  44. rm -f $RPM_BUILD_ROOT%{_prefix}/lib/mono/%{name}-1.0/%{name}.dll.config
  45. mkdir -p $RPM_BUILD_ROOT/%{_libdir}/pkgconfig
  46. test "%{_libdir}" = "%{_prefix}/lib" || mv $RPM_BUILD_ROOT/%{_prefix}/lib/pkgconfig/* $RPM_BUILD_ROOT/%{_libdir}/pkgconfig
  47. %files
  48. %defattr(-,root,root,-)
  49. %doc AUTHORS ChangeLog LICENSE.LGPL NEWS
  50. %{_prefix}/lib/mono/gac/%{name}
  51. %{_prefix}/lib/mono/%{name}-1.0
  52. %files devel
  53. %defattr(-,root,root,-)
  54. %{_libdir}/pkgconfig/%{name}-1.0.pc
  55. %changelog
  56. * Sun Jun 03 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1-1
  57. - initial build for Vine Linux
  58. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1-8
  59. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  60. * Sun Jan 01 2012 Christian Krause <chkr@fedoraproject.org> - 0.1-7
  61. - Add mandatory BR mono-devel
  62. * Mon Oct 31 2011 Christian Krause <chkr@fedoraproject.org> - 0.1-6
  63. - Change paths for mono assemblies according to updated packaging
  64. guidelines (http://fedoraproject.org/wiki/Packaging:Mono)
  65. * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1-5
  66. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  67. * Mon Jan 10 2011 Dan Horák <dan[at]danny.cz> - 0.1-4
  68. - updated the supported arch list
  69. * Mon Oct 04 2010 Nathaniel McCallum <nathaniel@natemccallum.com> - 0.1-3
  70. - Fix directory ownership
  71. * Sun Oct 03 2010 Nathaniel McCallum <nathaniel@natemccallum.com> - 0.1-2
  72. - Fix -devel requires (pkgconfig, base package)
  73. - Disable debuginfo
  74. * Wed Sep 29 2010 Nathaniel McCallum <nathaniel@natemccallum.com> - 0.1-1
  75. - Initial version