source: projects/specs/trunk/Q/QtRuby/QtRuby-vl.spec @ 9079

Revision 9079, 7.1 KB checked in by inagaki, 9 years ago (diff)

2014-11-12 Ryoichi INAGAKI <ryo1@…>

  • QtRuby?, korundum: fixed install location


Line 
1%define _qt4_version %(pkg-config --modversion --silence-errors Qt 2>/dev/null || echo 4.8.6)
2
3%global ruby_vendorlib %(ruby -rrbconfig -e 'puts RbConfig::CONFIG["vendorlibdir"]')
4%global ruby_vendorarch %(ruby -rrbconfig -e 'puts RbConfig::CONFIG["vendorarchdir"]')
5
6Name:    QtRuby
7Summary:  Ruby bindings for Qt4
8Summary(ja): Qt4 の Ruby バインディング
9Version: 4.14.2
10Release: 2%{?_dist_release}
11
12License: LGPLv2+ and GPLv2+
13Group:   System Environment/Libraries
14URL:     https://techbase.kde.org/Development/Languages/Ruby
15
16Source0: http://download.kde.org/stable/%{version}/src/qtruby-%{version}.tar.xz
17
18BuildRoot: %{_tmppath}/%{name}-%{version}-root
19BuildRequires: cmake
20BuildRequires: phonon-devel
21BuildRequires: qimageblitz-devel
22BuildRequires: qt4-devel
23BuildRequires: qscintilla-devel
24BuildRequires: qwt-qt4-devel
25BuildRequires: ruby-devel >= 1.8
26BuildRequires: smokeqt-devel >= %{version}
27
28# common name some other distros use
29Provides: ruby-qt = %{version}-%{release}
30
31Requires: qt4 >= %{_qt4_version}
32Requires: ruby >= 1.8
33Requires: smokeqt >= %{version}
34
35%description
36%{summary}.
37
38%package devel
39Summary: Development libraries for %{name}
40Summary(ja): %{name} の開発用ファイル
41Group:   Development/Libraries
42Requires: %{name} = %{version}-%{release}
43Provides: ruby-qt-devel = %{version}-%{release}
44
45%description devel
46This package contains development files for the Ruby bindings
47for the Qt libraries.
48
49
50%prep
51%setup -q -n qtruby-%{version}
52
53
54%build
55mkdir -p %{_target_platform}
56pushd %{_target_platform}
57
58%cmake \
59    -DCUSTOM_RUBY_SITE_ARCH_DIR:PATH=%{ruby_vendorarch} \
60    -DCUSTOM_RUBY_SITE_LIB_DIR:PATH=%{ruby_vendorlib} \
61    ..
62popd
63
64make %{?_smp_mflags} -C %{_target_platform}
65
66
67%install
68rm -rf $RPM_BUILD_ROOT
69make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
70
71
72%post -p /sbin/ldconfig
73%postun -p /sbin/ldconfig
74
75%clean
76rm -rf $RPM_BUILD_ROOT
77
78%files
79%defattr(-,root,root,-)
80%doc AUTHORS COPYING COPYING.LIB README
81%{_libdir}/libqtruby4shared.so.*
82%{ruby_vendorlib}/Qt*.rb
83%{ruby_vendorlib}/Qt/
84%{ruby_vendorlib}/phonon/
85%{ruby_vendorlib}/qscintilla/
86%{ruby_vendorlib}/qtdeclarative/
87%{ruby_vendorlib}/qtscript/
88%{ruby_vendorlib}/qttest/
89%{ruby_vendorlib}/qtuitools/
90%{ruby_vendorlib}/qtwebkit/
91%{ruby_vendorlib}/qwt/
92%{ruby_vendorarch}/*.so
93
94%files devel
95%defattr(-,root,root,-)
96%{_bindir}/rbqtapi
97%{_bindir}/rbrcc
98%{_bindir}/rbuic4
99%{_includedir}/qtruby
100%{_libdir}/libqtruby4shared.so
101%{_datadir}/qtruby4
102
103%changelog
104* Wed Nov 12 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 4.14.2-2
105- installed modules to vendor_ruby
106- fixed URL
107
108* Sun Nov  9 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 4.14.2-1
109- splitted from kdebindings
110
111* Thu Jun 16 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.6.4-1
112- new upstream release
113
114* Thu Apr 14 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.6.1-1
115- updated to 4.6.1
116- added BR: kdesdk-devel
117- disabled attica plugins temporaly
118- rebuilt with mono-2.10.1
119
120* Sun Sep 26 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.5.1-2
121- rebuilt with rpm-4.8.1 for pkg-config
122
123* Sat Sep 18 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.5.1-1
124- new upstream release
125- added Patch50
126- added more japanese summaries
127
128* Tue Aug 17 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.5.0-1
129- new upstream release
130
131* Sun Jul  4 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.4.5-1
132- new upstream release
133
134* Fri May  7 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.4.3-1
135- new upstream release
136
137* Thu Apr 15 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.4.2-1
138- new upstream release
139
140* Tue Mar  9 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.4.1-1
141- new upstream release
142- added -DCMAKE_SKIP_RPATH:BOOL=OFF option to cmake
143  (see https://bugs.kde.org/show_bug.cgi?id=214824)
144- built with new toolchain
145
146* Wed Nov 25 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.3.3-1
147- new upstream release
148
149* Thu Oct 29 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.3.2-4
150- merged 4.3.1-2 %changelog
151- re-define %%{mono_dir} to %{_prefix}/lib/mono (again)
152
153* Tue Oct 27 2009 Shu KONNO <owa@bg.wakwak.com> 4.3.2-3
154- use %%{_prefix}/lib for mono-dll (for x86_64)
155
156* Tue Oct 27 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.3.2-2
157- new upstream release
158- built with PyQt4-4.6
159
160* Sun Sep 06 2009 NAKAMURA Kenta <kenta@vinelinux.org> 4.3.1-2
161- define %%{mono_dir} to specify mono library install path
162
163* Sun Sep  6 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.3.1-1
164- new upstream release
165- fixed ruby modules installation path
166
167* Thu Aug 20 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.3.0-1
168- new upstream release
169- spilt sub package based on Fedora
170
171* Mon May 11 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.5.8-1
172- applied new versioning policy
173- added Patch1
174  (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=484191)
175
176* Fri Nov 23 2007 NAKAMURA Kenta <kenta@vinelinux.org> 3.5.8-0vl3
177- added --with-qt-libraries option
178
179* Mon Oct 29 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.8-0vl2
180- rebuild for VineSeed
181
182* Mon Oct 29 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.8-0vl1
183- new upstream release
184
185* Mon Jun 25 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.7-0vl2
186- rebuild for VineSeed
187
188* Thu May 31 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.7-0vl1
189- new upstream release
190- update Patch0
191- drop Patch1
192
193* Mon Jan 29 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.6-0vl1
194- new upstream release
195- add Patch1
196- add --enable-libsuffix option
197
198* Tue Oct  3 2006 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.5-0vl2
199- rebuild for VineSeed
200
201* Tue Oct  3 2006 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.5-0vl1
202- new upstream release
203
204* Wed Aug  2 2006 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.4-0vl2
205- rebuild for VineSeed
206
207* Wed Aug  2 2006 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.4-0vl1
208- new upstream release
209
210* Thu Jun  1 2006 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.3-0vl2
211- rebuild for VineSeed
212
213* Thu Jun  1 2006 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.3-0vl1
214- new upstream release
215
216* Wed Mar 22 2006 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.2-0vl2
217- rebuild for VineSeed
218
219* Wed Mar 22 2006 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.2-0vl1
220- new upstream release
221
222* Wed Feb  1 2006 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.1-0vl2
223- rebuild for VineSeed
224
225* Wed Feb  1 2006 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 3.5.1-0vl1
226- new upstream release
227- renew BuildPrereq and build section
228- renew %%files
229- enable python
230- change spec to make main and devel package
231- add BuildPrereq: ruby ruby-devel
232- add Patch0 to install ruby-bindings under /usr/lib/ruby
233
234* Sun Mar 17 2002 AKIYAMA Kazuhito <akiyama@karen.servepics.com> 2.2.2-1vl1
235- build for VineSeed
236- disable python and mozilla
237- objprelink (i386 only)
238
239* Wed Nov 21 2001 Than Ngo <than@redhat.com> <bero@redhat.com> 2.2.2-1
240- 2.2.2
241- build kmozilla binding only on x86/alpha
242
243* Thu Aug  9 2001 Bernhard Rosenkraenzer <bero@redhat.com> 2.2-2
244- Make sure %%{name}-kmozilla isn't built on ia64
245
246* Mon Jul 23 2001 Bernhard Rosenkraenzer <bero@redhat.com> 2.2-0.cvs20010723.2
247- Move python bindings to separate package
248- Add perl bindings
249- Shut up rpmlint
250
251* Wed Feb 21 2001 Bernhard Rosenkraenzer <bero@redhat.com>
252- 2.1
253
254* Sun Jan 28 2001 Bernhard Rosenkraenzer <bero@redhat.com>
255- initial RPM
Note: See TracBrowser for help on using the repository browser.