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