gkeyfile-sharp-vl.spec 3.8 KB

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