From 5620d95443d60d8e673b3b61a25777ef8553a2b6 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Feb 29 2012 02:58:11 +0000 Subject: Spec cleanups --- diff --git a/stfl.spec b/stfl.spec index 8e82505..9bee8a7 100644 --- a/stfl.spec +++ b/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 - -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 +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 + +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 - 0.21-17 - Rebuilt for Ruby 1.9.3.