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