source: projects/specs/trunk/lib/libf/libffi/libffi-vl.spec @ 12376

Revision 12376, 5.6 KB checked in by tomop, 4 years ago (diff)

updated 19 packages

g-wrap-1.9.15-2

gjs-1.54.3-2

glib2-2.64.2-2

gobject-introspection-1.64.1-1

guile-2.2.7-1

guile20-2.0.14-5

hardinfo-0.5.1-4

llvm-10.0.0-2

libffi-3.3-1

libffi321-3.2.1-1

p11-kit-0.23.20-2

pycairo-1.18.2-1

pygobject-2.28.6-7

pygobject3-3.34.0-1

python-cffi-1.14.0-1

python-2.7.17-1

python3-3.5.9-1

ruby-2.6.6-2

uim-1.8.8-3

Line 
1%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
2
3Summary:        Foreign function interface library
4Summary(ja):    Foreign function interface ライブラリ
5Name:           libffi
6Version:        3.3
7Release:        1%{?_dist_release}
8Group:          System Environment/Libraries
9Vendor:         Project Vine
10Distribution:   Vine Linux
11
12License:        Distributable
13URL:            http://sourceware.org/libffi/
14Source0:        https://github.com/libffi/libffi/releases/download/v%{version}/%{name}-%{version}.tar.gz
15
16BuildRequires:  gcc
17BuildRequires:  texinfo
18BuildRoot:      %{_tmppath}/%{name}-%{version}-root
19
20%description
21A foreign function interface is the popular name for the interface
22that allows code written in one language to call code written in
23another language.
24
25%description -l ja
26Foreign function interface は一般に普及しているインターフェイスで、
27ある言語で書かれたコードから、他の言語で書かれたコードを呼び出すこ
28とを可能にします。
29
30#-----------------------------------------------------------------------------
31
32%package        devel
33Summary:        Libraries and headers for %{name}
34Summary(ja):    %{name} 用の開発ライブラリおよびヘッダファイル
35Group:          Development/Libraries
36Requires:       %{name} = %{version}
37Requires:       pkgconfig
38
39%description devel
40This package includes the files needed for developing and compiling
41applications which use the ffi library.
42
43You should install the libffi-devel package if you would like to
44develop applications using libffi.
45
46%description devel -l ja
47このパッケージは ffi ライブラリを使用するアプリケーションを開発
48するのに必要なライブラリやヘッダファイルを含んでいます。
49
50libffi を使用したアプリケーションを開発するなら、このパッケージ
51をインストールしてください。
52
53#compat32
54%package -n     compat32-%{name}
55Summary:        Foreign function interface library
56Summary(ja):    Foreign function interface ライブラリ
57Group:          System Environment/Libraries
58Requires:       %{name} = %{version}
59
60%description -n compat32-%{name}
61A foreign function interface is the popular name for the interface
62that allows code written in one language to call code written in
63another language.
64
65%description -n compat32-%{name} -l ja
66Foreign function interface は一般に普及しているインターフェイスで、
67ある言語で書かれたコードから、他の言語で書かれたコードを呼び出すこ
68とを可能にします。
69
70%package -n     compat32-%{name}-devel
71Summary:        Libraries and headers for %{name}
72Summary(ja):    %{name} 用の開発ライブラリおよびヘッダファイル
73Group:          Development/Libraries
74Requires:       compat32-%{name} = %{version}
75Requires:       %{name}-devel = %{version}
76
77%description -n compat32-%{name}-devel
78This package includes the files needed for developing and compiling
79applications which use the ffi library.
80
81You should install the libffi-devel package if you would like to
82develop applications using libffi.
83
84%description -n compat32-%{name}-devel -l ja
85このパッケージは ffi ライブラリを使用するアプリケーションを開発
86するのに必要なライブラリやヘッダファイルを含んでいます。
87
88libffi を使用したアプリケーションを開発するなら、このパッケージ
89をインストールしてください。
90
91#-----------------------------------------------------------------------------
92
93
94%prep
95%setup -q
96sed -i -e 's/{toolexeclibdir}/{libdir}/' libffi.pc.in
97
98
99%build
100autoreconf -ifv
101%configure
102%{__make}
103
104
105%install
106%{__rm} -rf ${RPM_BUILD_ROOT}
107%{__make} install DESTDIR=${RPM_BUILD_ROOT}
108
109# remove unnecessary files.
110%{__rm} -rf ${RPM_BUILD_ROOT}/%{_libdir}/libffi.la
111%{__rm} -rf ${RPM_BUILD_ROOT}/%{_infodir}/dir
112
113%clean
114%{__rm} -rf ${RPM_BUILD_ROOT}
115
116%post -p /sbin/ldconfig
117
118%postun -p /sbin/ldconfig
119
120
121%files
122%defattr(-,root,root)
123%license LICENSE
124%doc ChangeLog* README 
125%{_libdir}/libffi.so.*
126%{_infodir}/libffi.info*
127%{_mandir}/man3/ffi.3*
128%{_mandir}/man3/ffi_call.3*
129%{_mandir}/man3/ffi_prep_cif.3*
130%{_mandir}/man3/ffi_prep_cif_var.3*
131
132%files devel
133%defattr(-,root,root)
134%{_libdir}/pkgconfig/*
135%{_libdir}/libffi.a
136%{_libdir}/libffi.so
137%{_includedir}/*.h
138
139# compat32
140%if %{build_compat32}
141%files -n compat32-%{name}
142%defattr(-,root,root)
143%{_libdir}/libffi.so.*
144
145%files -n compat32-%{name}-devel
146%defattr(-,root,root)
147%{_libdir}/libffi.so
148%endif
149
150%changelog
151* Wed Apr 15 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.3-1
152- updated to 3.3.
153- dropped Patch0.
154
155* Tue Jan 02 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 3.2.1-1
156- updated to 3.2.1.
157- imported Patch0 from rawhide.
158
159* Sun Jul 06 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.13-1
160- update to 3.0.13
161
162* Wed Aug 17 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.9-4
163- create compat32 sub packages
164
165* Fri Nov 26 2010 Shu KONNO <owa@bg.wakwak.com> 3.0.9-3
166- fixed includedir in libffi.pc
167
168* Tue Sep 21 2010 IWAI, Masaharu <iwai@alib.jp> 3.0.9-2
169- build with rpm-4.8.1-1 for pkg-config file
170
171* Tue Feb 23 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 3.0.9-1
172- new upstream release
173- built with new toolchain
174
175* Wed Jan 21 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 3.0.8-1
176- new upstream release
177- spec in UTF-8
178
179* Thu Apr 17 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 3.0.5-1
180- updated to new upstream release
181
182* Wed Apr 02 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 3.0.4-1
183- apply new versioning policy
184
185* Sun Mar 02 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 3.0.4-0vl1
186- initial build for Vine Linux
Note: See TracBrowser for help on using the repository browser.