gkeyfile-sharp-vl.spec 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. %define tagname GKEYFILE_SHARP_0_1
  2. %define relvers 0
  3. %define tsuffix g07a401a
  4. %define dsuffix 662c5c1
  5. %global debug_package %{nil}
  6. Name: gkeyfile-sharp
  7. Version: 0.1
  8. Release: 1%{?_dist_release}
  9. Summary: C# bindings for glib2's keyfile implementation
  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. # Upstream patch to fix DllImport name of libglib (BZ 692784)
  18. # https://github.com/mono/gkeyfile-sharp/commit/1a1adb8ec4149b4a0a8e55db0e3baa172cbd2c3f
  19. Patch1: 0001-Change-glib-DllImports-to-libglib-2.0-0.dll.patch
  20. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  21. BuildRequires: autoconf
  22. BuildRequires: automake
  23. BuildRequires: glib2-devel
  24. BuildRequires: gtk-sharp2
  25. BuildRequires: gtk-sharp2-gapi
  26. BuildRequires: mono-devel
  27. # Mono only available on these:
  28. ExclusiveArch: %ix86 x86_64 ppc ppc64 ia64 %{arm} sparcv9 alpha s390x
  29. %package devel
  30. Summary: Development files for gkeyfile-sharp
  31. Requires: pkgconfig
  32. Requires: %{name} = %{version}-%{release}
  33. %description
  34. C# bindings for glib2's keyfile implementation
  35. %description devel
  36. Development files for gkeyfile-sharp
  37. %prep
  38. %setup -q -n mono-%{name}-%{dsuffix}
  39. %patch1 -p1 -b dllimport-fix
  40. %build
  41. ./autogen.sh
  42. %configure --libdir=%{_prefix}/lib
  43. make %{?_smp_mflags}
  44. %install
  45. rm -rf $RPM_BUILD_ROOT
  46. make install DESTDIR=$RPM_BUILD_ROOT
  47. chmod 644 `find $RPM_BUILD_ROOT%{_prefix}/lib/mono -name '*.dll.config'`
  48. rm -f $RPM_BUILD_ROOT%{_prefix}/lib/mono/%{name}/%{name}.dll.config
  49. mkdir -p %{buildroot}%{_libdir}/pkgconfig
  50. test "%{_libdir}" = "%{_prefix}/lib" || mv %{buildroot}%{_prefix}/lib/pkgconfig/*.pc %{buildroot}%{_libdir}/pkgconfig/
  51. %clean
  52. rm -rf $RPM_BUILD_ROOT
  53. %files
  54. %defattr(-,root,root,-)
  55. %doc AUTHORS ChangeLog LICENSE.LGPL NEWS
  56. %{_prefix}/lib/mono/gac/%{name}
  57. %{_prefix}/lib/mono/%{name}
  58. %files devel
  59. %defattr(-,root,root,-)
  60. %{_libdir}/pkgconfig/%{name}.pc
  61. %changelog
  62. * Sun Jun 03 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1-1
  63. - initial build for Vine Linux
  64. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1-9
  65. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  66. * Thu Oct 27 2011 Christian Krause <chkr@fedoraproject.org> - 0.1-8
  67. - Change paths for mono assemblies according to updated packaging
  68. guidelines (http://fedoraproject.org/wiki/Packaging:Mono)
  69. * Sun May 08 2011 Christian Krause <chkr@fedoraproject.org> - 0.1-7
  70. - Add mono-devel as BR for correct generation of the Requires/Provides
  71. * Sun May 08 2011 Christian Krause <chkr@fedoraproject.org> - 0.1-6
  72. - Fix DllNotFoundException by adding upstream patch (BZ 692784)
  73. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1-5
  74. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  75. * Tue Jan 04 2011 Dan Horák <dan[at]danny.cz> - 0.1-4
  76. - updated the supported arch list
  77. * Mon Oct 04 2010 Nathaniel McCallum <nathaniel@natemccallum.com> - 0.1-3
  78. - Fix directory ownership
  79. * Sun Oct 03 2010 Nathaniel McCallum <nathaniel@natemccallum.com> - 0.1-2
  80. - Fix -devel requires (pkgconfig, base package)
  81. - Disable debuginfo
  82. * Wed Sep 29 2010 Nathaniel McCallum <nathaniel@natemccallum.com> - 0.1-1
  83. - Initial version