Spec cleanups
This commit is contained in:
parent
ffb9453099
commit
5620d95443
81
stfl.spec
81
stfl.spec
|
@ -1,65 +1,64 @@
|
|||
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||
|
||||
Name: stfl
|
||||
Version: 0.21
|
||||
Release: 17%{?dist}
|
||||
Summary: The Structured Terminal Forms Language/Library
|
||||
Name: stfl
|
||||
Version: 0.21
|
||||
Release: 17%{?dist}
|
||||
Summary: The Structured Terminal Forms Language/Library
|
||||
|
||||
Group: System Environment/Libraries
|
||||
License: LGPLv3+
|
||||
URL: http://www.clifford.at/stfl/
|
||||
Source0: http://www.clifford.at/stfl/%{name}-%{version}.tar.gz
|
||||
Group: System Environment/Libraries
|
||||
License: LGPLv3+
|
||||
URL: http://www.clifford.at/stfl/
|
||||
Source0: http://www.clifford.at/stfl/%{name}-%{version}.tar.gz
|
||||
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: ncurses-devel
|
||||
BuildRequires: swig
|
||||
BuildRequires: perl-devel
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: ruby, ruby-devel
|
||||
BuildRequires: ncurses-devel
|
||||
BuildRequires: perl-devel
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: ruby
|
||||
BuildRequires: ruby-devel
|
||||
BuildRequires: swig
|
||||
|
||||
%description
|
||||
STFL is a library which implements a curses-based widget set for text
|
||||
terminals.
|
||||
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Group: Development/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: pkgconfig
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
Group: Development/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: pkgconfig
|
||||
|
||||
%description devel
|
||||
%description devel
|
||||
The %{name}-devel package contains libraries and header files for
|
||||
developing applications that use %{name}.
|
||||
|
||||
|
||||
%package perl
|
||||
Summary: Perl binding for STFL
|
||||
Group: Development/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
%package perl
|
||||
Summary: Perl binding for STFL
|
||||
Group: Development/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
|
||||
%description perl
|
||||
%description perl
|
||||
Perl binding for STFL
|
||||
|
||||
|
||||
%package python
|
||||
Summary: Python binding for STFL
|
||||
Group: Development/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
%package python
|
||||
Summary: Python binding for STFL
|
||||
Group: Development/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
|
||||
%description python
|
||||
%description python
|
||||
Python binding for STFL.
|
||||
|
||||
|
||||
%package ruby
|
||||
Summary: Ruby binding for STFL
|
||||
Group: Development/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: ruby(abi) = 1.9.1
|
||||
%package ruby
|
||||
Summary: Ruby binding for STFL
|
||||
Group: Development/Libraries
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: ruby(abi) = 1.9.1
|
||||
|
||||
%description ruby
|
||||
%description ruby
|
||||
Ruby binding for STFL.
|
||||
|
||||
|
||||
|
@ -96,8 +95,8 @@ export CFLAGS="%{optflags}"
|
|||
#echo `ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"] '`
|
||||
sed -i 's|ruby extconf.rb|ruby extconf.rb --vendor|' ruby/Makefile.snippet
|
||||
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
make install DESTDIR=%{buildroot}
|
||||
# give the shared libraries executable permissions so they get stripped
|
||||
# also fixes the 0555 permissions on the perl bindings
|
||||
|
@ -111,9 +110,6 @@ rm -f %{buildroot}%{perl_vendorarch}/example.pl
|
|||
rm -f %{buildroot}%{perl_vendorarch}/auto/stfl/.packlist
|
||||
rm -f %{buildroot}%{perl_archlib}/perllocal.pod
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
|
@ -147,6 +143,7 @@ rm -rf %{buildroot}
|
|||
%defattr(-,root,root,-)
|
||||
%{ruby_vendorarchdir}/stfl.so
|
||||
|
||||
|
||||
%changelog
|
||||
* Wed Feb 08 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 0.21-17
|
||||
- Rebuilt for Ruby 1.9.3.
|
||||
|
|
Loading…
Reference in New Issue