/[packages]/cauldron/ruby-glib2/current/SPECS/ruby-glib2.spec
ViewVC logotype

Contents of /cauldron/ruby-glib2/current/SPECS/ruby-glib2.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1784866 - (show annotations) (download)
Fri Feb 25 20:20:25 2022 UTC (2 years, 4 months ago) by pterjan
File size: 1654 byte(s)
Fix build of modules depending on each other
1 %define oname glib2
2 %global header_dir %{ruby_vendorarchdir}
3
4 Name: ruby-%{oname}
5 Version: 3.5.1
6 Release: %mkrel 2
7 Summary: Ruby/GLib2 is a Ruby binding of GLib-2.x
8 License: GPLv2
9 Group: Development/Ruby
10 URL: http://ruby-gnome2.sourceforge.jp/
11 Source0: https://rubygems.org/gems/%{oname}-%{version}.gem
12 # Drop -Wl,--no-undefined from DLDFLAGS rather than LDFLAGS.
13 # This is where it is set.
14 Patch0: no-undefined.patch
15 # Do not install missing packages
16 Patch1: native-package-installer.patch
17 BuildRequires: rubygems
18 BuildRequires: ruby-devel
19 BuildRequires: glib2-devel
20 BuildRequires: rubygem(pkg-config)
21 BuildRequires: rubygem(test-unit)
22
23 %description
24 Ruby/GLib2 is a Ruby binding of GLib-2.x.
25
26 %files
27 %{gem_instdir}/
28 %{gem_spec}
29 %{gem_extdir_mri}
30
31 #-------------------------------------------------------------------------------
32 %package doc
33 Summary: Documentation for %{name}
34 Group: Development/Ruby
35 BuildArch: noarch
36 Requires: %{name} = %{version}-%{release}
37
38 %description doc
39 Documents, Rdoc & RI documentation for %{name}.
40
41 %files doc
42 %doc %{gem_docdir}
43
44 #-------------------------------------------------------------------------------
45 %package devel
46 Summary: Development files for %{name}
47 Group: Development/Ruby
48 Requires: %{name} = %{version}-%{release}
49
50 %description devel
51 Development headers for %{name}
52
53 %files devel
54 %{header_dir}/*.h
55
56 #-------------------------------------------------------------------------------
57
58 %prep
59 %gem_setup
60 %autopatch -p1
61 %gemspec_remove_dep -g native-package-installer
62
63 %build
64 %gem_build
65
66 %install
67 %gem_install -d

  ViewVC Help
Powered by ViewVC 1.1.30