Ben Boeckel 5620d9
Name:           stfl
c93d10
Version:        0.22
c93d10
Release:        1%{?dist}
Ben Boeckel 5620d9
Summary:        The Structured Terminal Forms Language/Library
Ben Boeckel 5620d9
Ben Boeckel 5620d9
Group:          System Environment/Libraries
Ben Boeckel 5620d9
License:        LGPLv3+
Ben Boeckel 5620d9
URL:            http://www.clifford.at/stfl/
Ben Boeckel 5620d9
Source0:        http://www.clifford.at/stfl/%{name}-%{version}.tar.gz
Ben Boeckel 5620d9
Ben Boeckel 5620d9
BuildRequires:  ncurses-devel
Ben Boeckel 5620d9
BuildRequires:  perl-devel
Ben Boeckel 5620d9
BuildRequires:  python-devel
Ben Boeckel 5620d9
BuildRequires:  ruby
Ben Boeckel 5620d9
BuildRequires:  ruby-devel
Ben Boeckel 5620d9
BuildRequires:  swig
157014
157014
%description
157014
STFL is a library which implements a curses-based widget set for text
157014
terminals.
157014
157014
Ben Boeckel 5620d9
%package        devel
Ben Boeckel 5620d9
Summary:        Development files for %{name}
Ben Boeckel 5620d9
Group:          Development/Libraries
Ben Boeckel 5620d9
Requires:       %{name} = %{version}-%{release}
Ben Boeckel 5620d9
Requires:       pkgconfig
157014
Ben Boeckel 5620d9
%description    devel
157014
The %{name}-devel package contains libraries and header files for
157014
developing applications that use %{name}.
157014
157014
Ben Boeckel 5620d9
%package        perl
Ben Boeckel 5620d9
Summary:        Perl binding for STFL
Ben Boeckel 5620d9
Group:          Development/Libraries
Ben Boeckel 5620d9
Requires:       %{name} = %{version}-%{release}
Ben Boeckel 5620d9
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
157014
Ben Boeckel 5620d9
%description    perl
157014
Perl binding for STFL
157014
157014
Ben Boeckel 5620d9
%package        python
Ben Boeckel 5620d9
Summary:        Python binding for STFL
Ben Boeckel 5620d9
Group:          Development/Libraries
Ben Boeckel 5620d9
Requires:       %{name} = %{version}-%{release}
157014
Ben Boeckel 5620d9
%description    python
157014
Python binding for STFL.
157014
157014
Ben Boeckel 5620d9
%package        ruby
Ben Boeckel 5620d9
Summary:        Ruby binding for STFL
Ben Boeckel 5620d9
Group:          Development/Libraries
Ben Boeckel 5620d9
Requires:       %{name} = %{version}-%{release}
Ben Boeckel 5620d9
Requires:       ruby(abi) = 1.9.1
157014
Ben Boeckel 5620d9
%description    ruby
157014
Ruby binding for STFL.
157014
157014
157014
%prep
157014
%setup -q
157014
## ensures that _stfl.so doesn't end up in lib-dynload
157014
## - http://www.rocklinux.net/pipermail/stfl/2009-June/000113.html
157014
sed -i.path \
157014
 -e '/mkdir.*lib-dynload/d' \
157014
 -e '/cp/s|lib-dynload||' \
157014
 python/Makefile.*
157014
## creates an soname symlink for the shared library
157014
## - http://www.rocklinux.net/pipermail/stfl/2009-June/000114.html
157014
## add the new line needed (the part starting with \n) If you know a better way with sed to do it, please educate me
157014
sed -i.soname \
157014
 -e 's|\(.*ln -fs.*/\)\(libstfl\.so\)$|\1\2\n\1\$(SONAME)|' \
157014
 Makefile
157014
## fixes undefined-non-weak-symbol rpmlint warnings
157014
## - http://www.rocklinux.net/pipermail/stfl/2009-October/000116.html
157014
sed -i.ldflags -e 's|\(-shared\)|\1 \$(LDLIBS)|' Makefile
157014
## fixes libdir for other arch than x86 
157014
## - http://www.rocklinux.net/pipermail/stfl/2009-October/000118.html
157014
sed -i.path -e 's|libdir=.*|libdir=%{_libdir}|' stfl.pc.in
157014
sed -i.cflags -e 's|-Os||' Makefile
bf1f8b
# fix paths in Makefile.cfg
bf1f8b
sed -i.path -e 's|lib$|%{_lib}|' -e 's|/usr/local$|%{_prefix}|' Makefile.cfg
157014
157014
%build
157014
# building with smp flags causes random failures
157014
export CFLAGS="%{optflags}"
8997b5
# test with explicit prefix and echo
039c8f
#make prefix=/usr libdir=%{_lib}
039c8f
#echo %ruby_sitearch
039c8f
#echo `ruby -rrbconfig -e 'puts Config::CONFIG["sitearchdir"] '`
ffb945
sed -i 's|ruby extconf.rb|ruby extconf.rb --vendor|' ruby/Makefile.snippet
157014
Ben Boeckel 5620d9
157014
%install
bf1f8b
make install DESTDIR=%{buildroot}
157014
# give the shared libraries executable permissions so they get stripped
157014
# also fixes the 0555 permissions on the perl bindings
157014
find %{buildroot} -name '*.so' -exec chmod 755 {} ';'
157014
# perl ignores empty .bs files
157014
find %{buildroot} -name '*.bs' -size 0c -exec rm -f {} ';'
157014
# fedora doesn't ship static libraries
157014
rm -f %{buildroot}%{_libdir}/libstfl.a
157014
## remove unneeded files
157014
rm -f %{buildroot}%{perl_vendorarch}/example.pl
157014
rm -f %{buildroot}%{perl_vendorarch}/auto/stfl/.packlist
157014
rm -f %{buildroot}%{perl_archlib}/perllocal.pod
157014
157014
157014
%post -p /sbin/ldconfig
157014
157014
157014
%postun -p /sbin/ldconfig
157014
157014
157014
%files
157014
%defattr(-,root,root,-)
157014
%doc README COPYING
157014
%{_libdir}/*.so.*
157014
157014
%files devel
157014
%defattr(-,root,root,-)
157014
%{_includedir}/*
157014
%{_libdir}/*.so
157014
%{_libdir}/pkgconfig/stfl.pc
157014
157014
%files perl
157014
%defattr(-,root,root,-)
157014
%dir %{perl_vendorarch}/auto/stfl
157014
%{perl_vendorarch}/*.pm
157014
%{perl_vendorarch}/auto/stfl/*
157014
157014
%files python
157014
%defattr(-,root,root,-)
157014
%{python_sitearch}/stfl.py*
157014
%{python_sitearch}/_stfl.so
157014
157014
%files ruby
157014
%defattr(-,root,root,-)
ffb945
%{ruby_vendorarchdir}/stfl.so
157014
Ben Boeckel 5620d9
157014
%changelog
c93d10
* Sun Nov 04 2012 Ben Boeckel <mathstuf@gmail.com> - 0.22-1
c93d10
- Update to 0.22
c93d10
1c2c14
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.21-19
1c2c14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
1c2c14
ba102d
* Mon Jun 11 2012 Petr Pisar <ppisar@redhat.com> - 0.21-18
ba102d
- Perl 5.16 rebuild
ba102d
ffb945
* Wed Feb 08 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 0.21-17
ffb945
- Rebuilt for Ruby 1.9.3.
ffb945
986a89
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.21-16
986a89
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
986a89
Marcela Mašláňová d3e145
* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.21-15
Marcela Mašláňová d3e145
- Perl mass rebuild
Marcela Mašláňová d3e145
Marcela Mašláňová 81e2eb
* Fri Jun 10 2011 Marcela Mašláňová <mmaslano@redhat.com> - 0.21-14
Marcela Mašláňová 81e2eb
- Perl 5.14 mass rebuild
Marcela Mašláňová 81e2eb
5347a9
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.21-13
5347a9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
5347a9
bf1f8b
* Wed Sep 29 2010 Dan Horák <dan[at]danny.cz> 0.21-12
bf1f8b
- prefix/libdir handling is broken in the Makefile chains
bf1f8b
128cd7
* Tue Sep 07 2010 thomas Janssen 
128cd7
- find out what FTBFS
128cd7
8331d4
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.21-10
8331d4
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
8331d4
2ae5bb
* Wed Jun 02 2010 Marcela Maslanova <mmaslano@redhat.com> - 0.21-9
2ae5bb
- Mass rebuild with perl-5.12.0
2ae5bb
501731
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 0.21-8
501731
- rebuild against perl 5.10.1
501731
157014
* Tue Oct 20 2009 Thomas Janssen <thomasj@fedoraproject.org> 0.21-7
157014
- Removed empty %%doc
157014
- Changed sed commands
157014
157014
* Tue Oct 06 2009 Thomas Janssen <thomasj@fedoraproject.org> 0.21-6
157014
- Changed CFLAGS again
157014
157014
* Tue Oct 06 2009 Thomas Janssen <thomasj@fedoraproject.org> 0.21-5
157014
- Better use of sed
157014
- Fixed CFLAGS
157014
- Use of rm instead of exclude
157014
- Removed empty doc
157014
157014
* Mon Oct 05 2009 Thomas Janssen <thomasj@fedoraproject.org> 0.21-4
157014
- Removed unneeded requires
157014
- Removed dupe docs
157014
- removed patches and make use of sed
157014
- fixed stfl.pc.in for x86_64
157014
157014
* Fri Oct 02 2009 Thomas Janssen <thomasj@fedoraproject.org> 0.21-3
157014
- fixed installed rpmlint output
157014
157014
* Fri Oct 02 2009 Thomas Janssen <thomasj@fedoraproject.org> 0.21-2
157014
- Added Requires: pkgconfig
157014
- Mentioned to upstream the rpmlint warnings
157014
- http://www.rocklinux.net/pipermail/stfl/2009-October/000115.html
157014
- Minor spec changes
157014
157014
* Sun Jun 28 2009 Byron Clark <byron@theclarkfamily.name> 0.21-1
157014
- New upstream release
157014
- Stop placing _stfl.so in lib-dynload
157014
- Add patch to properly create soname symlink for shared lib.
157014
157014
* Wed Jun 10 2009 Byron Clark <byron@theclarkfamily.name> 0.20-5
157014
- Stop using both python_sitelib and python_sitearch
157014
- Modify stfl-pythonpaths.patch to only use python_sitearch
157014
157014
* Sat Jun 6 2009 Byron Clark <byron@theclarkfamily.name> 0.20-4
157014
- Don't explicitly require python and perl
157014
157014
* Thu May 21 2009 Byron Clark <byron@theclarkfamily.name> 0.20-3
157014
- Use the patches that have been sent upstream
157014
157014
* Thu May 21 2009 Byron Clark <byron@theclarkfamily.name> 0.20-2
157014
- Add the minimal docs
157014
157014
* Thu May 21 2009 Byron Clark <byron@theclarkfamily.name> 0.20-1
157014
- Initial release