gkeyfile-sharp-vl.spec 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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: 2%{?_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. Vendor: Project Vine
  30. Distribution: Vine Linux
  31. %package devel
  32. Summary: Development files for gkeyfile-sharp
  33. Requires: pkgconfig
  34. Requires: %{name} = %{version}-%{release}
  35. %description
  36. C# bindings for glib2's keyfile implementation
  37. %description devel
  38. Development files for gkeyfile-sharp
  39. %prep
  40. %setup -q -n mono-%{name}-%{dsuffix}
  41. %patch1 -p1 -b dllimport-fix
  42. %build
  43. ./autogen.sh
  44. %configure --libdir=%{_prefix}/lib
  45. make %{?_smp_mflags}
  46. %install
  47. rm -rf $RPM_BUILD_ROOT
  48. make install DESTDIR=$RPM_BUILD_ROOT
  49. chmod 644 `find $RPM_BUILD_ROOT%{_prefix}/lib/mono -name '*.dll.config'`
  50. rm -f $RPM_BUILD_ROOT%{_prefix}/lib/mono/%{name}/%{name}.dll.config
  51. mkdir -p %{buildroot}%{_libdir}/pkgconfig
  52. test "%{_libdir}" = "%{_prefix}/lib" || mv %{buildroot}%{_prefix}/lib/pkgconfig/*.pc %{buildroot}%{_libdir}/pkgconfig/
  53. %clean
  54. rm -rf $RPM_BUILD_ROOT
  55. %files
  56. %defattr(-,root,root,-)
  57. %doc AUTHORS ChangeLog LICENSE.LGPL NEWS
  58. %{_prefix}/lib/mono/gac/%{name}
  59. %{_prefix}/lib/mono/%{name}
  60. %files devel
  61. %defattr(-,root,root,-)
  62. %{_libdir}/pkgconfig/%{name}.pc
  63. %changelog
  64. * Sun Dec 29 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1-2
  65. - rebuild with VineSeed environment
  66. * Sun Jun 03 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.1-1
  67. - initial build for Vine Linux
  68. * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1-9
  69. - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
  70. * Thu Oct 27 2011 Christian Krause <chkr@fedoraproject.org> - 0.1-8
  71. - Change paths for mono assemblies according to updated packaging
  72. guidelines (http://fedoraproject.org/wiki/Packaging:Mono)
  73. * Sun May 08 2011 Christian Krause <chkr@fedoraproject.org> - 0.1-7
  74. - Add mono-devel as BR for correct generation of the Requires/Provides
  75. * Sun May 08 2011 Christian Krause <chkr@fedoraproject.org> - 0.1-6
  76. - Fix DllNotFoundException by adding upstream patch (BZ 692784)
  77. * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1-5
  78. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  79. * Tue Jan 04 2011 Dan Horák <dan[at]danny.cz> - 0.1-4
  80. - updated the supported arch list
  81. * Mon Oct 04 2010 Nathaniel McCallum <nathaniel@natemccallum.com> - 0.1-3
  82. - Fix directory ownership
  83. * Sun Oct 03 2010 Nathaniel McCallum <nathaniel@natemccallum.com> - 0.1-2
  84. - Fix -devel requires (pkgconfig, base package)
  85. - Disable debuginfo
  86. * Wed Sep 29 2010 Nathaniel McCallum <nathaniel@natemccallum.com> - 0.1-1
  87. - Initial version