]> git.pld-linux.org Git - packages/stfl.git/blame - stfl.spec
- release 5 (by relup.sh)
[packages/stfl.git] / stfl.spec
CommitLineData
b7241434 1%include /usr/lib/rpm/macros.perl
0734110c 2Summary: STFL implements a curses-based widget set for text terminals
d04072b0 3Summary(hu.UTF-8): Az STFL egy curses-alapú widget-készletet biztosít szöveges terminálokhoz
0734110c 4Summary(pl.UTF-8): Implementacja opartego na ncurses zestawu widgetów dla terminali tekstowych
8e1c773c 5Name: stfl
15cd648b 6Version: 0.22
77574b85 7Release: 5
d04072b0 8License: LGPL v3
8e1c773c
AG
9Group: Libraries
10Source0: http://www.clifford.at/stfl/%{name}-%{version}.tar.gz
15cd648b 11# Source0-md5: df4998f69fed15fabd702a25777f74ab
8e1c773c 12URL: http://www.clifford.at/stfl/
d04072b0 13Patch0: %{name}-example-dir.patch
c5ca7c09 14Patch1: %{name}-link.patch
8e1c773c 15BuildRequires: ncurses-devel
0734110c
AG
16BuildRequires: perl-devel
17BuildRequires: python-devel
c5ca7c09 18BuildRequires: python-modules
b7241434 19BuildRequires: rpm-perlprov
20BuildRequires: rpm-pythonprov
0734110c 21BuildRequires: ruby-devel
180543eb
ZU
22BuildRequires: swig-perl
23BuildRequires: swig-python
24BuildRequires: swig-ruby
8e1c773c
AG
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
0734110c
AG
28STFL is a library which implements a curses-based widget set for text
29terminals.
30
d04072b0
ZU
31%description -l hu.UTF-8
32Az STFL egy curses-alapú widget-készletet biztosít szöveges
33terminálokhoz.
34
0734110c
AG
35%description -l pl.UTF-8
36STFL jest biblioteką udostępniającą implementacją opartego na ncurses
37zestawu widgetów dla terminali tekstowych.
8e1c773c
AG
38
39%package devel
0734110c 40Summary: Header files for STFL library
d04072b0 41Summary(hu.UTF-8): Az STFL könyvtár fejlesztői fájljai
0734110c 42Summary(pl.UTF-8): Pliki nagłówekowe biblioteki STFL
8e1c773c
AG
43Group: Development/Libraries
44Requires: %{name} = %{version}-%{release}
0734110c 45
8e1c773c 46%description devel
0734110c
AG
47Header files for STFL library.
48
d04072b0
ZU
49%description devel -l hu.UTF-8
50Az STFL könyvtár fejlesztői fájljai.
51
0734110c
AG
52%description devel -l pl.UTF-8
53Pliki nagłówkowe biblioteki STFL.
54
55%package static
56Summary: Static STFL library
d04072b0 57Summary(hu.UTF-8): Statikus STFL könyvtár
0734110c
AG
58Summary(pl.UTF-8): Statyczna biblioteka STFL
59Group: Development/Libraries
60Requires: %{name}-devel = %{version}-%{release}
61
62%description static
63Static STFL library.
64
d04072b0
ZU
65%description static -l hu.UTF-8
66Statikus STFL könyvtár.
67
0734110c
AG
68%description static -l pl.UTF-8
69Statyczna biblioteka STFL.
70
176c5128 71%package -n perl-%{name}
0734110c 72Summary: Perl binding for STFL
d04072b0 73Summary(hu.UTF-8): Perl kapcsolódás STFL-hez
0734110c
AG
74Summary(pl.UTF-8): Wiązania Perla dla STFLa
75Group: Libraries
76Requires: %{name} = %{version}-%{release}
176c5128 77Obsoletes: stfl-perl
0734110c 78
176c5128 79%description -n perl-%{name}
0734110c
AG
80Perl binding for STFL.
81
176c5128 82%description -n perl-%{name} -l hu.UTF-8
d04072b0
ZU
83Perl kapcsolódás STFL-hez.
84
176c5128 85%description -n perl-%{name} -l pl.UTF-8
0734110c
AG
86Wiązania Perla dla STFLa.
87
176c5128 88%package -n python-%{name}
0734110c 89Summary: Python binding for STFL
d04072b0 90Summary(hu.UTF-8): Python kapcsolódás STFL-hez
0734110c
AG
91Summary(pl.UTF-8): Wiązania Pythona dla STFLa
92Group: Libraries
93Requires: %{name} = %{version}-%{release}
176c5128 94Obsoletes: stfl-python
0734110c 95
176c5128 96%description -n python-%{name}
0734110c
AG
97Python binding for STFL.
98
176c5128 99%description -n python-%{name} -l hu.UTF-8
d04072b0
ZU
100Python kapcsolódás STFL-hez.
101
176c5128 102%description -n python-%{name} -l pl.UTF-8
0734110c
AG
103Wiązania Pythona dla STFLa.
104
176c5128 105%package -n ruby-%{name}
0734110c 106Summary: Ruby binding for STFL
d04072b0 107Summary(hu.UTF-8): Ruby kapcsolódás STFL-hez
0734110c
AG
108Summary(pl.UTF-8): Wiązania Ruby'ego dla STFLa
109Group: Libraries
110Requires: %{name} = %{version}-%{release}
176c5128 111Obsoletes: stfl-ruby
0734110c 112
176c5128 113%description -n ruby-%{name}
0734110c
AG
114Ruby binding for STFL.
115
176c5128 116%description -n ruby-%{name} -l hu.UTF-8
d04072b0
ZU
117Ruby kapcsolódás STFL-hez.
118
176c5128 119%description -n ruby-%{name} -l pl.UTF-8
0734110c 120Wiązania Ruby'ego dla STFLa.
8e1c773c
AG
121
122%prep
123%setup -q
0734110c 124%patch0 -p1
c5ca7c09 125%patch1 -p1
f9715107 126echo 'LDLIBS=-ltinfow' >> Makefile.cfg
8e1c773c
AG
127
128%build
c5ca7c09 129%{__make} -j1 \
b7241434 130 prefix="" \
f9715107 131 libdir=%{_libdir} \
fdd55aaa 132 CFLAGS="-Wall %{rpmcppflags} %{rpmcflags} -I. -D_GNU_SOURCE -fPIC" \
c5ca7c09 133 LDFLAGS="%{rpmldflags}" \
d04072b0 134 CC="%{__cc} -pthread"
8e1c773c
AG
135
136%install
137rm -rf $RPM_BUILD_ROOT
8e1c773c 138
fdd55aaa
AM
139install -d $RPM_BUILD_ROOT%{py_libdir}/lib-dynload
140
d04072b0 141%{__make} -j1 install \
f9715107 142 prefix=%{_prefix} \
143 libdir=%{_lib} \
d6a1b622 144 RUBYARCHDIR=$RPM_BUILD_ROOT%{ruby_vendorarchdir} \
f9715107 145 DESTDIR=$RPM_BUILD_ROOT
d04072b0 146
fdd55aaa
AM
147mv $RPM_BUILD_ROOT%{py_libdir}/site-packages/lib-dynload/_stfl.so \
148 $RPM_BUILD_ROOT%{py_libdir}/lib-dynload
149
d04072b0
ZU
150install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
151install example{,.c,.stfl} $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
8e1c773c 152
15cd648b
WF
153ln -sf libstfl.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libstfl.so.0
154
d8b53ab7
ZU
155%post -p /sbin/ldconfig
156%postun -p /sbin/ldconfig
157
8e1c773c
AG
158%clean
159rm -rf $RPM_BUILD_ROOT
160
161%files
8e1c773c 162%defattr(644,root,root,755)
d04072b0 163%doc README
30b6719e 164%attr(755,root,root) %{_libdir}/libstfl.so.*.*
15cd648b 165%attr(755,root,root) %ghost %{_libdir}/libstfl.so.0
8e1c773c
AG
166
167%files devel
0734110c 168%defattr(644,root,root,755)
30b6719e 169%attr(755,root,root) %{_libdir}/libstfl.so
8e1c773c 170%{_includedir}/stfl.h
d04072b0
ZU
171%{_pkgconfigdir}/stfl.pc
172%dir %{_examplesdir}/%{name}-%{version}
173%attr(755,root,root) %{_examplesdir}/%{name}-%{version}/example
174%{_examplesdir}/%{name}-%{version}/example.*
0734110c
AG
175
176%files static
177%defattr(644,root,root,755)
178%{_libdir}/lib*.a
179
176c5128 180%files -n perl-%{name}
0734110c 181%defattr(644,root,root,755)
30b6719e 182%doc perl5/example.pl
183%{perl_vendorarch}/stfl.pm
180543eb 184%dir %{perl_vendorarch}/auto/stfl
30b6719e 185%attr(755,root,root) %{perl_vendorarch}/auto/stfl/stfl.so
0734110c 186
176c5128 187%files -n python-%{name}
0734110c 188%defattr(644,root,root,755)
fdd55aaa 189%attr(755,root,root) %{py_libdir}/lib-dynload/_stfl.so
c5ca7c09 190%{py_libdir}/site-packages/stfl.pyc
0734110c 191
176c5128 192%files -n ruby-%{name}
0734110c 193%defattr(644,root,root,755)
5f6b0ca3 194%doc ruby/example.rb
d6a1b622 195%attr(755,root,root) %{ruby_vendorarchdir}/stfl.so
This page took 0.136394 seconds and 4 git commands to generate.