Ben Boeckel 5620d9
Name:           stfl
c93d10
Version:        0.22
12c2dc
Release:        27%{?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
e0d8e7
BuildRequires:  perl-generators
12c2dc
BuildRequires:  python2-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}
157014
Ben Boeckel 5620d9
%description    perl
157014
Perl binding for STFL
157014
157014
4fa8e8
%package        -n python2-stfl
4fa8e8
%{?python_provide:%python_provide python2-stfl}
4fa8e8
# Remove before F30
3b7dc7
Provides: %{name}-python = %{version}-%{release}
4fa8e8
Provides: %{name}-python%{?_isa} = %{version}-%{release}
4fa8e8
Obsoletes: %{name}-python < %{version}-%{release}
Ben Boeckel 5620d9
Summary:        Python binding for STFL
Ben Boeckel 5620d9
Group:          Development/Libraries
Ben Boeckel 5620d9
Requires:       %{name} = %{version}-%{release}
157014
4fa8e8
%description    -n python2-stfl
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}
636aa2
Requires:       ruby(release)
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
540595
# Parallel build is unstable :/
540595
#make  %{?_smp_mflags}
540595
make
636aa2
Ben Boeckel 5620d9
157014
%install
e7fdb3
%make_install
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
%doc README COPYING
d878c9
%{_libdir}/*.so.0*
157014
157014
%files devel
157014
%{_includedir}/*
157014
%{_libdir}/*.so
157014
%{_libdir}/pkgconfig/stfl.pc
157014
157014
%files perl
157014
%dir %{perl_vendorarch}/auto/stfl
157014
%{perl_vendorarch}/*.pm
157014
%{perl_vendorarch}/auto/stfl/*
157014
4fa8e8
%files -n python2-stfl
157014
%{python_sitearch}/stfl.py*
157014
%{python_sitearch}/_stfl.so
157014
157014
%files ruby
ffb945
%{ruby_vendorarchdir}/stfl.so
157014
Ben Boeckel 5620d9
157014
%changelog
12c2dc
* Fri Feb 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.22-27
12c2dc
- Update Python 2 dependency declarations to new packaging standards
12c2dc
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
12c2dc
3ac002
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.22-26
3ac002
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
3ac002
3b7dc7
* Sun Aug 20 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.22-25
3b7dc7
- Add Provides for the old name without %%_isa
3b7dc7
4fa8e8
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.22-24
4fa8e8
- Python 2 binary package renamed to python2-stfl
4fa8e8
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
4fa8e8
1f7aea
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.22-23
1f7aea
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
1f7aea
de920d
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.22-22
de920d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
de920d
ded6be
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.22-21
ded6be
- Perl 5.26 rebuild
ded6be
e07fb4
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.22-20
e07fb4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
e07fb4
8cd72d
* Sat Jan 14 2017 Vít Ondruch <vondruch@redhat.com> - 0.22-19
8cd72d
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.4
8cd72d
36df26
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-18
36df26
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
36df26
b14e12
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.22-17
b14e12
- Perl 5.24 rebuild
b14e12
97640f
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.22-16
97640f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
97640f
17294b
* Wed Jan 13 2016 Vít Ondruch <vondruch@redhat.com> - 0.22-15
17294b
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.3
17294b
122915
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-14
122915
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
122915
4682b0
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.22-13
4682b0
- Perl 5.22 rebuild
4682b0
732d10
* Mon Jan 19 2015 Vít Ondruch <vondruch@redhat.com> - 0.22-12
732d10
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.2
732d10
c94d77
* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.22-11
c94d77
- Perl 5.20 rebuild
c94d77
2a4a67
* Mon Aug 18 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-10
2a4a67
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
2a4a67
d503ba
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-9
d503ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
d503ba
4658f9
* Tue Apr 29 2014 Vít Ondruch <vondruch@redhat.com> - 0.22-8
4658f9
- Rebuilt for https://fedoraproject.org/wiki/Changes/Ruby_2.1
540595
- Disable parallel build, since it is unstable.
4658f9
310090
* Sat Mar 29 2014 Filipe Rosset <rosset.filipe@gmail.com> - 0.22-7
310090
- Fix rhbz #993383, spec cleanup
310090
93b523
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-6
93b523
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
93b523
873585
* Thu Jul 18 2013 Petr Pisar <ppisar@redhat.com> - 0.22-5
873585
- Perl 5.18 rebuild
873585
636aa2
* Wed Mar 27 2013 Vít Ondruch <vondruch@redhat.com> - 0.22-4
636aa2
- Rebuild for https://fedoraproject.org/wiki/Features/Ruby_2.0.0
636aa2
d878c9
* Sun Feb 24 2013 Ben Boeckel <mathstuf@gmail.com> - 0.22-3
d878c9
- Fix soversion glob
d878c9
a1d127
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-2
a1d127
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
a1d127
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