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